cloudstack 文档 国内镜像

2015-06-01 文章 linux...@gmail.com
hey ALL:

 目前我做了一个开源文档中心,其中包括cloudstack 4.3 4.4 4.5的文档

欢迎大家使用

http://udn.yyuap.com/general.php?mod=index&op=document


-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


关于CloudStack入门指南中415页 “安装mkisofs”一节的勘误说明

2015-03-12 文章 linux...@gmail.com
Hey ALL:


  
在《CloudStack入门指南》书中的第415页,7.3.9安装mkisofs一节中,需要下载cdrtools-3.00-win32-bin.zip、cygwin1.dll_1.7.17_.zip、dlls.zip三个压缩包,但书中提供的下载地址目前已经不能下载,笔者从以前的安装环境中找到了这三个压缩包,上传到了网上,供大家下载,下载地址:

http://pan.baidu.com/s/1kTl8iLh#path=%252Fmkisofs







-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Fwd: Google Summer of Code 2015 is coming

2015-02-26 文章 linux...@gmail.com
-- Forwarded message --
From: Sebastien Goasguen 
Date: 2015-02-03 16:42 GMT+08:00
Subject: Fwd: Google Summer of Code 2015 is coming
To: "d...@cloudstack.apache.org" 


GSoC 2015 is back.
Time to enter your project proposals in jira if you want to mentor.

Begin forwarded message:

> From: Ulrich Stärk 
> Subject: Google Summer of Code 2015 is coming
> Date: February 2, 2015 5:44:52 PM EST
> To: ment...@community.apache.org
> Reply-To: ment...@community.apache.org
> Reply-To: ment...@community.apache.org
>
> Hello PMCs (incubator Mentors, please forward this email to your podlings),
>
> Google Summer of Code [1] is a program sponsored by Google allowing students 
> to spend their summer
> working on open source software. Students will receive stipends for 
> developing open source software
> full-time for three months. Projects will provide mentoring and project 
> ideas, and in return have
> the chance to get new code developed and - most importantly - to identify and 
> bring in new committers.
>
> The ASF will apply as a participating organization meaning individual 
> projects don't have to apply
> separately.
>
> If you want to participate with your project we ask you to do the following 
> things by no later than
> 2015-02-13 19:00 UTC (applications from organizations close a week later)
>
> 1. understand what it means to be a mentor [2].
>
> 2. record your project ideas.
>
> Just create issues in JIRA, label them with gsoc2015, and they will show up 
> at [3]. Please be as
> specific as possible when describing your idea. Include the programming 
> language, the tools and
> skills required, but try not to scare potential students away. They are 
> supposed to learn what's
> required before the program starts.
>
> Use labels, e.g. for the programming language (java, c, c++, erlang, python, 
> brainfuck, ...) or
> technology area (cloud, xml, web, foo, bar, ...) and record them at [5].
>
> Please use the COMDEV JIRA project for recording your ideas if your project 
> doesn't use JIRA (e.g.
> httpd, ooo). Contact d...@community.apache.org if you need assistance.
>
> [4] contains some additional information (will be updated for 2015 shortly).
>
> 3. subscribe to ment...@community.apache.org; restricted to potential 
> mentors, meant to be used as a
> private list - general discussions on the public d...@community.apache.org 
> list as much as possible
> please). Use a recognized address when subscribing (@apache.org or one of 
> your alias addresses on
> record).
>
> Note that the ASF isn't accepted as a participating organization yet, 
> nevertheless you *have to*
> start recording your ideas now or we might not get accepted.
>
> Over the years we were able to complete hundreds of projects successfully. 
> Some of our prior
> students are active contributors now! Let's make this year a success again!
>
> Cheers,
>
> Uli
>
> P.S.: Except for the private parts (label spreadsheet mostly), this email is 
> free to be shared
> publicly if you want to.
>
> [1] http://www.google-melange.com/gsoc/homepage/google/gsoc2015
> [2] http://community.apache.org/guide-to-being-a-mentor.html
> [3] http://s.apache.org/gsoc2015ideas
> [4] http://community.apache.org/gsoc.html
> [5] http://s.apache.org/gsoclabels
>



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: cloudstack4.4+xenserver6.2创建SSVM时提示无法获取锁

2015-02-05 文章 linux...@gmail.com
va.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
> 1)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
> java:1145)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> .java:615)
> at java.lang.Thread.run(Thread.java:745)
> 2015-02-03 14:16:12,551 INFO  [o.a.c.s.SecondaryStorageManagerImpl] 
> (secstorage-
> 1:ctx-21a3ff7a) Unable to start secondary storage vm for standby capacity, 
> secSt
> orageVm vm Id : 153, will recycle it and start a new one
> 2015-02-03 14:16:12,552 INFO  [o.a.c.s.PremiumSecondaryStorageManagerImpl] 
> (secs
> torage-1:ctx-21a3ff7a) Primary secondary storage is not even started, wait 
> until
>  next turn
> 2015-02-03 14:16:12,574 DEBUG [o.a.c.f.j.i.SyncQueueManagerImpl] 
> (Work-Job-Execu
> tor-9:ctx-0f926fb1 job-10/job-20) Sync queue (755) is currently empty
> 2015-02-03 14:16:12,575 INFO  [o.a.c.f.j.i.AsyncJobMonitor] 
> (Work-Job-Executor-9
> :ctx-0f926fb1 job-10/job-20) Remove job-20 from job monitoring
> 2015-02-03 14:16:22,527 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
> (Rout
> erStatusMonitor-1:ctx-6164a5ca) Found 0 routers to update status.
> 2015-02-03 14:16:22,528 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
> (Rout
> erStatusMonitor-1:ctx-6164a5ca) Found 0 networks to update RvR status.‍



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: 辅助存储

2015-02-01 文章 linux...@gmail.com
建议提供相关错误日志

在 2015年2月2日 上午8:13,朱益萍 <874413...@qq.com>写道:

>
> 辅助存储的VHD是我自己手动导入的,但是我把辅助存储添加上去后,我的SSVM状态显示的是starting或者stopped状态,这是我的VHD文件不正确还是其他的配置不正确?具体报错如图




-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: cloudstack中怎么给windows7安装pvtools?

2015-01-29 文章 linux...@gmail.com
你是使用xendeskop还是使用kvm呢?
xendesktop目前不支持

在 2015年1月28日 下午5:20,廖延安  写道:
> 我在搭建一个xendesktop+cloudstack+kvm的一个环境,有一篇文档中提到一个大概步骤,需要先在windows上安装pvtools,但是cloudstack自带的pvtools是针对xenserver的,请问如何安装这个pvtools?我上传iso的时候如果把操作系统设置为windows
>  pv的话,启动的时候找不到磁盘驱动程序,请问这块如何解决?或者是否有这方面参考文档。谢谢。
> btw:cloudstack版本 4.5.0.0
>



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: Re:Cloudstack4.4.2+KVM 计算方案如果是自定义CPU,在启用HA后点击迁移主机无反应。

2015-01-29 文章 linux...@gmail.com
建议提问题的时候,提供下相关日志

在 2015年1月29日 下午2:19,Daniel Zhang  写道:
> Dear All,
>
>
> 如标题,Cloudstack4.4.2+KVM  
> 计算方案如果是自定义CPU,在启用HA后点击迁移主机无反应。请问是何原因?指定CPU频率和内存并启用HA是可以迁移的。
>
>
>
>
>
>
>
>
> 在 2015-01-26 16:30:48,"Daniel Zhang"  写道:
>>Dear All,
>>
>>
>>
>> 请问大家的环境中,如果创建计算方案时,选择了启用HA,创建的VM无法切换主机。点击切换主机没有反应。其它没有启用HA的VM可以正常切换主机。请问是不是VM启用了HA就不能手动切换主机了?谢谢



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


CloudStack and the "Ghost" glibc vulnerability

2015-01-28 文章 linux...@gmail.com
UPDATE: mitigation instructions have been improved (don't update
openswan) and we forgot to mention rebooting.
UPDATE: Links to updated System VM templates are now below

Yesterday, a buffer overflow vulnerability was announced in glibc that
affects most current Linux distributions. In CloudStack, the system
VMs contain a vulnerable version of glibc.

CloudStack community members have built an updated system VM template,
which ShapeBlue is hosting at
http://packages.shapeblue.com/systemvmtemplate/ (More information on
the packages at http://shapeblue.com/packages).

For instructions on how to update the SystemVM template in CloudStack, see here.

For those who wish to patch their running system VMs, ssh into each one and run:

apt-mark hold openswan
apt-get clean
apt-get update && apt-get upgrade

After updating glibc, the system will need to be rebooted.

Information about how to connect to your System VMs is available here.

Other CloudStack-related systems may be affected!

Please review security updates from Linux distributions you use on
your management server, storage systems, hypervisors, as well as other
Linux VMs and bare-metal systems running in your environments. This
post provides instructions for determining if a system is vulnerable,
as well as patching directions for common Linux distributions.




-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: 通过php调用api

2015-01-26 文章 linux...@gmail.com
PHP client library for the CloudStack User API v2.2 (Reference
:http://download.cloud.com/releases/2.2.0/api_2.2.8/TOC_User.html)

Generate with the CloudStack client generator
qpleple/cloudstack-client-generator, others languages are available.
Check out this project to know more about it.


https://github.com/qpleple/cloudstack-php-client


这个可以做参考

在 2015年1月27日 上午10:36,chen  写道:
> 你好,
>  我这边通过php去调用api,没有数据返还,麻烦谁提供下调用的实例,谢谢哈



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


CloudStack和OpenStack的区别

2015-01-20 文章 linux...@gmail.com
目前国内的媒体宣传中,大部分都是OpenStack的相关介绍,CloudStack的文章比较少。

很多刚开始使用CloudStack的朋友都会问:“CloudStack和OpenStack有什么区别?”

过去我们总会针对这个问题,列举一堆的功能对比,现在来看,比来比去,其实意义不大,因为大家最终会变得相似。就好像Apache和Nginx。

我今年也就这个问题,回答了不少人的疑问。CloudStack到底和OpenStack有什么区别?

shapeblue之前写过一篇文章,介绍CloudStack和OpenStack的区别,我认为特别好。和大家分享下。

以汽车为例,云平台的各个组件就好像汽车的各个零部件。OpenStack的特点是,定义好了各个零件的接口,比如轮胎,你可以有各种各样的轮胎可以使用,如果你向要一部车子,你需要自己选择各个零部件,然后自己组装,自己做各个零件之间的磨合,自己做性能的优化等,总之,OpenStack提供了各种各样的零件,你可以任意组合搭配,一切都取决于你自己的技术水平。所以使用OpenStack意味着你必须有一个强大的技术团队做支撑。记得Ustack的发布会上,程辉曾经分享过一个数据,大概意思是你要玩转OpenStack,至少需要千万级的投入,团队人数最少20人,这还不能保证你能玩的好。由此可见,OpenStack的技术门槛其实挺高的。这也是Ustack等OpenStack的相关公司的价值所在。

CloudStack就好像是一部已经组装调试好的车,你可以直接开走,也可以自己动手换个喜欢的轮胎,或者在汽车外面弄个喜欢的喷绘。总之,最复杂的工作社区已经帮你做好了,你只需要学会使用就行。而且CloudStack的学习成本低,开发成本低。Java的程序员在国内太多了。

这是shapeblue的观点。那么我为什么看好CloudStack呢?

我认为CloudStack最大优势在于apache基金会的管理,这是保证CloudStack能持续有生命力的关键。Apache基金会的管理中,很重要的一点是社区高于代码。Apache基金会关注社区的建设,项目本身的代码质量会因为社区的繁荣得到改善,社区也是项目有生命力的关键。

现在我们来看看OpenStack的玩家,HP,IBM,RedHat,Novell,Oracle,huawei,VMWare等,五一不是有极强的研发能力,没有一个不是庞然大物。国内的OpenStack的小玩家未来基本会逐渐被边缘化。OpenStack现在基本是大公司博弈的场所,小公司是无法驾驭这样一个负责的系统的。OpenStack是巨头们包装自己商业产品的嫁衣。

国内的中小企业如果选择了OpenStack,就会陷入一个怪圈,好不容易把各个模块调试稳定了,社区的版本升级了。这个时候是升,还是不升。升,所有的调试工作又得重新来过,不升,就会逐渐远离社区的版本,变成一个自己维护的孤儿版本,其代价是极其高昂的。

从公司的运营成本来看,CloudStack是远远低于OpenStack的。从落地的商业案例看,CloudStack有大量的成熟案例。从长远来看,CloudStack会像Apache基金会下面的其他项目(例如Hadoop,Storm,Tomcat等),持续的发展下去。

你是否愿意与我们同行呢?



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: CloudStack开发问题:虚拟机如何与CloudStack管理节点交互的?

2015-01-20 文章 linux...@gmail.com
做cloudstack二次开发的,建议多看看社区如何做的

如果代码可以被社区接受,就不用后期维护两套代码了,同时也享受社区版本的好处

在 2015年1月20日 下午1:43,Fan Lei  写道:
> 基本上不进行通信,除了那个改密码的功能,是用过vr来间接通信的
>
> 在 2015年1月19日 下午2:59,w...@landhightech.com 写道:
>
>> 大家好:
>>CloudStack4.4.1 +
>> VMware,我们想要对CloudStack进行二次开发,大家可否提供一下,CloudStack的管理节点是怎样和宿主机上的vm进行通信的?即:CloudStack
>> 的管理节点  如何和虚拟机进行交互的?谢谢大家了。
>>
>>
>> w...@landhightech.com
>>



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException:

2015-01-15 文章 linux...@gmail.com
.run(ManagedContextTimerTask.java:27)
> at java.util.TimerThread.mainLoop(Timer.java:555)
> at java.util.TimerThread.run(Timer.java:505)
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.cloudstack.managed.context.ManagedContextTimerTask$1
> at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1483)
> at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
> ... 3 more
> Jan 15, 2015 4:08:32 PM org.apache.axis2.deployment.ServiceDeployer deploy
> INFO: Deploying Web service: version-1.5.6.aar - 
> file:/usr/share/cloudstack-management/webapps7080/awsapi/WEB-INF/services/version-1.5.6.aar
> Jan 15, 2015 4:08:34 PM org.apache.axis2.deployment.ServiceDeployer deploy
> INFO: Deploying Web service: cloud-ec2.aar - 
> file:/usr/share/cloudstack-management/webapps7080/awsapi/WEB-INF/services/cloud-ec2.aar
> Jan 15, 2015 4:08:34 PM org.apache.axis2.util.OnDemandLogger warn
> WARNING: No transportReceiver for 
> org.apache.axis2.transport.http.AxisServletListener found. An instance for 
> HTTP will be configured automatically. Please update your axis2.xml file!
> Jan 15, 2015 4:08:34 PM 
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor
>  
> INFO: JSR-330 'javax.inject.Inject' annotation found and supported for 
> autowiring
> Jan 15, 2015 4:08:34 PM org.apache.coyote.http11.Http11NioProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-7080
> Jan 15, 2015 4:08:34 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 33868 ms



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


cloudstack文档镜像

2015-01-14 文章 linux...@gmail.com
Hey ALL:

 目前很多社区朋友反应访问cloudstack的文档比较慢,因此考虑在国内做一个文档镜像。


目前求一个稳定的虚机,可以长期使用的,用于做文档镜像主机。







-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: Re: XenServer 6.5 正式发布

2015-01-14 文章 linux...@gmail.com
稳定的很
softlayer是使用的cloudstack,法国最大的公有云也是使用的cloudstack
日本的cloudstack使用的也很多


从稳定性上说,cloudstack的商业案例太多了




在 2015年1月14日 下午5:35,Peration <575366...@qq.com> 写道:
> cloudstack 部署公有云稳定不?
>
>
>
>
> -- 原始邮件 --
> 发件人: "linuxbqj";;
> 发送时间: 2015年1月14日(星期三) 下午5:33
> 收件人: "users-cn";
>
> 主题: Re: Re: XenServer 6.5 正式发布
>
>
>
> 刚看了下社区讨论,xenserver 6.5应该是可以在cloudstack下工作的,因为xapi没有发生变化
> 对于社区来说,需要的只是识别xenserver 6.5,在支持的hypervisior上增加一个参数,插入到数据库中。
>
> 所以目前来看,是可以使用xenserver的
>
> @shuai 你们已经使用过cloudstack +xenserver 6.5了?
>
> 是否可以分享下使用体会
>
>
>
>
>
>
> 在 2015年1月14日 下午5:29,shuai_beij...@163.com  写道:
>> 这个去年我们就用了啊。
>>
>>
>>
>>
>> shuai_beij...@163.com
>>
>> 发件人: linux...@gmail.com
>> 发送时间: 2015-01-14 17:17
>> 收件人: users-cn
>> 主题: Re: XenServer 6.5 正式发布
>> cloudstack支持xenserver 6.5的讨论一直在进行,已经有多为国外的朋友希望支持xenserver 6.5
>> 要让社区尽快支持xenserver 6.5,最好的办法是大家多去jira里面向开发者提期望
>>
>>
>>
>> 在 2015年1月14日 下午5:15,Peration <575366...@qq.com> 写道:
>>> cloudstack 4.5 什么时候发布,有没有具体时间?
>>>
>>>
>>>
>>>
>>> ------ 原始邮件 --
>>> 发件人: "HellCat";;
>>> 发送时间: 2015年1月14日(星期三) 下午5:14
>>> 收件人: "users-cn";
>>>
>>> 主题: Re: XenServer 6.5 正式发布
>>>
>>>
>>>
>>> 等了好久终于出来了,问下什么时候cloudstack会支持xenserver6.5
>>>
>>>
>>> -- Original --
>>> From:  "linux...@gmail.com";;
>>> Date:  Wed, Jan 14, 2015 05:11 PM
>>> To:  "users-cn";
>>>
>>> Subject:  XenServer 6.5 正式发布
>>>
>>>
>>>
>>> Hey ALL:
>>>
>>>xenserver 6.5正式发布了!
>>>
>>> xenserver 6.5使用了3.10的kernel,支持ceph。
>>>
>>> 发布说明:
>>> http://xenserver.org/blog/entry/creedence-launches-as-xenserver-6-5.html
>>>
>>> 下载地址:
>>>
>>> http://xenserver.org/overview-xenserver-open-source-virtualization/download.html
>>>
>>>
>>>
>>>
>>> --
>>> 白清杰 (Born Bai)
>>>
>>> Mail: linux...@gmail.com
>>
>>
>>
>> --
>> 白清杰 (Born Bai)
>>
>> Mail: linux...@gmail.com
>
>
>
> --
> 白清杰 (Born Bai)
>
> Mail: linux...@gmail.com



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: about bug CLOUDSTACK-7117

2015-01-14 文章 linux...@gmail.com
建议查下社区的代码commit信息

在 2015年1月14日 下午5:24,李强  写道:
> 谁遇到过这个问题,bug列表中提示已经修复了,谁知道怎么修复。
>
>  Exception in thread "Timer-2" java.lang.NoClassDefFoundError: 
> org/apache/cloudstack/managed/context/ManagedContextTimerTask$1
>
>
>  https://issues.apache.org/jira/browse/CLOUDSTACK-7117



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: Re: XenServer 6.5 正式发布

2015-01-14 文章 linux...@gmail.com
刚看了下社区讨论,xenserver 6.5应该是可以在cloudstack下工作的,因为xapi没有发生变化
对于社区来说,需要的只是识别xenserver 6.5,在支持的hypervisior上增加一个参数,插入到数据库中。

所以目前来看,是可以使用xenserver的

@shuai 你们已经使用过cloudstack +xenserver 6.5了?

是否可以分享下使用体会






在 2015年1月14日 下午5:29,shuai_beij...@163.com  写道:
> 这个去年我们就用了啊。
>
>
>
>
> shuai_beij...@163.com
>
> 发件人: linux...@gmail.com
> 发送时间: 2015-01-14 17:17
> 收件人: users-cn
> 主题: Re: XenServer 6.5 正式发布
> cloudstack支持xenserver 6.5的讨论一直在进行,已经有多为国外的朋友希望支持xenserver 6.5
> 要让社区尽快支持xenserver 6.5,最好的办法是大家多去jira里面向开发者提期望
>
>
>
> 在 2015年1月14日 下午5:15,Peration <575366...@qq.com> 写道:
>> cloudstack 4.5 什么时候发布,有没有具体时间?
>>
>>
>>
>>
>> -- 原始邮件 --
>> 发件人: "HellCat";;
>> 发送时间: 2015年1月14日(星期三) 下午5:14
>> 收件人: "users-cn";
>>
>> 主题: Re: XenServer 6.5 正式发布
>>
>>
>>
>> 等了好久终于出来了,问下什么时候cloudstack会支持xenserver6.5
>>
>>
>> -- Original --
>> From:  "linux...@gmail.com";;
>> Date:  Wed, Jan 14, 2015 05:11 PM
>> To:  "users-cn";
>>
>> Subject:  XenServer 6.5 正式发布
>>
>>
>>
>> Hey ALL:
>>
>>xenserver 6.5正式发布了!
>>
>> xenserver 6.5使用了3.10的kernel,支持ceph。
>>
>> 发布说明:
>> http://xenserver.org/blog/entry/creedence-launches-as-xenserver-6-5.html
>>
>> 下载地址:
>>
>> http://xenserver.org/overview-xenserver-open-source-virtualization/download.html
>>
>>
>>
>>
>> --
>> 白清杰 (Born Bai)
>>
>> Mail: linux...@gmail.com
>
>
>
> --
> 白清杰 (Born Bai)
>
> Mail: linux...@gmail.com



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: Cloudstack4.4.2+KVM+OPENVSWITCH环境,VM无法获取IP

2015-01-14 文章 linux...@gmail.com
建议检查下交换机配置,是否有默认vlan,以及是否允许所有vlan通过

在 2015年1月14日 下午3:45,Daniel Zhang  写道:
> Dear All,
>
> 
> Cloudstack4.4.2+KVM+OPENVSWITCH环境,有三台HOST机,现故障是与VROUTE同一台HOST的VM是可以获取IP地址,但是其它HOST上的VM无法获取IP。三台HOST机的GUEST网卡接的交换机是TRUNK口。如果将KVM的OPENVSWITCH改为系统自带的BRIDGE就没有问题。请问是什么原因?谢谢。



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: Re: 求助日志报警 Unable to get current status on

2015-01-14 文章 linux...@gmail.com
看故障是管理节点访问计算节点的的时候,xapi通讯出了问题,建议看看xenserver的日志

在 2015年1月14日 上午9:04,zen...@conac.cn  写道:
>
> 防火墙都打开着,手动连接都没问题。
>
> 发件人: handeng@126
> 发送时间: 2015-01-13 21:15
> 收件人: users-cn@cloudstack.apache.org
> 主题: Re: 求助日志报警 Unable to get current status on
> 通讯故障,
> 看看防火墙是否打开了?
>
>> On Jan 13, 2015, at 7:12 PM, "zen...@conac.cn"  wrote:
>>
>> 各位:
>>我的安装环境是CS4.4+Xenserver6.2,在管理服务器日志里一直出现如下报警:
>> 2015-01-13 19:09:51,980 WARN [c.c.a.m.DirectAgentAttache] 
>> (DirectAgentCronJob-161:ctx-1dd6f512) Unable to get current status on 
>> 8(XS11-v61-Cnode02)
>> 2015-01-13 19:09:53,282 WARN [c.c.a.m.DirectAgentAttache] 
>> (DirectAgentCronJob-322:ctx-6ffe6f33) Unable to get current status on 
>> 10(XS12-v61-Cnode03)
>> 2015-01-13 19:09:53,427 WARN [c.c.a.m.DirectAgentAttache] 
>> (DirectAgentCronJob-81:ctx-2685789c) Unable to get current status on 
>> 9(XS13-v61-Cnode04)
>> 2015-01-13 19:09:53,475 WARN [c.c.a.m.DirectAgentAttache] 
>> (DirectAgentCronJob-323:ctx-80a02e56) Unable to get current status on 
>> 4(XS11-Cnode01)
>> 2015-01-13 19:09:53,641 WARN [c.c.a.m.DirectAgentAttache] 
>> (DirectAgentCronJob-324:ctx-ec164ea1) Unable to get current status on 
>> 1(XS14-Cnode04)
>> 2015-01-13 19:09:53,693 WARN [c.c.a.m.DirectAgentAttache] 
>> (DirectAgentCronJob-162:ctx-988405a3) Unable to get current status on 
>> 3(XS12-Cnode02)
>> 2015-01-13 19:09:54,161 WARN [c.c.a.m.DirectAgentAttache] 
>> (DirectAgentCronJob-18:ctx-97e76e08) Unable to get current status on 
>> 5(XS13-Cnode03)
>>
>> 不知道是什么原因,请问有哪位碰见过这种问题吗,怎么处理?
>>
>>
>>
>>
>



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: XenServer 6.5 正式发布

2015-01-14 文章 linux...@gmail.com
cloudstack支持xenserver 6.5的讨论一直在进行,已经有多为国外的朋友希望支持xenserver 6.5
要让社区尽快支持xenserver 6.5,最好的办法是大家多去jira里面向开发者提期望



在 2015年1月14日 下午5:15,Peration <575366...@qq.com> 写道:
> cloudstack 4.5 什么时候发布,有没有具体时间?
>
>
>
>
> -- 原始邮件 --
> 发件人: "HellCat";;
> 发送时间: 2015年1月14日(星期三) 下午5:14
> 收件人: "users-cn";
>
> 主题: Re: XenServer 6.5 正式发布
>
>
>
> 等了好久终于出来了,问下什么时候cloudstack会支持xenserver6.5
>
>
> -- Original --
> From:  "linux...@gmail.com";;
> Date:  Wed, Jan 14, 2015 05:11 PM
> To:  "users-cn";
>
> Subject:  XenServer 6.5 正式发布
>
>
>
> Hey ALL:
>
>xenserver 6.5正式发布了!
>
> xenserver 6.5使用了3.10的kernel,支持ceph。
>
> 发布说明:
> http://xenserver.org/blog/entry/creedence-launches-as-xenserver-6-5.html
>
> 下载地址:
>
> http://xenserver.org/overview-xenserver-open-source-virtualization/download.html
>
>
>
>
> --
> 白清杰 (Born Bai)
>
> Mail: linux...@gmail.com



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


XenServer 6.5 正式发布

2015-01-14 文章 linux...@gmail.com
Hey ALL:

   xenserver 6.5正式发布了!

xenserver 6.5使用了3.10的kernel,支持ceph。

发布说明:
http://xenserver.org/blog/entry/creedence-launches-as-xenserver-6-5.html

下载地址:

http://xenserver.org/overview-xenserver-open-source-virtualization/download.html




-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: 两张网卡来跑GUEST网络,无法添加隔离网络的网络方案

2015-01-09 文章 linux...@gmail.com
你需要先创建两个使用隔离网络方案的网络,然后虚机模板里面配置使用两块网卡
然后创建虚机时,在网络部分,选择两个隔离网络,其中一个作为default
就可以guest vm使用两个网卡了

在 2015年1月8日 上午9:19,w...@landhightech.com  写道:
> 大家好:
> Cloudstack4.4.1+VMware,高级网络
> 网卡1:192.168.20.*
> 网卡2:192.168.30.*
> Guest网络1:physical network2   192.168.20.*   vSwitch1
> Guest网络2:physical network3   192.168.30.*   vSwitch2
>
> 如果physical network2,physical network3 没有Tag标签会报错,手动添加Tags 标签分别是Tag1,Tag2
>
> 自己创建带有标签的网络方案:标签就是和physical network对应的标签。创建完网络方案就可以添加网络了。
>
> 但是只能添加共享的网络方案,隔离的网络方案创建成功后,无法添加。
> 即:双guest网卡,如何添加隔离网络方案的网络,求大家帮忙看看。
>
>
> w...@landhightech.com



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


WiseMonitor云计算监控系统

2015-01-04 文章 linux...@gmail.com
hey ALL:

分享一个基于cloudstack+xenserver的监控系统


WiseMonitor是集成基础设施、虚拟化平台、云平台监控报警为一体的监控系统。

对于基础设施支持以下监控功能:

检测主机是否在线
检测主机上运行的服务
主机和服务监控报警
主机和服务性能数据展示
使用插件自定义服务检测
网络设备监控
网络设备流量展示
主机和服务的报警信息通过WEB、SMS方式的实时通知

对于虚拟化平台,支持以下监控功能:

XenServer Master/Slaver架构监控
XenServer主机详细信息
XenServer虚拟机监控
XenServer虚拟机CPU Usage、磁盘IO、网卡IO性能数据展示
XenServer主机和虚拟机的VNC控制台的访问和回放
XenServer报警信息通过WEB、SMS方式的实时通知用户

对于云平台支持支持以下监控功能:

CloudStack Zone的列表和详情
CloudStack资源使用率展示

1.2 面向的用户

WiseMonitor面向运营IAAS公有云、私有云的用户,为运维团队提供详细全面的云平台纵深监控。

1.3 典型客户

在河南洛阳大学科技园的云平台部署中,WiseMonitor监控平台运行稳定,监控效果突出及时 ,获得运维团队的好评。

在山东滕州公安系统政务云平台部署升级中,WiseMonitor监控平台替代原有的监控平台,将基础设施、虚拟化平台、云平台的监控集成在一个平台中,实现统一访问。

在[浦软汇智公有云]的运营中,公司的运维团队一致认为WiseMonitor超过了原有的Zabbix监控。


介绍:http://code.rootk.com/entry/wisemonitor

代码:https://github.com/shelmesky/wisemonitor






-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: vmware workstation中安装cloudstack无法加入host

2015-01-04 文章 linux...@gmail.com
你是选用的kvm吗?

Unable to start agent:


看错误是因为kvm agent的原因。这个需要确定你的workstation是否支持二次虚拟化




2015-01-04 10:03 GMT+08:00 csos <15024341...@163.com>:
> 您好,向您请教下,我在vmware workstation的虚拟机上安装cloudstack,操作系统用的是ubuntu12.04 
> 64位server版本,CloudStack版本是4.0,unable to add host,agent报下面的错误,不知道是什么原因?
> 2015-01-02 02:00:09,450 ERROR [cloud.agent.AgentShell] (main:null) Unable to 
> sta
> rt agent:
> com.cloud.utils.exception.CloudRuntimeException: Cannot recv data: Connection 
> re
> set by peer
> at 
> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.configure(
> LibvirtComputingResource.java:654)
> at com.cloud.agent.Agent.(Agent.java:163)
> at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:559)
> at 
> com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:5
> 14)
> at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:431)
> at com.cloud.agent.AgentShell.start(AgentShell.java:589)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:57)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:622)
> at 
> org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.jav
> a:243)
>



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: SSVM启动不起来问题

2015-01-04 文章 linux...@gmail.com
看错误是因为网络的原因引起的
建议检查下网络是不是通的

另外提问题的时候,建议说明下基本架构信息,方便其他人分析

2015-01-04 14:19 GMT+08:00 xusz :
>
>
> HI ALL
>
> 虚拟化平台SSVM启动不起来,出现以下错误 ,on: Unable to get a storage network ip 
> addressScope=interface com.cloud.dc.Pod; id=1
>
>
>
> 是什么意思,出现什么问题,应如何解决,多谢!
>
>
>
>
>
> 2015-01-04 14:17:11,669 DEBUG [cloud.network.NetworkManagerImpl] 
> (secstorage-1:null) Asking VpcVirtualRouter to prepare for 
> Nic[26426-7235-411940c2-07c2-4bf4-94f9-666998b27ef6-192.168.3.122]
>
> 2015-01-04 14:17:11,669 WARN  [network.element.VpcVirtualRouterElement] 
> (secstorage-1:null) Network Ntwk[201|Management|2] is not associated with any 
> VPC
>
> 2015-01-04 14:17:11,669 DEBUG [cloud.network.NetworkManagerImpl] 
> (secstorage-1:null) Asking NiciraNvp to prepare for 
> Nic[26426-7235-411940c2-07c2-4bf4-94f9-666998b27ef6-192.168.3.122]
>
> 2015-01-04 14:17:11,670 DEBUG [cloud.network.NetworkManagerImpl] 
> (secstorage-1:null) Lock is acquired for network id 203 as a part of network 
> implement
>
> 2015-01-04 14:17:11,670 DEBUG [cloud.network.NetworkManagerImpl] 
> (secstorage-1:null) Network id=203 is already implemented
>
> 2015-01-04 14:17:11,671 DEBUG [cloud.network.NetworkManagerImpl] 
> (secstorage-1:null) Lock is released for network id 203 as a part of network 
> implement
>
> 2015-01-04 14:17:11,713 DEBUG [db.Transaction.Transaction] 
> (secstorage-1:null) Rolling back the transaction: Time = 1 Name =  
> -SystemVmLoadScanner$1.run:71-Executors$RunnableAdapter.call:471-FutureTask$Sync.innerRunAndReset:351-FutureTask.runAndReset:178-ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201:165-ScheduledThreadPoolExecutor$ScheduledFutureTask.run:267-ThreadPoolExecutor.runWorker:1110-ThreadPoolExecutor$Worker.run:603-Thread.run:679;
>  called by 
> -Transaction.rollback:887-StorageNetworkIpAddressDaoImpl.takeIpAddress:94-DatabaseCallback.intercept:34-StorageNetworkManagerImpl.acquireIpAddress:347-StorageNetworkGuru.reserve:130-NetworkManagerImpl.prepareNic:2143-NetworkManagerImpl.prepare:2113-VirtualMachineManagerImpl.advanceStart:752-VirtualMachineManagerImpl.start:472-VirtualMachineManagerImpl.start:465-SecondaryStorageManagerImpl.startSecStorageVm:257-SecondaryStorageManagerImpl.allocCapacity:684
>
> 2015-01-04 14:17:11,716 DEBUG [db.Transaction.Transaction] 
> (secstorage-1:null) Rolling back the transaction: Time = 1 Name =  
> -SystemVmLoadScanner$1.run:71-Executors$RunnableAdapter.call:471-FutureTask$Sync.innerRunAndReset:351-FutureTask.runAndReset:178-ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201:165-ScheduledThreadPoolExecutor$ScheduledFutureTask.run:267-ThreadPoolExecutor.runWorker:1110-ThreadPoolExecutor$Worker.run:603-Thread.run:679;
>  called by 
> -Transaction.rollback:887-StorageNetworkIpAddressDaoImpl.takeIpAddress:94-DatabaseCallback.intercept:34-StorageNetworkManagerImpl.acquireIpAddress:347-StorageNetworkGuru.reserve:130-NetworkManagerImpl.prepareNic:2143-NetworkManagerImpl.prepare:2113-VirtualMachineManagerImpl.advanceStart:752-VirtualMachineManagerImpl.start:472-VirtualMachineManagerImpl.start:465-SecondaryStorageManagerImpl.startSecStorageVm:257-SecondaryStorageManagerImpl.allocCapacity:684
>
> 2015-01-04 14:17:11,717 INFO  [cloud.vm.VirtualMachineManagerImpl] 
> (secstorage-1:null) Insufficient capacity
>
> com.cloud.exception.InsufficientAddressCapacityException: Unable to get a 
> storage network ip addressScope=interface com.cloud.dc.Pod; id=1
>



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: 管理IP不知道被什么占用,管理IP被耗尽

2014-12-30 文章 linux...@gmail.com
建议把这个问题汇报到社区的jira里面。

地址:https://issues.apache.org/jira/browse/CLOUDSTACK

在 2014年12月31日 上午9:34,崔佳 写道:

> 我的问题和你一样~管理类IP 在执行了一次重启之后也被占用了,之前没有释放~!@#!@
>
> 查看注册表,发现有两个IP的MAC地址是一样的,将来如何释放呢?
>
>
> ​
>
> 2014-12-28 18:38 GMT+08:00 Peration <575366...@qq.com>:
>
>> ssvm和cpvm在cloudstack
>> UL中手动删除时会自动释放IP,但是重启物理机器后ssvm和cpvm使用过的IP不会自动释放,每次重启管理IP总会减少直至管理IP耗尽,从而导致ssvm启动不起来。必须到cloud数据库表中手动释放,不知道为何?
>>
>>
>> 管理节点以及数据库 主存储以及二级存储和计算节点都是安装在一台物理机器,cloudstadck版本4.4.2+KVM+centos6.5
>>
>>
>>
>>
>> ssvm and cpvm cloudstack UL automatically released when manually delete
>> IP, but ssvm and cpvm used IP does not automatically restart after the
>> release of the physical machine, each time you restart the management IP
>> management IP is always reduced until exhausted, leading to ssvm start up.
>> Must go to the cloud database tables manually released, I do not know why?
>>
>>
>> Management node and primary storage and secondary storage, database and
>> compute nodes are installed on a single physical machine, cloudstadck
>> version 4.4.2 + KVM + centos6.5‍
>
>
>


-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: OPENVSWITCH VM无法上外网

2014-12-25 文章 linux...@gmail.com
你没有日志,别人怎么分析呢

在 2014年12月25日 上午11:50,Daniel Zhang  写道:
> Dear All,
>
>
> 我的环境是cloudstack4.4.1-kvm+openvswitch,高级网络,Isolation 
> method是用的GRE。网络的出口规则开启了ALL。现出现这样一个现象,VM不能上外网,无法PING通外网IP。能PING通网关。虚拟路由器是可以PING通外网的。管理平台的OVS的功能已经开启了。把KVM改用默认的桥接,Isolation
>  method是用的VLAN的模式,VM是可以上外网的。请问是什么原因?谢谢



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Fwd: CloudStack 4.3.2 packages

2014-12-24 文章 linux...@gmail.com
-- Forwarded message --
From: Rohit Yadav 
Date: 2014-12-24 19:37 GMT+08:00
Subject: CloudStack 4.3.2 packages
To: "us...@cloudstack.apache.org" 


Hi everyone,

CloudStack 4.3.2 packages along with links to release notes are
available here now: http://shapeblue.com/packages

For 4.3.2 release, users can continue using 4.3.1 systemvmtemplates:
http://packages.shapeblue.com/systemvmtemplate/4.3/4.3.1/

Regards,
Rohit Yadav
Software Architect, ShapeBlue
M. +91 8826230892 | rohit.ya...@shapeblue.com
Blog: bhaisaab.org | Twitter: @_bhaisaab
PS. If you see any footer below, I did not add it :)
Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//>
CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
CloudStack Software
Engineering<http://shapeblue.com/cloudstack-software-engineering/>
CloudStack Infrastructure
Support<http://shapeblue.com/cloudstack-infrastructure-support/>
CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>

This email and any attachments to it may be confidential and are
intended solely for the use of the individual to whom it is addressed.
Any views or opinions expressed are solely those of the author and do
not necessarily represent those of Shape Blue Ltd or related
companies. If you are not the intended recipient of this email, you
must neither take any action based upon its contents, nor copy or show
it to anyone. Please contact the sender if you believe you have
received this email in error. Shape Blue Ltd is a company incorporated
in England & Wales. ShapeBlue Services India LLP is a company
incorporated in India and is operated under license from Shape Blue
Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in
Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA
Pty Ltd is a company registered by The Republic of South Africa and is
traded under license from Shape Blue Ltd. ShapeBlue is a registered
trademark.


-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: 更新系统模板后如何即时生效

2014-12-23 文章 linux...@gmail.com
http://mail-archives.apache.org/mod_mbox/cloudstack-users/201404.mbox/%3ccf7d4a6e.3bb21%25nitin.me...@citrix.com%3E

这里之前讨论过类似的问题

解决方法:

>1) Register new system vm template  and change the type = ³SYSTEM² in
>vm_template table. (update `cloud`.`vm_template` set type='SYSTEM' where
>id = )
>2) Update vm_template_id = ³² for all system vm entries in
>vm_instance table corresponding to the hypervisor.
>3) Stop start the system vms

在 2014年12月24日 上午9:51,aix.niuy  写道:
> 环境cloudstack4.3.1
> 主存储NFS
> 二级存储NFS
> 系统模板由于var空间太小,订制了新的模板扩大了分区容量
> 使用/usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt更新模板后,ssvm停机,启动。
> NFS存储校验
> 旧模板
> /home/enfs/secondary/template/tmpl/1/3-bak/8c16755b-007e-4b90-af98-17301fee16e9.qcow2
>  284M
> 新模板
> /home/enfs/secondary/template/tmpl/1/3/ecf85c4c-6dcd-4a86-9039-9e22f203b11c.qcow2
>   1.4G
>
> 测试创建VPC创建后通过ssh登录到VR创建的模板使用的还是旧模板。
>
> 重置环境后这个问题不会出现,想请教如何直接更新模板。
> 2014-12-24
>
>
>
> aix.niuy



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


僧多粥少?还原 OpenStack 的真实“钱景”

2014-12-16 文章 linux...@gmail.com
原文链接:http://www.oschina.net/news/57994/openstack-income-analysis

451 Research发布了OpenStack的收入分析预测,指出OpenStack市场的收入规模2014年约8.83亿美元,2018年将增长至33亿
美元,年复合增长率高达40%。但是,如今市场上已经有数十家“OpenStack公司”,他们靠什么盈利?未来空间有多大?以下内容由IT经理网编译整
理自Gigaom:

开源盈利模式之痛

评估开源软件的商业价值通常是非常困难的一件事,主要是因为两点,一是开源软件服务市场的水很浑,各家厂商的收入往往都不很透明。再则,开源软件的
盈利模式非常多样化,有收取技术支持服务费的,有开源的同时搭售商业化版本的,有提供专业服务的,也有多种模式混合的。无论模式如何,开源市场迄今依然没
有诞生“高富帅”利润土壤,这让人们对时下火爆的OpenStack公司们感到担忧。

但有一件事是非常明确的:那就是IT厂商已经习惯了从软件授权中获取利润丰厚的预付款,然后通过年服务费和维护费再从客户身上细水长流地刮一遍油
水;但这种盈利模式在开源软件行当是绝对行不通的。一方面是因为很多企业客户选择开源软件服务就是为了摆脱软件授权模式的沉重枷锁,另外,对于开源软件厂
商而言,从产品中很难获取高额利润。 Host Analytics的首席执行官Dave
Kellogg上个月在博客中对启动IPO进程的Hortonworks曾进行分析,他认为开源软件行当中唯一把生意做大的是Red
Hat,但是相比IBM、Oracle,Red Hat依然只能算是小打小闹。

回到OpenStack的话题,如今市场上已经有数十家“OpenStack公司”,他们靠什么盈利?未来空间有多大?目前OpenStack基金
会有8家白金会员,16家金牌会员和87家企业赞助商,共计约111家“利益相关者”,想知道其中任何一家的真实收入都是非常困难的。

僧多粥少,OpenStack的真实钱景

幸运的是,上周451 Research发布了
OpenStack的收入分析预测,指出OpenStack市场的收入规模2014年约8.83亿美元,2018年将增长至33亿美元,年复合增长率高达
40%。451 Research的报告调查了60家OpenStack业务公司,统计数字包括了公有云和私有云市场。报告指出当下OpenStack的大多数收入都来自
60家受访企业中的30家(例如Mirantis和Rackspace),大多数企业距离大规模盈利还很遥远。而且2018年的33亿美元收入平摊到60
家厂商头上,每家的平均理想化收入约5500万美元,钱景虽说不上暗淡,但也绝无太大想象空间,而且这个市场显然已经僧多粥少,不可能在涌入上百家新的企
业来分一杯羹。

从上图可以看出,OpenStack市场目前最主要的收入来自服务,其次是产品发行部署和管理整体方案、Devops开发运维工具和基于OpenStack的PaaS服务等。

实际上,OpenStack今天的成功很大一部分是品牌推广上的胜利,在开源云计算架构的战争中,OpenStack的反对者们认为CloudStack实际上更加成熟。甚至451
Research的云计算平台研究总监Jay
Lyman也认为:如果企业需要立刻实施,那么选择CloudStack更加明智,但OpenStack的优势是会员企业实力雄厚,风物长宜放眼量,未来发展前景不错。(参考阅读:OpenStack还要多少个十亿来修复)


-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


如何向开源社区提问题

2014-12-11 文章 linux...@gmail.com
来源:https://github.com/seajs/seajs/blob/master/CONTRIBUTING.md

使用软件产品,或多或少都会遇到问题。对于商业产品,我们可以咨询客服寻求帮助。对于公司自己研发的产品,我们可以直接请教专家同事。但对于开源软件,在遇到问题时,如何才能及时有效地寻求帮助呢?

本文以开源类库 Sea.js 为例,说说我心目中的最佳实践。

提问前

遇到问题时,心里都很着急。在决定向开源社区提交问题前,最好先做做以下功课:

尝试从官方文档中找到答案

确保自己阅读过至少一次官方文档。这样在遇到问题时,如果能回忆起只言片语,就可以再去读一遍相关文档,问题往往也就解决了。

Google 是你的朋友

对于成熟的开源项目,你遇到的问题,很可能别人也遇到过。这时通过 Google、StackOverflow
等网站的搜索服务,可以帮你快速定位并解决问题。永远记住,地球上的你并不孤单,包括你遇到的问题。

挖掘 Bug 宝藏

开源软件一般都会有自己的 Bug 管理方案,比如 WebKit、V8、jQuery、Sea.js 等等。从它们的官网上找到 Bug
管理地址,然后通过搜索看看有无你遇到的问题。对于活跃社区来说,这一招经常很管用。比如 jQuery 的 Bug Tracker,通过右上角的
Search Tickets 可以找到非常多有用的信息。一个运作良好的 Bug 库,经常是一座巨大的宝藏。Sea.js 是直接通过
GitHub Issues 来管理,你可以在 Issues 中找到很多信息。

求助身边的朋友

如果你使用的开源软件,在朋友圈或同事圈里也有人使用,那么抬起你的脚、或拿起你的电话,真挚诚恳的探讨不会遭遇拒绝,而会增进友谊。不要犹豫,你的内心渴望面对面交流,你的朋友也是。

如果以上 4 步都无法解决你遇到的问题,也别犹豫,立马向开源社区提交问题就好。

提问时

提问有很多种,比如你认识作者,直接面对面请教就行。下面探讨的是如何通过互联网的方式来问问题。

平和对等的心态

很多开源软件都是免费的,作者往往是业余时间出于兴趣在维护,没有义务回答社区问题。提问时,不要把自己摆在顾客的位置,比如

项目马上要上线了,请务必帮忙解决 这是我的邮箱,请及时联系我

另外,也不要把自己摆在乞食者的位置,比如

冰天雪地跪求解答 救命啊,我的网站挂了

在开源社区,一切皆是朋友。无论对方是 Linux 内核的作者,还是某个 jQuery
插件的作者,你和作者都是对等的。你的提问是在帮助开源软件完善。平和对等的心态,可以让你的问题赢得更多人的阅读和思考。

通过正确的途径提交

如果遇到问题的开源软件有专门的 Bug 管理系统,请最好到这些指定系统中提交。比如,对于前端开发工程师来说,下面这些 Tracker 系统很重要。

jQuery Tickets
WebKit Bugzilla
Mozilla Bugzilla

还有各个开源类库的 Issues 库,比如 Sea.js 的是:seajs/issues

最不好的途径是

QQ 、阿里旺旺、微信等群组。这些群组主要是用来工作或休闲的。对开源项目来说,在这些地方提问,作者一般不会关注,效率非常低。

微博、Facebook 等社交网络。不少人在微博上通过 at 或私信询问 Sea.js
问题,这些我经常看不到。看到了,也不情愿回复。微博是扯淡、交流情感的地方,一般是写代码写累了,才去逛逛,很少会有在社交网络上回答技术问题的心情。

通过正确的途径提交问题,一般可以让你的问题得到及时准确的回复。

使用明确、有意义的标题

抱着平和对等的心态,找到合适的途径后,就得静下心来将遇到的问题写成文字。书写文字不是一件简单的事情,我们可以从遵循一些简单的规则开始。

首先是标题要简洁清晰,要言之有物。比如

我遇到了一个 Ajax 问题 Sea.js 在我的浏览器上运行不了

上面的标题很糟糕,光看标题作者无法知道发生了什么事。当开源社区的问题很多时,上面这类标题,经常会让作者直接忽视或将优先级降到很低。更妥当的标题是

Ajax 请求未返回正确的 responseXML Sea.js 2.0 在 IE6 上运行时抛错

明确、有意义的标题,可以帮助作者确定问题具体是什么类型、预估需要多少时间解决、是否现在马上解决等。一个好的标题,也有利于社区知识的沉淀和后期搜索。标题有如一个人的颜面衣着,虽然不是关键,但在嘈杂的信息社区中,这很重要。

遵循良好的模板

如果社区提供了问题模板,一定要仔细看下。比如 Google Code 社区,当你创建一个问题时,会自动提供以下模板:

What steps will reproduce the problem?
该问题的重现步骤是什么?
1.
2.
3.

What is the expected output? What do you see instead?
你期待的结果是什么?实际看到的又是什么?


What version of the product are you using? On what operating system?
你正在使用产品的哪个版本?在什么操作系统上?


Please provide any additional information below.
如果有的话,请在下面提供更多信息。

遵循这个模板去描述问题,经常能省很多事。作者一般也非常欢迎通过模板提交的问题。如果社区没有提供模板,也可以自己遵循以上模板来提交。

下面针对问题内容,具体说说一些需要注意的点。

语法正确、格式清晰

虽然我们不是作家,但正确的语法、清晰的格式,可以让读者赏心悦目,也就更有心情帮你一起思考解决问题。

对于很多需要代码来描述的问题,要尤其注意格式,比如

seajs.use('jquery',function($){$(document).ready(function() { /* ... */ })});

可读性不如

seajs.use('jquery', function($) {
  $(document).ready(function() {
// ...
  });
});

GitHub 的 Markdown 语法可以很好地支持代码排版、语法高亮等,建议书写代码时,一定要先阅读下说明:GitHub
Flavored Markdown。这能让你的内容看起来很专业,社区也就更有意愿会去帮助你,否则糟糕的排版,经常带来的是发帖之后的石沉大海。

描述事实、而不是猜测

事实是指,依次进行了哪些操作、产生了怎样的结果。比如

我在 Windows XP 下用 IE6 打开 seajs.org 后,点击“5 分钟上手 Sea.js”,这时浏览器弹出脚本错误提示,例子显示不正确。

上面是一段比较好的事实描述(更好的是把错误提示也截图上来),而不要像下面这样猜测:

Sea.js 在 IE6 下运行不正常,我怀疑是源码第 213 行有问题。

上面的描述,会让作者一头雾水、甚至很恼火。尽量避免猜测性描述,除非你能先描述事实,在事实描述清楚之后,再给出合理的猜测是欢迎的。

对于前端项目来说,如果能提供可重现错误的在线可访问代码,那是最好不过的。一旦你这么用心去做了,作者往往也会很用心地立马帮你解决。

描述目标、而不是过程

经常会有这种情况,提问者在脑袋里有个更高层次的目标,他们在自以为能达到目标的特定道路上卡住了,然后跑来问该怎么走。比如

Sea.js 的 parseMap 方法在遇到 map 的多个配置项同时匹配同一个路径时,应该允许用户指定是全部生效还是仅第一个匹配的配置项生效。

上面这个问题的背后,提问者实际上想解决的是如何通过 Sea.js 来做版本管理。提问者选择了通过 map
的方式来实现,但这过程中遇到了问题,因此跑过来继续怎么走。然而,如果只是描述过程,往往会把作者也绕进去。

实际情况却是,提问者选择的路本身就是一条崎岖之路,对于要解决的问题,实际上有更好的方式。这种情况下,描述清楚目标,讲清楚要干什么非常重要。

在描述自己是怎么做之前,一定要先描述要做什么。提问题时,What 往往比 How 更重要。

要有具体场景

无论在开源社区,还是微博、知乎等平台上,有一种非常常见的问题:

如何维护 JavaScript 代码? 如何使用 Sea.js 进行模块化开发?

这类问题还有很多,每每遇到,只能笑笑,然后悄悄地忽略掉。因此这类问题很难回答,就如下面这些问题一样:

如何才能让生命有意义? 如何打败淘宝?

这类提问者,一般比较浮躁,经常对问题本身也没有经过思考。踏实的提问者,不会让问题浮在空中无法回答,而会在具体场景中让问题落地:

我的项目有 20 多个 JS 文件,接下来还会急剧增加。目前遇到以下问题……(省略五百字)…… 请问如何维护?

仔细检查、确保准确

是人都会犯错误,特别是在如此快节奏的互联网环境下。好不容易把问题描述清楚时,不要急着立刻提交。在提交前,至少保证从头到尾再仔细阅读一遍,比如语法错误、错别字、标点符号、排版等等。做到这些,不光是尊重别人,也是尊重自己。

提问后

提交问题后,建议通过邮件等方式订阅回复。互联网上最有效的沟通方式是异步沟通,不要期待作者马上回复,也不要心烦意乱着急地等待。出去看看天,数数云朵,你会逐步明白什么是风轻云淡。

尽可能补充信息

在接收到回复时,仔细阅读。最经常的情况是,社区回复的,经常不是你想要的。比如

根据你的描述,问题无法重现。能否提供具体使用环境和重现步骤?

这时要淡定。仔细看看自己提交的问题描述是否足够清晰,如果有可补充的信息,尽量补充,以帮助作者能尽快定位问题。比如

很抱歉,我前面有一步描述不正确,实际情况是我是在 IETester 中运行的……

谦和淡定的交流,不光能帮助你解决问题,还有助于你结交更多朋友。

适当的总结

当问题终于解决时,建议对问题进行总结。可以编辑原帖,也可以通过博客等方式总结。你的总结,会让遇到同样问题的朋友们受益,并且对自己的技能也是一种提高。前端业界,无论国内还是国外,有很多牛人之所以成为牛人,很大程度上都是因为有总结思考的好习惯。

不要忘记感谢

最后,记得感谢。很多开源软件的作者,都是利用业余时间在创作代码。你的感谢,汇集许许多多大家的感谢,会让开源社区充满爱与力量。



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: 关于cloudstack管理IP大量使用,其实根本没有使用那么多

2014-12-11 文章 linux...@gmail.com
建议把版本信息和基本环境介绍下

在 2014年12月11日 上午10:51,Peration <575366...@qq.com>写道:
>
> 关于cloudstack管理IP大量使用,其实根本没有使用那么多
>
> --
> *从QQ邮箱发来的超大附件*
>
> <http://mail.qq.com/cgi-bin/ftnExs_download?k=78343337f9076e9a255078151734004902065501035550021f57045101190605000d1e0e0303544b57015205070c0254075704063121320b535a52505459570846194052434257141c585c503109&t=exs_ftn_download&code=2437142f>
> management-server.log
> <http://mail.qq.com/cgi-bin/ftnExs_download?k=78343337f9076e9a255078151734004902065501035550021f57045101190605000d1e0e0303544b57015205070c0254075704063121320b535a52505459570846194052434257141c585c503109&t=exs_ftn_download&code=2437142f>
> (58.24M, 2015年01月10日 10:50 到期)
> 进入下载页面
> <http://mail.qq.com/cgi-bin/ftnExs_download?k=78343337f9076e9a255078151734004902065501035550021f57045101190605000d1e0e0303544b57015205070c0254075704063121320b535a52505459570846194052434257141c585c503109&t=exs_ftn_download&code=2437142f>
> :
> http://mail.qq.com/cgi-bin/ftnExs_download?k=78343337f9076e9a255078151734004902065501035550021f57045101190605000d1e0e0303544b57015205070c0254075704063121320b535a52505459570846194052434257141c585c503109&t=exs_ftn_download&code=2437142f
>


-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: 用controller控制ovs的时候,会和CS有冲突吗

2014-12-09 文章 linux...@gmail.com
这个没有试过,理论上是会冲突的。OVS是干活儿的,一会儿cloudstack给它下发指令,一会儿controller下发指令,必然会有冲突

在 2014年12月9日 上午12:14,Mr.博 <289254...@qq.com> 写道:
> 各位导师,请问一下,用controller控制ovs的时候,会和CS有冲突吗?cloudstack4.4.x的网络服务提供程序中有OpenDelight的选项,不过处于测试阶段。小弟目前用的是4.3.1,如果用controller来为OVS设置流表规则的时候,会与cloudstack的设置相冲突吗?求指导
> Load BalancerOVS
> User DataVirtualRouter
> Source NATVirtualRouter
> Static NATOVS
> Post ForwardingOVS
> Virtual NetworkingOVS



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: 如果只有一块网卡,还需要做bond吗?

2014-11-04 文章 linux...@gmail.com
不需要做

在 2014年11月5日 上午10:13,Yan Bai  写道:
> 大家好,
>
> 我是CloudStack新手。这几天在学习如何向CloudStack中添加XenServer主机,我准备添加2台Host。
>
> 添加第一台XenServer的时候没问题,但是添加第二台时候就失败了,原因应该是我没有做网卡绑定。
>
> 文档中描述添加XenServer有3个步骤:
> 1. 在第一台Host(master)上做网卡绑定
> 2. 如果需要添加多个XenServer,需要将后续的Host添加到pool中
> 3. 在第一台机器上执行cloud-setup-bonding.sh
>
> 我想问一下,因为我的机器只有一块网卡(eth0),还需要做绑定吗?
>
> 多谢各位!



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: 建立ubuntu VM失败

2014-11-03 文章 linux...@gmail.com
(Thread.java:679)
> 2014-11-03 13:11:04,840 INFO  [xen.resource.XenServer56Resource]
> (DirectAgent-13:null) Catch com.xensource.xenapi.Types$VifInUse: failed to
> destory VLAN eth1 on host dbffcf40-5a66-406b-bf04-292b9c0757fa due to
> Network has active VIFs
> 2014-11-03 13:11:04,840 DEBUG [xen.resource.CitrixResourceBase]
> (DirectAgent-13:null) The VM is in stopped state, detected problem during
> startup : i-2-21-VM
> 2014-11-03 13:11:04,840 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-13:null) Seq 1-112718072: Response Received:
> 2014-11-03 13:11:04,841 DEBUG [agent.transport.Request]
> (DirectAgent-13:null) Seq 1-112718072: Processing:  { Ans: , MgmtId:
> 207458817951964, via: 1, Ver: v1, Flags: 110,
> [{"com.cloud.agent.api.StartAnswer":{"vm":{"id":21,"name":"i-2-21-VM","bootloader":"CD","type":"User","cpus":1,"minSpeed":1000,"maxSpeed":1000,"minRam":536870912,"maxRam":536870912,"arch":"x86_64","os":"Ubuntu
> 10.04
> (32-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuUse":false,"enableDynamicallyScaleVm":false,"vncPassword":"8ec106c29b9ccf80","params":{},"uuid":"1cba10ec-5fbf-43be-b65b-53b9fc2f3c4c","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"454bb5a0-9557-4825-86d0-5c030de214f9","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"0eff8ee6-1ffa-1e3c-b6af-3bf476ab26f7","id":1,"poolType":"LVM","host":"192.168.10.6","path":"lvm","port":0}},"name":"ROOT-21","size":21474836480,"path":"abbd6184-d3b6-4d58-9d09-14b647a41da4","volumeId":21,"vmName":"i-2-21-VM","accountId":2,"format":"VHD","id":21,"hypervisorType":"XenServer"}},"diskSeq":0,"type":"ROOT"},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/208/208-2-01baa7a7-3123-30b8-bfe6-02b757fd3936.iso","origUrl":"
> http://192.168.0.22/test/ubuntu-10.04.4-server-i386.iso","uuid":"d2748e91-5aef-4d4f-bb8c-25a29dca7c92","id":208,"format":"ISO","accountId":2,"checksum":"fc08a01e78348e3918180ea91a6883bb","hvm":true,"displayText":"Intel
> x86 server","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://
> 192.168.10.4/exports/sec","_role":"Image"}},"name":"208-2-01baa7a7-3123-30b8-bfe6-02b757fd3936","guestOsType":"Ubuntu
> 10.04
> (32-bit)","hypervisorType":"None"}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"uuid":"b3f82c8c-dac0-451c-84a7-e54830fdf82b","ip":"10.1.1.202","netmask":"255.255.255.0","gateway":"10.1.1.1","mac":"02:00:5b:b3:00:11","dns1":"8.8.8.8","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://128","isolationUri":"vlan://128","isSecurityGroupEnabled":false,"name":"cmfg2Guest"}]},"result":false,"details":"Unable
> to start i-2-21-VM due to ","wait":0}}] }
> 2014-11-03 13:11:04,841 DEBUG [agent.manager.AgentAttache]
> (DirectAgent-13:null) Seq 1-112718072: No more commands found
> 2014-11-03 13:11:04,842 DEBUG [agent.transport.Request]
> (Job-Executor-20:job-135 = [ 78a88c08-7970-47b1-8155-808664738e48 ]) Seq
> 1-112718072: Received:  { Ans: , MgmtId: 207458817951964, via: 1, Ver: v1,
> Flags: 110, { StartAnswer } }
> 2014-11-03 13:11:04,944 INFO  [cloud.vm.VirtualMachineManagerImpl]
> (Job-Executor-20:job-135 = [ 78a88c08-7970-47b1-8155-808664738e48 ]) Unable
> to start VM on Host[-1-Routing] due to Unable to start i-2-21-VM due to
> 2014-11-03 13:11:05,036 DEBUG [cloud.vm.VirtualMachineManagerImpl]
> (Job-Executor-20:job-135 = [ 78a88c08-7970-47b1-8155-808664738e48 ])
> Cleaning up resources for the vm VM[User|ubuntuLocalStorage] in Starting
> state
> 2014-11-03 13:11:05,038 DEBUG [agent.transport.Request]
> (Job-Executor-20:job-135 = [ 78a88c08-7970-47b1-8155-808664738e48 ]) Seq
> 1-112718073: Sending  { Cmd , MgmtId: 207458817951964, via: 1, Ver: v1,
> Flags: 100111,
> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":true,"vmName":"i-2-21-VM","wait":0}}]
> }
> 2014-11-03 13:11:05,038 DEBUG [agent.transport.Request]
> (Job-Executor-20:job-135 = [ 78a88c08-7970-47b1-8155-808664738e48 ]) Seq
> 1-112718073: Executing:  { Cmd , MgmtId: 207458817951964, via: 1, Ver: v1,
> Flags: 100111,
> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":true,"vmName":"i-2-21-VM","wait":0}}]
> }
> 2014-11-03 13:11:05,038 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-446:null) Seq 1-112718073: Executing request
> 2014-11-03 13:11:05,153 INFO  [xen.resource.CitrixResourceBase]
> (DirectAgent-446:null) VM does not exist on
> XenServerdbffcf40-5a66-406b-bf04-292b9c0757fa



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: CloudStack是否支持自己定制负载均衡算法

2014-11-03 文章 linux...@gmail.com
cloudstack 目前的资源调度是支持用户自己开发调度算法的。可以通过写插件的方式实现。

http://docs.cloudstack.apache.org/en/latest/plugins.html

你们写好的插件,需要通过全局配置参数进行修改,这样就可以使用你们自己的插件了

这里是一个介绍。

在 2014年11月3日 下午5:06,王超  写道:
> Hi,All:
>
> CloudStack有自己实现一些资源调度的负载均衡算法。我想请教下CloudStack支不支持自己定制负载均衡算法呢,如果支持的话具体要怎么做?有没有前辈有类似的经验可以分享?
>
> --
> -
> Best regards



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: 编译cloudstack4.4.1 nonoss出错

2014-10-30 文章 linux...@gmail.com
ssorImpl.java:57)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at 
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
> at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:236)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:134)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:113)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at 
> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> at 
> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> at 
> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> at 
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
> runUploadSslCertSelfSignedWithPassword(org.apache.cloudstack.network.lb.CertServiceTest)
>  Time elapsed: 0.005 sec <<< ERROR!
> com.cloud.utils.exception.CloudRuntimeException: Error parsing certificate 
> data Certificate expired or not valid
> at 
> org.apache.cloudstack.network.lb.CertServiceImpl.uploadSslCert(CertServiceImpl.java:145)
> at 
> org.apache.cloudstack.network.lb.CertServiceTest.runUploadSslCertSelfSignedWithPassword(CertServiceTest.java:196)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at 
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
> at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:236)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:134)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:113)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at 
> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> at 
> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> at 
> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> at 
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
>
>
> zt



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: Re: 关于cloudstck高级网络中 使用PVLAN的问题

2014-10-30 文章 linux...@gmail.com
http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Admin_Guide/pvlan.html

可参考这个资料


H3C 关于pvlan的支持
http://book.51cto.com/art/201201/311440.htm



在 2014年10月29日 下午7:23,aix.niuy  写道:
> http://network.51cto.com/art/200509/3644.htm
> 参照下吧,我们2个交换机物理层测试通过了,最好还是放弃了,VLAN不够的情况要加交换设备,满足不了测试需求
>
> 2014-10-29
>
>
>
> aix.niuy
>
>
>
> 发件人:guang wu 
> 发送时间:2014-10-29 16:35
> 主题:Re: 关于cloudstck高级网络中 使用PVLAN的问题
> 收件人:"users-cn"
> 抄送:
>
> 我也想用pvlan功能,但是不知道华为的或者H3C的哪些交换机具有pvlan功能,以及怎么设置,官网给出的都是cisco的交换机型号及配置,能否有相关的文档供参考,谢谢
>
> 在 2014年10月28日 下午4:59,aix.niuy 写道:
>
>> hi 各位:
>> 现在的环境是一台H3C的交换机,如果我想配置PVLAN的来宾网络,一台交换机可否实现?
>> 按照网上的说明H3C交换机需要2台交换机做上下层通信,有通过cloudstack配置过PVLAN的朋友给些经验,感谢分享。
>> 另外来宾网络的方案是共享模式,在创建网络方案的时候发现无法添加DHCP服务,在创建VR的过程中按照官方的文档:
>>
>> https://cwiki.apache.org/confluence/display/CLOUDSTACK/PVLAN+for+isolation+within+a+VLAN
>>  DHCP VM是如何规划,外部创建还是通过cloudstack创建?
>>
>> 感谢支持!
>> 2014-10-28
>>
>>
>>
>> aix.niuy



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: 在不同pod间迁移虚拟机

2014-09-27 文章 linux...@gmail.com
虚机的内网地址可以变吗?


在 2014年9月28日 上午11:38,HellCat  写道:
> 各位好,我目前的环境是
> cloudstack4.4.0
> 基础网络
> xenserver6.2sp1
> pod1网关10.1.1.1/24
> pod2网关10.1.2.1/24
>
> 我把一台pod1的VM迁移到Pod2,发现该VM的IP地址仍然是pod1的,也就是10.1.1.xx,导致迁移到pod2后无法通信,重启也不能获取到pod2的ip
> 请问怎么解决此问题



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: 4.1.0后台为什么定时任务一直不自动扫描了,导致HA功能失效。

2014-09-27 文章 linux...@gmail.com
有报错日志吗?



2014-09-25 11:53 GMT+08:00 toudsf <18600601...@163.com>:
>
>
> 2014-09-25
>
>
>
> toudsf



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: 在ubuntu 12.04上安装cloudstack 4.4,发生503的错误

2014-09-23 文章 linux...@gmail.com
你检查下服务是不是没有启动

另外你的安装环境是怎样的

2014-09-23 13:09 GMT+08:00 Xianxia Xiao :
>
> 大家好!
> 我在ubuntu 12.04上按官方的教程安装cloudstack4.4,安装完成后,在浏览器里输入地址时,提示503.
> HTTP Status 503 - This application is not currently availabletype Status 
> report
> message This application is not currently available
> description The requested service (This application is not currently 
> available) is not currently available.
>
>
> 大家有没有人遇到过呢,安装的时候需要注意些什么呢?有谁遇到过可以指导下我吗?谢谢!
>
>
> 肖先霞
>
>
>
>
>
>
>
>



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: 4.4.0系统虚机销毁后无法重建

2014-09-18 文章 linux...@gmail.com
检查下NFS访问有没有问题

2014-09-17 17:52 GMT+08:00 yan_5...@163.com :
> 环境:
> 4.4.0+kvm
> 主存储和二级存储都是NFS
>
> 环境正在使用中,虚机也正常运行。尝试销毁系统虚机,销毁后系统虚机没有重建,日志中也没有明确的报错信息。求帮助指导。
>
> 2014-09-17 10:05:20,808 DEBUG [c.c.c.ConsoleProxyManagerImpl] 
> (consoleproxy-1:ctx-6234c581) Zone 1 is not ready to launch console proxy yet
> 2014-09-17 10:05:20,808 DEBUG [c.c.c.ConsoleProxyManagerImpl] 
> (consoleproxy-1:ctx-6234c581) Zone 2 is not ready to launch console proxy yet
>
>
>
> yan_5...@163.com



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: 求助,启动router失败,系统vm正常

2014-08-31 文章 linux...@gmail.com
建议通过vnc 看看vrouter的界面提示

另外建议通过xenserver登陆到vrouter上看看

记住,vrouter本质是一个linux,把他当成是一个坏掉的linux来处理就好了

2014-08-31 0:19 GMT+08:00 ason <16696...@qq.com>:
> 本来一直正常使用的,今天重启agent后发现vrouter启动不了了,提示Resource [Host:13] is unreachable: Host 
> 13: Unable to start instance due to 
> null,‍但系统vm正常启动,新建一个网络(简称网络B)后,网络B的vrouter可以正常启动。
> 报错如下:
>
>
> 2014-08-30 22:34:16,836 ERROR [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-11:job-1521) Unexpected exception while executing 
> org.apache.cloudstack.api.command.admin.router.StartRouterCmd
> com.cloud.exception.AgentUnavailableException: Resource [Host:13] is 
> unreachable: Host 13: Unable to start instance due to null
> at 
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:841)
> at 
> com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:471)
> at 
> com.cloud.network.router.VirtualNetworkApplianceManagerImpl.start(VirtualNetworkApplianceManagerImpl.java:2616)
> at 
> com.cloud.network.router.VirtualNetworkApplianceManagerImpl.startVirtualRouter(VirtualNetworkApplianceManagerImpl.java:1824)
> at 
> com.cloud.network.router.VirtualNetworkApplianceManagerImpl.startRouter(VirtualNetworkApplianceManagerImpl.java:2874)
> at 
> com.cloud.network.router.VirtualNetworkApplianceManagerImpl.startRouter(VirtualNetworkApplianceManagerImpl.java:2824)
> at 
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> at 
> org.apache.cloudstack.api.command.admin.router.StartRouterCmd.execute(StartRouterCmd.java:103)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162)
> at 
> com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:679)
> Caused by: java.lang.NullPointerException
> at 
> com.cloud.network.NetworkModelImpl.getIpInNetwork(NetworkModelImpl.java:763)
> at 
> com.cloud.network.router.VirtualNetworkApplianceManagerImpl.finalizeNetworkRulesForNetwork(VirtualNetworkApplianceManagerImpl.java:2346)
> at 
> com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl.finalizeNetworkRulesForNetwork(VpcVirtualNetworkApplianceManagerImpl.java:928)
> at 
> com.cloud.network.router.VirtualNetworkApplianceManagerImpl.finalizeCommandsOnStart(VirtualNetworkApplianceManagerImpl.java:2241)
> at 
> com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl.finalizeCommandsOnStart(VpcVirtualNetworkApplianceManagerImpl.java:767)
> at 
> com.cloud.network.router.VirtualNetworkApplianceManagerImpl.finalizeDeployment(VirtualNetworkApplianceManagerImpl.java:2205)
>     at 
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:763)
> ... 19 more
> ‍



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: 答复: 虚拟路由磁盘写满导致不工作

2014-08-28 文章 linux...@gmail.com
--
> ---
> Confidentiality Notice: The information contained in this e-mail and any 
> accompanying attachment(s)
> is intended only for the use of the intended recipient and may be 
> confidential and/or privileged of
> Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of 
> this communication is
> not the intended recipient, unauthorized use, forwarding, printing,  storing, 
> disclosure or copying
> is strictly prohibited, and may be unlawful.If you have received this 
> communication in error,please
> immediately notify the sender by return e-mail, and delete the original 
> message and all copies from
> your system. Thank you.
> ---



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: 虚拟机上传模板问题

2014-08-28 文章 linux...@gmail.com
你的xp的摸板的版本是否和上传的时候选的版本一致?

2014-08-28 11:38 GMT+08:00 张仕博 :
> 新上传的模板创建虚拟机时候报错如下
>
> 2014-08-28 23:06:01,468 INFO  [c.c.v.VirtualMachineManagerImpl]
> (Job-Executor-23:ctx-85baed4a ctx-cbfc652b) Unable to contact resource.
>
> com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is
> unreachable: Unable to create Vol[16|vm=12|ROOT]:Unable to copy template to
> primary storage due to exception:Exception: java.io.FileNotFoundException
>
> Message:
> /mnt/SecStorage/9a44c271-50e6-3112-a0a4-dbe0d55469d0/template/tmpl/2/206/xp-
> disk1.vmdk (No such file or directory)
>
>
>
>  at
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume
> (VolumeOrchestrator.java:1202)
>
>  at
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(Volume
> Orchestrator.java:1254)
>
>  at
> com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManage
> rImpl.java:962)
>
>  at
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImp
> l.java:761)
>
>  at
> com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:
> 601)
>
>  at
> org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.deployVirt
> ualMachine(VMEntityManagerImpl.java:228)
>
>  at
> org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.deplo
> y(VirtualMachineEntityImpl.java:207)
>
>  at
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:35
> 81)
>
>  at
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:31
> 61)
>
>  at
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:31
> 47)
>
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
> )
>
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:43)
>
>  at java.lang.reflect.Method.invoke(Method.java:616)
>
>
>
> 经查发现二级存储上模板文件后面带了一连串的0,名称如下
>
> xp-disk1.vmdk.0
>
>
>
> 有人知道这事怎么回事么?
>
>
>
> 该问题只发生在测试xp模板上,其他模板都正常,不带这些
>
>
>
> ---
> Confidentiality Notice: The information contained in this e-mail and any 
> accompanying attachment(s)
> is intended only for the use of the intended recipient and may be 
> confidential and/or privileged of
> Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of 
> this communication is
> not the intended recipient, unauthorized use, forwarding, printing,  storing, 
> disclosure or copying
> is strictly prohibited, and may be unlawful.If you have received this 
> communication in error,please
> immediately notify the sender by return e-mail, and delete the original 
> message and all copies from
> your system. Thank you.
> ---



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: Re: 客户端报错

2014-08-21 文章 linux...@gmail.com
建议提供下你的问题的背景信息以及相应的软件的背景信息

只有一段日志,看不出什么问题来

2014-08-21 15:33 GMT+08:00 ns500 :
> 看不懂这个错误是什么意思,怎么解决。
>
>
> 2014-08-21
>
>
>
> ns500
>
>
>
> 发件人: linux...@gmail.com
> 发送时间: 2014-08-21  15:17:30
> 收件人: users-cn
> 抄送:
> 主题: Re: 客户端报错
>
>  你发的这个是想要说明什么?
> 2014-08-21 14:19 GMT+08:00 ns500 :
>> 014-08-21 12:02:10,981 WARN  [cloud.agent.Agent] 
>> (agentRequest-Handler-4:null) Caught:
>> java.lang.NullPointerException
>> at 
>> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.execute(LibvirtComputingResource.java:2469)
>> at 
>> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1230)
>> at com.cloud.agent.Agent.processRequest(Agent.java:525)
>> at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:852)
>> at com.cloud.utils.nio.Task.run(Task.java:83)
>> at 
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at 
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:744)
>>
>> 2014-08-21
>>
>>
>>
>> ns500
> --
> 白清杰 (Born Bai)
> Mail: linux...@gmail.com



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: 客户端报错

2014-08-21 文章 linux...@gmail.com
 你发的这个是想要说明什么?

2014-08-21 14:19 GMT+08:00 ns500 :
> 014-08-21 12:02:10,981 WARN  [cloud.agent.Agent] 
> (agentRequest-Handler-4:null) Caught:
> java.lang.NullPointerException
> at 
> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.execute(LibvirtComputingResource.java:2469)
> at 
> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1230)
> at com.cloud.agent.Agent.processRequest(Agent.java:525)
> at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:852)
> at com.cloud.utils.nio.Task.run(Task.java:83)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
>
> 2014-08-21
>
>
>
> ns500



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: 添加Host失败,Xenserver6.0.2,CloudStack4.2.0

2014-08-04 文章 linux...@gmail.com
xenserver  不需要agent
建议你参考官方的xenserver的配置文档,检查下你的配置
应该有地方配置有问题

2014-08-05 10:36 GMT+08:00 ZS Che :
> 我刚才测试了一下。可以从管理节点ssh到计算节点,同时计算节点也能ssh到管理节点。
>
> 我在CloudStack
> UI上添加Host的时候,虽然页面里面报AgentDisconnected的错误,但是基础架构里面却多了一个Host,但是它的状态是Alert。日志内容已经在上一次的回复中贴出来了。
>
> 请问这是为什么呢?Xenserver应该不需要Agent吧?谢谢。
>
>
> On Mon, Aug 4, 2014 at 4:25 PM, linux...@gmail.com 
> wrote:
>
>> 测试下通过管理节点能否ssh登陆计算节点
>>
>> 如果不通,是你的网络配置有问题
>>
>> 2014-08-01 19:51 GMT+08:00 ZS Che :
>> >
>> 十分感谢您的回复。我今天上午发现是我的hostname出现了问题。一个带域名,一个没有带域名,导致无法添加。交换机方面之前就采用trunk模式,vlan也都通过了。
>> >
>> > 但是,这个问题解决之后仍然无法添加Host,web页面显示
>> > Cannot transit agent status with event AgentDisconnected for host 6,
>> > management server id is 207458817951964, Unable to transition to a new
>> > state from Creating via AgentDisconnected
>> >
>> >
>> > log文件如下:
>> > 
>> > 2014-08-01 19:31:32,080 INFO  [xen.resource.CitrixResourceBase]
>> > (DirectAgent-238:null) Host 192.168.1.5
>> > OpaqueRef:e289ee27-9ec3-83f4-551e-ff8b64386b52: Host 192.168.1.5 is
>> already
>> > setup.
>> > 2014-08-01 19:31:32,544 DEBUG [agent.manager.DirectAgentAttache]
>> > (DirectAgent-238:null) Seq 6-105775105: Response Received:
>> > 2014-08-01 19:31:32,544 DEBUG [agent.transport.Request]
>> > (DirectAgent-238:null) Seq 6-105775105: Processing:  { Ans: , MgmtId:
>> > 207458817951964, via: 6, Ver: v1, Flags: 110,
>> >
>> [{"com.cloud.agent.api.SetupAnswer":{"_reconnect":false,"result":true,"wait":0}}]
>> > }
>> > 2014-08-01 19:31:32,549 DEBUG [agent.manager.AgentAttache]
>> > (DirectAgent-238:null) Seq 6-105775105: No more commands found
>> > 2014-08-01 19:31:32,549 DEBUG [agent.transport.Request]
>> > (AgentTaskPool-10:null) Seq 6-105775105: Received:  { Ans: , MgmtId:
>> > 207458817951964, via: 6, Ver: v1, Flags: 110, { SetupAnswer } }
>> > 2014-08-01 19:31:32,580 DEBUG [agent.manager.AgentManagerImpl]
>> > (AgentTaskPool-10:null) Sending Connect to listener:
>> > DeploymentPlanningManagerImpl_EnhancerByCloudStack_fc446a4a
>> > 2014-08-01 19:31:32,581 DEBUG [agent.manager.AgentManagerImpl]
>> > (AgentTaskPool-10:null) Sending Connect to listener:
>> > NetworkManagerImpl_EnhancerByCloudStack_dd57bdd
>> > 2014-08-01 19:31:32,583 DEBUG [cloud.network.NetworkManagerImpl]
>> > (AgentTaskPool-10:null) Host's hypervisorType is: XenServer
>> > 2014-08-01 19:31:32,594 DEBUG [cloud.network.NetworkManagerImpl]
>> > (AgentTaskPool-10:null) Sending CheckNetworkCommand to check the Network
>> is
>> > setup correctly on Agent
>> > 2014-08-01 19:31:32,598 DEBUG [agent.transport.Request]
>> > (AgentTaskPool-10:null) Seq 6-105775106: Sending  { Cmd , MgmtId:
>> > 207458817951964, via: 6, Ver: v1, Flags: 100111,
>> >
>> [{"com.cloud.agent.api.CheckNetworkCommand":{"networkInfoList":[{"physicalNetworkId":205,"privateNetworkName":"cmfg2
>> > manage"},{"physicalNetworkId":206,"publicNetworkName":"cmfg2
>> > public","guestNetworkName":"cmfg2 guest"}],"wait":0}}] }
>> > 2014-08-01 19:31:32,598 DEBUG [agent.transport.Request]
>> > (AgentTaskPool-10:null) Seq 6-105775106: Executing:  { Cmd , MgmtId:
>> > 207458817951964, via: 6, Ver: v1, Flags: 100111,
>> >
>> [{"com.cloud.agent.api.CheckNetworkCommand":{"networkInfoList":[{"physicalNetworkId":205,"privateNetworkName":"cmfg2
>> > manage"},{"physicalNetworkId":206,"publicNetworkName":"cmfg2
>> > public","guestNetworkName":"cmfg2 guest"}],"wait":0}}] }
>> > 2014-08-01 19:31:32,598 DEBUG [agent.manager.DirectAgentAttache]
>> > (DirectAgent-321:null) Seq 6-105775106: Executing request
>> > 2014-08-01 19:31:32,599 DEBUG [xen.resource.CitrixResourceBase]
>> > (DirectAgent-321:null) Checking if network name setup is done on the
>> > resource
>> > 2014-08-01 19:31:32,603 DEBUG [xen.resource.CitrixResourceBase]
>> > (DirectAgent-321:null) Looking for network setup by name cmfg2 manage
>> > 2014-08-01 19:31:32,694 ERROR [xen.resource.CitrixResourceBase]
>> > (DirectAgent-321:null) For Physical Network id:205, Private Network is
>> not
>> > configured on the backend by name cmfg2 manage
>> > 2014-08-01 19:31:32,694 DEBUG [agent.manager.DirectAgentAtta

Re: 添加Host失败,Xenserver6.0.2,CloudStack4.2.0

2014-08-04 文章 linux...@gmail.com
> 2014-08-01 19:31:32,734 DEBUG [agent.manager.AgentManagerImpl]
> (AgentTaskPool-10:null) Sending Disconnect to listener:
> com.cloud.agent.manager.AgentMonitor
> 2014-08-01 19:31:32,734 DEBUG [agent.manager.AgentManagerImpl]
> (AgentTaskPool-10:null) Sending Disconnect to listener:
> com.cloud.capacity.StorageCapacityListener
> 2014-08-01 19:31:32,734 DEBUG [agent.manager.AgentManagerImpl]
> (AgentTaskPool-10:null) Sending Disconnect to listener:
> com.cloud.capacity.ComputeCapacityListener
> 2014-08-01 19:31:32,734 DEBUG [agent.manager.AgentManagerImpl]
> (AgentTaskPool-10:null) Sending Disconnect to listener:
> com.cloud.network.NetworkUsageManagerImpl$DirectNetworkStatsListener
> 2014-08-01 19:31:32,734 DEBUG [cloud.network.NetworkUsageManagerImpl]
> (AgentTaskPool-10:null) Disconnected called on 6 with status Alert
> 2014-08-01 19:31:32,734 DEBUG [agent.manager.AgentManagerImpl]
> (AgentTaskPool-10:null) Sending Disconnect to listener:
> com.cloud.consoleproxy.ConsoleProxyListener
> 2014-08-01 19:31:32,735 DEBUG [cloud.host.Status] (AgentTaskPool-10:null)
> Transition:[Resource state = Enabled, Agent event = AgentDisconnected, Host
> id = 6, name = xen5]
> 2014-08-01 19:31:32,797 DEBUG [cloud.host.Status] (AgentTaskPool-10:null)
> Agent status update: [id = 6; name = xen5; old status = Connecting; event =
> AgentDisconnected; new status = Alert; old update count = 3; new update
> count = 4]
> 2014-08-01 19:31:32,797 DEBUG [agent.manager.ClusteredAgentManagerImpl]
> (AgentTaskPool-10:null) Notifying other nodes of to disconnect
> 2014-08-01 19:31:32,798 WARN  [cloud.resource.ResourceManagerImpl]
> (AgentTaskPool-10:null) Unable to connect due to
> com.cloud.exception.ConnectionException: Incorrect Network setup on agent,
> Reinitialize agent after network names are setup, details : For Physical
> Network id:205, Private Network is not configured on the backend by name
> cmfg2 manage
> at
> com.cloud.network.NetworkManagerImpl.processConnect(NetworkManagerImpl.java:4324)
> at
> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
> at
> com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentManagerImpl.java:1479)
> at
> com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManagerImpl.java:1762)
> at
> com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManagerImpl.java:1924)
> at
> com.cloud.agent.manager.AgentManagerImpl$SimulateStartTask.run(AgentManagerImpl.java:1130)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> at java.lang.Thread.run(Thread.java:679)
> 2014-08-01 19:31:32,799 DEBUG [cloud.host.Status] (AgentTaskPool-10:null)
> Transition:[Resource state = Enabled, Agent event = AgentDisconnected, Host
> id = 6, name = xen5]
> 2014-08-01 19:31:32,855 DEBUG [cloud.host.Status] (AgentTaskPool-10:null)
> Agent status update: [id = 6; name = xen5; old status = Alert; event =
> AgentDisconnected; new status = Alert; old update count = 4; new update
> count = 5]
>
>
> ##
> 这个计算节点原来被添加到CloudStack中过,因为从基本资源域改成高级资源域,现在重新装了一遍Xenserver,管理节点也重新装了一遍。然后这次添加的时候就出现了问题。请问这是为什么呢?谢谢!
>
>
> On Fri, Aug 1, 2014 at 5:10 PM, linux...@gmail.com 
> wrote:
>
>> 计算节点 第二块网卡不要配置IP地址
>>
>> 上联的交换机端口设置为trunk模式,设置192.168.0.0/24所在的vlan为默认vlan,允许所有vlan通过
>>
>> 应该就可以了
>>
>>
>>
>> 2014-07-31 21:14 GMT+08:00 ZS Che :
>> > 请教各位大牛一个比较基本的问题。
>> > 我在高级资源域中,添加Xenserver类型的Host时失败,management-server.log中的信息如下:
>> >
>> > #
>> > 2014-07-31 19:34:13,492 INFO  [cloud.resource.ResourceManagerImpl]
>> > (catalina-exec-10:null) Trying to add a new host at http://192.168.1.5
>> in
>> > data center 1
>> > 2014-07-31 19:34:13,496 DEBUG [xen.resource.XenServerConnectionPool]
>> > (catalina-exec-10:null) Failed to slave local login to 192.168.1.5 due to
>> > org.apache.xmlrpc.XmlRpcException: Failed to read server's response:
>> > Connection refused
>> > 2014-07-31 19:34:13,497 DEBUG [xen.resource.XenServerConnectionPool]
>> > (catalina-exec-10:null) localLogout has problem Failed to read server's
>> > response: Connection refused
>> > 2014-07-31 19:34:13,497 DEBUG [xen.discoverer.XcpServerDiscoverer]
>> > (catalina-exec-10:null) other exceptions: java.lang.RuntimeException: can
>> > not get master ip
>> > java.lang.RuntimeException: can not get master ip
>> > at
>> &

Re: 添加Host失败,Xenserver6.0.2,CloudStack4.2.0

2014-08-01 文章 linux...@gmail.com
a.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> at
> org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
> at
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> at java.lang.Thread.run(Thread.java:679)
> 2014-07-31 19:34:13,498 INFO  [cloud.api.ApiServer] (catalina-exec-10:null)
> Unable to add the host
> 2014-07-31 19:34:13,499 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-10:null) ===END===  192.168.1.9 -- POST
> command=addHost&response=json&sessionkey=%2BAnP9zizYKhX2m3Acpw6jXFaDZ8%3D
>
> ###
> 网络环境:
> 测试环境,只有2台服务器,通过H3C S5120,接入到工作网络中
> 管理网络:192.168.1.0/24
> 公共网络:192.168.0.0/24
> 客户网络:10.1.1.0/24
>
> 其中,管理节点和存储节点
> CloudStack 4.2.0
> eth0: ip: 192.168.1.4
> Xenserver 6.0.2
> eth0: ip: 192.168.1.5
> eth1: ip: 192.168.0.5
>
> 
> nfs已经启动,iptables、selinux已经停止,系统虚拟机模板也已经安了。
> 请问该如何解决?谢谢!



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: Console Proxy VM 无法与外界通信

2014-07-29 文章 linux...@gmail.com
你试试cpvm的public IP是不是通的?

在 2014年7月29日 下午11:54,div8cn  写道:
> 环境如下
>
> Windows 7 下装了 VMware Workstation 10,在这个下虚拟了二个系统,网络采用桥接模式
> 一个装KVM,IP地址10.10.10.3
> 一个装Cloudstack-management 10.10.10.2
>
> 现在配置完成后,二个系统虚拟机(Secondary Storage VM、Console Proxy VM )都已经正常启动,agent state 
> 状态为空。
>
> Secondary Storage VM 来宾IP 10.10.10.11
>
> Console Proxy VM  来宾IP 10.10.10.10
>
> 网络现象如下:
>
> windows系统(装Workstation的系统)下能PING KVM、Cloudstack、Secondary Storage 
> VM来宾IP、无法PING Console Proxy VM 来宾IP
> Cloudstack下,能ping KVM、windows主机、无法PING Secondary Storage VM来宾IP、无法PING 
> Console Proxy VM 来宾IP
>
> KVM下,能PING 所有 IP(WINDOWS、Cloudstack、Secondary Storage VM、Console Proxy VM )。
>
> 请问这个应该如何解决
>
>
>
> div8cn



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: 初始化cloudstack后NFS无法挂上的问题

2014-07-29 文章 linux...@gmail.com
需要清除之前xenserver上的sr信息
你搜索下谭运华的博客,有介绍


在 2014年7月28日 下午4:42,7d...@163.com <7d...@163.com> 写道:
> 重装了cloudtack后  重新添加老的XENserver主机,之前的主存储无法挂载了  
> 我把主存储重新换个文件名primary换成primary2就可以,是不是要在XEN上做的什么操作,XEN上是记录了什么导致无法挂载 另ZONE前 
> XEN我已经umount了重装前的的NFS
>
>
>
>
> 7d...@163.com



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: 答复: 数据库初始化使用问题

2014-07-28 文章 linux...@gmail.com
建议回复一个解决办法,以后其他人也可以参考

2014-07-25 8:53 GMT+08:00 张仕博 :
> Thanks,搞定了
>
>
> -邮件原件-
> 发件人: wanghaicheng2...@gmail.com [mailto:wanghaicheng2...@gmail.com]
> 发送时间: 2014年7月24日 20:47
> 收件人: users-cn
> 主题: 回复: 数据库初始化使用问题
>
> cloudstack-setup-databases  初始化命令有一个“-i”的参数,可以指定管理服务器
> 的IP地址
>
>
>
>
> wanghaicheng2...@gmail.com
>
> 发件人: 张仕博
> 发送时间: 2014-07-24 17:45
> 收件人: users-cn@cloudstack.apache.org
> 主题: 数据库初始化使用问题
> 我这为什么执行cloudstack-setup-databases cloud:@10.4.41.242
> --deploy-as=root:
>
> 总是会打出如下日志Detected local IP address as 10.4.41.100, will use as
> cluster management server node IP[ OK ]
>
> 然后db.properties中就绑定了管理节点本机ip呢?
>
>
>   _
>
> 张仕博
>
> 基础软件事业部
>
> 东软集团股份有限公司
>
> 大连市甘井子区黄浦路901号D1座219室
>
>
> Postcode:116085
>
>  Tel:(86 411) 8446 6538
>
> Email: <mailto:zhang...@neusoft.com> zhang...@neusoft.com
>
>
> 
> ---
> Confidentiality Notice: The information contained in this e-mail and any
> accompanying attachment(s) is intended only for the use of the intended
> recipient and may be confidential and/or privileged of Neusoft Corporation,
> its subsidiaries and/or its affiliates. If any reader of this communication
> is not the intended recipient, unauthorized use, forwarding, printing,
> storing, disclosure or copying is strictly prohibited, and may be
> unlawful.If you have received this communication in error,please immediately
> notify the sender by return e-mail, and delete the original message and all
> copies from your system. Thank you.
> 
> ---
>
> ---
> Confidentiality Notice: The information contained in this e-mail and any 
> accompanying attachment(s)
> is intended only for the use of the intended recipient and may be 
> confidential and/or privileged of
> Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of 
> this communication is
> not the intended recipient, unauthorized use, forwarding, printing,  storing, 
> disclosure or copying
> is strictly prohibited, and may be unlawful.If you have received this 
> communication in error,please
> immediately notify the sender by return e-mail, and delete the original 
> message and all copies from
> your system. Thank you.
> ---



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: 使用cloudstack部署中遇到的问题

2014-07-28 文章 linux...@gmail.com
Vcenter是要加入域环境的

如果是KVM,可以直接在KVM上部署agent,然后添加到cloudstack中

在 2014年7月28日 下午2:25,13662097...@163.com <13662097...@163.com> 写道:
>
> 您好,
>  最近部署cloudstack的项目,虚拟化环境使用的是vmware的,我想咨询一下  一定要将vcenter加入到域环境中吗?
>
>  还有如果虚拟化环境使用kvm的话,关于kvm集群怎么搭建  (cloudstack管理kvm集群)
>
> 谢谢!
>
>
> 13662097...@163.com



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: 谁遇到过?cloustack4.3+xenserver6.0.2 下载卷时页面突然关闭导致无法删除实例

2014-07-22 文章 linux...@gmail.com
这个需要查日志,建议提供详细的日志信息

在 2014年7月22日 上午10:41,宋冠男  写道:
> 如题,在点击下载一个实例的存储卷之后,生成下载链接之前页面意外关闭,导致实例无法删除。实例状态一直是expunging
>  点击清除实例提示Failed to transit volume: 130, due to: 
> com.cloud.utils.fsm.NoTransitionException: Unable to transition to a new 
> state from Migrating via DestroyRequested
>  存储的地方什么按钮都没有



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com

敬畏耶和华是智慧的开端


Re: 为什么我的双网卡绑定,总是一个网卡有流量呢。

2014-07-20 文章 linux...@gmail.com
mode=0:平衡负载模式,有自动备援,但需要”Switch”支援及设定。

http://support.huawei.com/ecommunity/bbs/1013.html

2014-07-18 13:39 GMT+08:00 虚无缥缈 <83675...@qq.com>:
> A、B两台设备,都是双网卡绑定,mode=0,交换机上也做了端口组,交换机是cisco 
> 2960,A上起了nfs,B上挂载nfs,然后进行dd测试,cacti上看总是一个端口流量,手动down掉一个网卡,另外一个网卡才有流量。
>
> A:
> [root@backup ~]# cat /proc/net/bonding/bond0
> Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)
>
>
> Bonding Mode: load balancing (round-robin)
> MII Status: up
> MII Polling Interval (ms): 100
> Up Delay (ms): 0
> Down Delay (ms): 0
>
>
> Slave Interface: em1
> MII Status: up
> Speed: 1000 Mbps
> Duplex: full
> Link Failure Count: 1
> Permanent HW addr:
> Slave queue ID: 0
>
>
> Slave Interface: em2
> MII Status: up
> Speed: 1000 Mbps
> Duplex: full
> Link Failure Count: 0
> Permanent HW addr:‍
>
>
>
> B:
> root@storage-xen bak_201]# cat /proc/net/bonding/bond0
> Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)
>
>
> Bonding Mode: load balancing (round-robin)
> MII Status: up
> MII Polling Interval (ms): 100
> Up Delay (ms): 0
> Down Delay (ms): 0
>
>
> Slave Interface: em1
> MII Status: up
> Speed: 1000 Mbps
> Duplex: full
> Link Failure Count: 0
> Permanent HW addr:
> Slave queue ID: 0
>
>
> Slave Interface: em2
> MII Status: up
> Speed: 1000 Mbps
> Duplex: full
> Link Failure Count: 0
> Permanent HW addr:
> Slave queue ID: 0‍
>
>
>
> 交换机:
> interface Port-channel1
>  switchport access vlan 150
>  switchport mode access‍
>
>
>
> interface GigabitEthernet0/3
>  switchport access vlan 150
>  switchport mode access
>  channel-group 1 mode on
>  spanning-tree portfast
> !‍
>
> interface GigabitEthernet0/10
>  switchport access vlan 150
>  switchport mode access
>  channel-group 1 mode on
>  spanning-tree portfast‍



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com

敬畏耶和华是智慧的开端


Re: 添加虚拟主机失败

2014-07-20 文章 linux...@gmail.com
日志比较少
可以再增加一些日志内容吗?

2014-07-18 14:32 GMT+08:00 18337171...@163.com <18337171...@163.com>:
> 各位,今天在cs后台添加主机失败
> 具体日志如下:
> 内存使用率27%,cpu使用率50%,要创建一个2G内存,2核心的cpu,从日志看应该内存和cpu是足够的,我看二级存储也是正常的,请教下这个是什么问题。
>
> 2014-07-18 14:19:45,968 DEBUG [cloud.capacity.CapacityManagerImpl] 
> (Job-Executor-10:job-2119 = [ afcde3f0-cd36-4809-b379-9bd6861669f9 ] 
> FirstFitRoutingAllocator) Hosts's actual total CPU: 48000 and CPU after 
> applying overprovisioning: 96000
> 2014-07-18 14:19:45,968 DEBUG [cloud.capacity.CapacityManagerImpl] 
> (Job-Executor-10:job-2119 = [ afcde3f0-cd36-4809-b379-9bd6861669f9 ] 
> FirstFitRoutingAllocator) Free CPU: 47000 , Requested CPU: 2000
> 2014-07-18 14:19:45,968 DEBUG [cloud.capacity.CapacityManagerImpl] 
> (Job-Executor-10:job-2119 = [ afcde3f0-cd36-4809-b379-9bd6861669f9 ] 
> FirstFitRoutingAllocator) Free RAM: 101071503360 , Requested RAM: 2147483648
> 2014-07-18 14:19:45,968 DEBUG [cloud.capacity.CapacityManagerImpl] 
> (Job-Executor-10:job-2119 = [ afcde3f0-cd36-4809-b379-9bd6861669f9 ] 
> FirstFitRoutingAllocator) Host has enough CPU and RAM available
> 2014-07-18 14:19:45,968 DEBUG [cloud.capacity.CapacityManagerImpl] 
> (Job-Executor-10:job-2119 = [ afcde3f0-cd36-4809-b379-9bd6861669f9 ] 
> FirstFitRoutingAllocator) STATS: Can alloc CPU from host: 1, used: 49000, 
> reserved: 0, actual total: 48000, total with overprovisioning: 96000; 
> requested cpu:2000,alloc_from_last_host?:false ,considerReservedCapacity?: 
> true
> 2014-07-18 14:19:45,968 DEBUG [cloud.capacity.CapacityManagerImpl] 
> (Job-Executor-10:job-2119 = [ afcde3f0-cd36-4809-b379-9bd6861669f9 ] 
> FirstFitRoutingAllocator) STATS: Can alloc MEM from host: 1, used: 
> 34225520640, reserved: 0, total: 135297024000; requested mem: 
> 2147483648,alloc_from_last_host?:false ,considerReservedCapacity?: true
> 2014-07-18 14:19:45,968 DEBUG [allocator.impl.FirstFitAllocator] 
> (Job-Executor-10:job-2119 = [ afcde3f0-cd36-4809-b379-9bd6861669f9 ] 
> FirstFitRoutingAllocator) Found a suitable host, adding to list: 1



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com

敬畏耶和华是智慧的开端


Re: 高级网络中添加实例失败

2014-07-20 文章 linux...@gmail.com
gframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
> at 
> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
> at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at 
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
> at $Proxy169.startVirtualMachine(Unknown Source)
> at 
> org.apache.cloudstack.api.command.user.vm.DeployVMCmd.execute(DeployVMCmd.java:443)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161)
> at 
> com.cloud.api.ApiAsyncJobDispatcher.runJobInContext(ApiAsyncJobDispatcher.java:109)
> at 
> com.cloud.api.ApiAsyncJobDispatcher$1.run(ApiAsyncJobDispatcher.java:66)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> at 
> com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:63)
> at 
> org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:509)
> at 
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> at 
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> at java.lang.Thread.run(Thread.java:679)
> Caused by: com.cloud.exception.InsufficientServerCapacityException: Unable to 
> create a deployment for 
> VM[User|VM-dea831d5-8900-4fa6-9d5d-76c34200e419]Scope=interface 
> com.cloud.dc.DataCenter; id=2
> at 
> com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:921)
> at 
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:761)
> at 
> com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:601)
> ... 38 more
> 2014-07-17 13:48:33,224 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
> (Job-Executor-3:ctx-2bb706f5) Complete async job-521, jobStatus: FAILED, 
> resultCode: 530, result: 
> org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530,"errortext":"Unable
>  to start a VM due to insufficient capacity"}
> 2014-07-17 13:48:33,233 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
> (Job-Executor-3:ctx-2bb706f5) Done executing 
> org.apache.cloudstack.api.command.user.vm.DeployVMCmd for job-521
> 2014-07-17 13:48:33,240 INFO  [o.a.c.f.j.i.AsyncJobMonitor] 
> (Job-Executor-3:ctx-2bb706f5) Remove job-521 from job monitoring
> 2014-07-17 13:48:35,395 DEBUG [c.c.a.ApiServlet] 
> (catalina-exec-16:ctx-da2a98b4) ===START===  10.3.5.100 -- GET  
> command=queryAsyncJobResult&jobId=1fdac045-9a97-4ddb-b0fa-f35856e4de45&response=json&sessionkey=kkrpuv17dJaSZoi86D1Ygsat17g%3D&_=1405580438994
> 2014-07-17 13:48:35,424 DEBUG [c.c.a.ApiServlet] 
> (catalina-exec-16:ctx-da2a98b4 ctx-1481a230) ===END===  10.3.5.100 -- GET  
> command=queryAsyncJobResult&jobId=1fdac045-9a97-4ddb-b0fa-f35856e4de45&response=json&sessionkey=kkrpuv17dJaSZoi86D1Ygsat17g%3D&_=1405580438994
> 2014-07-17 13:48:35,441 DEBUG [c.c.a.ApiServlet] 
> (catalina-exec-13:ctx-54f77668) ===START===  10.3.5.100 -- GET  
> command=listVirtualMachines&id=dea831d5-8900-4fa6-9d5d-76c34200e419&response=json&sessionkey=kkrpuv17dJaSZoi86D1Ygsat17g%3D&_=1405580439035
> 2014-07-17 13:48:35,477 DEBUG [c.c.a.ApiServlet] 
> (catalina-exec-13:ctx-54f77668 ctx-581ba127) ===END===  10.3.5.100 -- GET  
> command=listVirtualMachines&id=dea831d5-8900-4fa6-9d5d-76c34200e419&response=json&sessionkey=kkrpuv17dJaSZoi86D1Ygsat17g%3D&_=1405580439035
> ^C
> [root@manage ~]#
>
>
>
>
>
> 李红岩
> 网络安全事业部
> 东软集团股份有限公司
> 沈阳市浑南新区新秀街2号 东软软件园 A2楼 417室
> Postcode: 110179
> Tel: 024-836 60118
> E-mail: hongyan...@neusoft.com
> ---
> Confidentiality Notice: The information contained in this e-mail and any 
> accompanying attachment(s)
> is intended only for the use of the intended recipient and may be 
> confidential and/or privileged of
> Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of 
> this communication is
> not the intended recipient, unauthorized use, forwarding, printing,  storing, 
> disclosure or copying
> is strictly prohibited, and may be unlawful.If you have received this 
> communication in error,please
> immediately notify the sender by return e-mail, and delete the original 
> message and all copies from
> your system. Thank you.
> ---



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com

敬畏耶和华是智慧的开端


Builds and runs a CloudStack Management Server stack under Docker.

2014-07-14 文章 linux...@gmail.com
https://github.com/fifthecho/docker-cloudstack

Apache CloudStack in Docker

HOWTO:

git clone the file to your computer
git clone https://github.com/fifthecho/docker-cloudstack.git

Set up Ansible [http://docs.ansible.com/intro_installation.html]

Execute ./build-and-run.sh

The first Playbook (build-docker-container.yml) is executed to create
the Dockerfile and builds the container. This playbook also ensures
that NFS is installed and creates /opt/storage/primary,
/opt/storage/secondary adds them to /etc/exports, restarts the NFS
server. Once all that is done, the playbook starts the container with
Secondary Storage mounted.

The second Playbook (configure-environment.yml) is executed to set
everything up on your host and create an Ansible host inventory for
the Docker container

The third Playbook (setup-cloudstack.yml) does the "heavy lifting" of
getting ACS management up and running. This includes setting up the
ACS database, starting ACS, and installing the system vm templates for
KVM and XenServer.

Access the CloudStack management interface via http://localhost:8080/client

Cloud!

Additonal work is forthcoming to provide a HTTP server to proxy
traffic to prevent the ugly jetty errors you get if you hit
http://localhost:8080/

The supervisord web interface is exposed on port 9001 from the
container (local port can be fetched by running "docker port
cloudstack 9001") for viewing CloudStack logs. I may move to Circus
from Supervisord to provide the ACS logs in the "docker logs" output.
Username and password are both "cloudstack"

Additionally, this is raw, OSS Apache CloudStack built from source and
not a noredist build (like the RPMs/DEBs), so it won't work with
things like VMware, Netscaler, etc., but I may fix that too.

Pull requests are very welcome.


-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com

敬畏耶和华是智慧的开端


Using CloudStack 4.3 With Microsoft Active Directory

2014-07-14 文章 linux...@gmail.com
http://shapeblue.com/cloudstack/using-cloudstack-4-3-with-microsoft-active-directory/



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com

敬畏耶和华是智慧的开端


How to Upgrade System VM Template Without Upgrading Management Server

2014-07-14 文章 linux...@gmail.com
): Cloudstack Release 4.2.0 Mon Jun
23 15:02:41 UTC 2014
c.4.2
HypervisorDescription
KVM
Name: systemvm-kvm-4.2-b

Description: systemvm-kvm-4.2-b

URL: 
http://download.cloud.com/templates/4.2/systemvmtemplate-2014-06-17-master-kvm.qcow2.bz2

Zone: Choose the zone where this hypervisor is used

Hypervisor: KVM

Format: QCOW2

OS Type: Debian GNU/Linux 7.0 (32-bit) (or the highest Debian release
number available in the dropdown)

Extractable: no

Password Enabled: no

Public: no

Featured: no

Cloudstack-release version: Cloudstack Release 4.2.0 Mon Jun 23
15:02:41 UTC 2014

VMware
Name: systemvm-vmware-4.2-b

Description: systemvm-vmware-4.2-b

URL: 
http://download.cloud.com/templates/4.2/systemvmtemplate-2014-06-17-master-vmware.ova

Zone: Choose the zone where this hypervisor is used

Hypervisor: VMware

Format: OVA

OS Type: Debian GNU/Linux 7.0 (32-bit) (or the highest Debian release
number available in the dropdown)

Extractable: no

Password Enabled: no

Public: no

Featured: no

Cloudstack-release version: Cloudstack Release 4.2.0 Mon Jun 23
15:02:41 UTC 2014

XenServer
Name: systemvm-xenserver-4.2-b

Description: systemvm-xenserver-4.2-b

URL: 
http://download.cloud.com/templates/4.2/systemvmtemplate-2014-06-17-master-xen.vhd.bz2

Zone: Choose the zone where this hypervisor is used

Hypervisor: XenServer

Format: VHD

OS Type: Debian GNU/Linux 7.0 (32-bit) (or the highest Debian release
number available in the dropdown)

Extractable: no

Password Enabled: no

Public: no

Featured: no

Cloudstack-release version: Cloudstack Release 4.2.0 Mon Jun 23
15:02:41 UTC 2014

Wait until the Template is downloaded and is in Ready state

8. Stop all Management servers

9. Take a backup of database.

10. Execute the attached python script on MS to update DB entries.
Based on the version select the appropriate script:

a. 4.3 : python sys-tmpl-upgrade-4.3-b.py   -i   < db host name/ip >
 -u < db user name >   -p  < db password >

b. 4.2.1 : python sys-tmpl-upgrade-4.2.1-b.py   -i   < db host name/ip
>-u < db user name >   -p  < db password >

c. 4.2 : python sys-tmpl-upgrade-4.2-b.py   -i   < db host name/ip >
 -u < db user name >   -p  < db password >

Note: The Python scripts mentioned are available in the attached file.


11. Start Management server.

12. In the CloudPlatform UI, stop and start all the SSVM (except one
exception **).

OR

Use cloudstack-sysvmadm script to stop and start SSVM (except one exception **)
-s : SSVM, CPVM   < Note this option also restarts CPVM>

Note: "cloudstack-sysvmadm –h” will show the help text”.

**For Version 4.2 (VMware only): Log into the CloudPlatform UI.
Destroy the Secondary Storage VM (SSVM).

13. Verification of templates after the SSVM has been restarted.

a. Login into system VM. The method to log in is described in the
admin guide of your respective version.

b. After logging in as root user, type this command on the system VM console:

#cat  /etc/cloudstack-release

c. The output of this command will contain the Cloudstack version as
shown below for different versions.

The template version for 4.2.0 and 4.2.1 will be shown as: “Cloudstack
Release 4.2.0 “ followed by timestamp.
The template version for 4.3.0 will be shown as: “Cloudstack Release
4.3.0 “ followed by timestamp.


-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com

敬畏耶和华是智慧的开端


Using KVM as your CloudStack Hypervisor

2014-07-14 文章 linux...@gmail.com
As a service provider there are several hypervisor options to choose
from in the market. Appcore currently supports cloud architrecture
with XenServer, KVM, and VMware. Today our tech expert, John Skinner,
is going to share some insight on what you need to know when running
KVM as your hypervisor. Below are recommendation we make to our
service provider customers during implementation.

First, it is extremely important to ensure your hypervisors have the
most current patches and hotfixes applied. Appcore recommends routine
scheduled maintenance to apply patches.

For KVM integration, the cloud management server will connect to the
KVM host on port 22. Appcore must be supplied the root user and
password for the host, to be used in authentication. Please note that
the cloud management server expects the username to be root. The
username and password must be the same on all hosts within the
cluster.

The base operating system for KVM must be either Ubuntu or
CentOS/RHEL. For specific OS releases Libvirt/QEMU/KVM versions please
confirm with Appcore to ensure support with Apache CloudStack or
Citrix CloudPlatform.

Do not perform kernel upgrades without contacting Appcore first. This
is due to potential libvirt/QEMU/KVM version dependencies on the
specific kernel and an upgrade may make your host machines
incompatible with your version of Apache CloudStack/Citrix
CloudPlatform.

Do not setup automatic full package updates on the host as you may
inadvertently upgrade Libvirt/QEMU/KVM packages to unsupported
versions. Regular patching IS recommended with KVM, but
Libvirt/QEMU/KVM versions must be checked for compatibility first.

For virtual network back-ends on KVM,  Appcore supports both Linux
Bridging and Open vSwitch. We require at least one bridge on the KVM
node. Public, Guest and Management can all go on the same bridge, or
they can all be separate bridges. However, if the management network
is on a VLAN it must have its own bridge. Finally, the bridges for
each network type must be named the same on each KVM host within the
cluster.

Do not manually assign a VLAN to the guest/public bridge. The cloud
management server will handle this automatically. If you are using a
tagged management network, you must manually assign that VLAN tag to
the management network bridge.

Do not manually mount secondary storage to the KVM host. Cloud
management will handle the mounting and un-mounting of secondary
storage on KVM hosts.

For primary storage on KVM, if you are using NFS for primary storage,
do not manually mount the primary storage as cloud management will do
this for you. If you plan to use the primary storage type “shared
mount point” (anything other than NFS) on your KVM nodes, then you
must manually (or script) mount primary storage on your KVM hosts. For
shared mount points, the share must be mounted the same on each node.
It is also recommended to disable (or put in permissive) AppArmor
(Ubuntu) and SELinux (CentOS/RHEL).

Hopefully this blog post gives you some tips and tricks as you choose
a hypervisors to deploy within your cloud environment. Stayed tuned
next week we will review the requirements and offer some pointers for
XenServer.


-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com

敬畏耶和华是智慧的开端


使用Apache CloudStack and Gluster 搭建测试环境

2014-07-14 文章 linux...@gmail.com
o domain s-1-VM
Escape character is ^]

Debian GNU/Linux 7 s-1-VM ttyS0

s-1-VM login: root
Password: password
...
root@s-1-VM:~#

Log out from the shell, and press CTRL+] to disconnect from the console.

To verify that this VM indeed runs with the QEMU+libgfapi integration,
check the log file that libvirt writes and confirm that there is a
-drive with a glusterfs+tcp:// URL in
/var/log/libvirt/qemu/s-1-VM.log:


... /usr/libexec/qemu-kvm -name s-1-VM ... -drive
file=gluster+tcp://storage.cloudstack.tld:24007/primary/d691ac19-4ec1-47c1-b765-55f804b78bec,




-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com

敬畏耶和华是智慧的开端


Re: 存储还是0KB

2014-07-14 文章 linux...@gmail.com
检查日志,检查辅助存储的挂载是否正常,防火墙的端口是不是开放了

在 2014年7月11日 下午1:06,div8cn  写道:
> 请求一下  系统虚拟机,SSVM 已经正常启动了,但是我的辅助存储还是0KB,这个应该怎么查?
>
>
>
> div8cn



-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com

敬畏耶和华是智慧的开端


centos7 templates for cloudstack

2014-07-14 文章 linux...@gmail.com
http://dl.openvm.eu/cloudstack/centos/vanilla/7/x86_64/


-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: xenserver虚拟出来的网卡类型

2014-07-07 文章 linux...@gmail.com
在计算方案里面和网络方案里面修改网卡的速率
另外也可以修改全局参数修改网卡速率

在 2014年7月1日 下午4:15,leifan8440  写道:
> windows??
> 装xen-tools
>
>
>
> leifan8440
>
> 发件人: wqxiaoaojian...@gmail.com
> 发送时间: 2014-07-01 16:06
> 收件人: users-cn
> 主题: xenserver虚拟出来的网卡类型
> 物理机交换机都是千兆的网卡,但xenserver虚拟出来的虚拟机网卡都显示的百兆网卡,没有找到可以修改网卡类型的地方,有人知道可以怎么虚拟出千兆的网卡吗?



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: 文档翻译

2014-07-07 文章 linux...@gmail.com
非常棒!

在 2014年6月30日 下午8:32,sebgoa  写道:
> 让我试试谷歌翻译
>
> 亲爱的中国CloudStack中的社区,
>
> 感谢您对翻译文档你们的辛勤工作。
> 我终于在git仓库设置一切正常,拉着所有的翻译。
> 完整的文档可用于4.3版本。
> 出现了一些新的文本在主分支,以及重新组织内容的添加,所以有一些缺失的弦在最新的。
>
> 您可以在检查翻译的文件:
>
> *安装方式:
>
> *站长:http://cloudstack-installation.readthedocs.org/zh_CN/latest/
> *4.3:http://cloudstack-installation.readthedocs.org/zh_CN/4.3/
>
> *管理:
>
> *站长:http://cloudstack-administration.readthedocs.org/zh_CN/latest/index.html
> *4.3:http://cloudstack-administration.readthedocs.org/zh_CN/4.3/
>
> 你能达到这些网页从:
>
> http://docs.cloudstack.apache.org/projects/cloudstack-installation
> http://docs.cloudstack.apache.org/projects/cloudstack-administration
>
> 在左下角,你应该可以看到一个绿色的'V:最新的“,点击它,你就会看到'zh_CN的”中列出的语言。
>
> 再次非常感谢,如果你看到任何问题,请让我知道。
>
> 4.4是不久将公布。
>
> Shall I write in English instead ? :)
>
> 塞巴斯蒂安



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: 关于运行系统虚拟机的主机重启后系统虚拟机的网络故障

2014-06-05 文章 linux...@gmail.com
你的后台的报错日志是什么,贴出来看看

在 2014年6月4日 下午6:06,tongwf  写道:
>
>
>
>
>
>
>
>
> 大家好:
>
>   
> 我的基础网络模式的cloudstack4.3测试环境保护你2台host。其中host1中运行系统虚拟机。一开始一切正常。但自动host1主机重启发现系统虚拟机漂移到host2,系统虚拟机还没成功启动完成,host1在线之后系统虚拟机又漂移回来,之后发现系统虚拟机有网络故障。
>
>   
> 迁移系统虚拟机到host2或者销毁系统虚拟机自动重建,网络仍然不通。2台host以及管理机连系统虚拟机的所有网卡都不通。因为是基础网络所有设置的IP都是同一个网段的。?
>
>
> --九维网(www.9wee.com)姓名佟万飞?运维部Mobile手机:13918254219Tel电话:(86)021-5250-6824Email电邮:tongwf@9wee.comAddress地址:1F,Building4,No.879
>  Zhongjiang Road,Putuo,Shanghai,China中国上海市普陀区中江路879号4号楼A座1楼邮编:200333??
>
>



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: 【OT】招聘虚拟化工程师3名

2014-05-28 文章 linux...@gmail.com
感谢对这个职位有兴趣的朋友的来信!
我对这个职位的介绍做一些补充。这个职位属于偏研究性质,基本不会出差。

这个职位的主要工作内容是对云平台涉及的底层技术进行相应的研究,领域涉及虚拟化,存储,网络

另外也会对运维方面的自动化做相应的研究。

公司地址是在 朝阳区酒仙桥东路9号院A1楼一层



在 2014年5月28日 下午3:01,linux...@gmail.com  写道:
> hey 大家好!
>
> 我们目前在招聘虚拟化工程师,以下是招聘要求,欢迎有意向的朋友和我联系!
>
> 职位工作内容:
>  负责云计算产品的底层虚拟化,存储,网络等技术的研究,为实施人员提供技术支持。
>
>  职位要求:
>  1、熟悉虚拟化关键技术,熟悉并使用、研究过主流虚拟机Hypervior或虚拟机管理;
>  2、至少熟悉Glusterfs,xfs,Ceph中的一种
>  3、熟悉python,shell中的一种
>  4、较强的独立分析和解决问题的能力
>  5、有良好的沟通能力
>
>  加分项:
>  1、熟悉网络原理,熟悉iptables, openvswitch,网络防火墙等相关技术 ;
>  2、参与过openstack、cloudstack等开源项目经验者优先;
>  3、之前在IBM, Redhat, Intel, VMware,Citrix等公司从事相关技术研发者优先。
>  4、熟悉一种主流Linux发行版, 有发行版定制经验
>  5. 熟悉Linux软件包定制,有rpm或deb包制作经验
>
>  有意向者,请发邮件到 ba...@cniaas.com
>
>
> --
> 白清杰 (Born Bai)
>
> Mail: linux...@gmail.com



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: 回复:Re: 回复:Re: CloudStack VM HA无法实现

2014-05-28 文章 linux...@gmail.com
这个方法也是可以,但不一定需要tag才能做高可用


在 2014年5月28日 下午5:16,  写道:
> 再次感谢。是我理解有误。我再测试一下。
>
>
> 这个http://clovemfong.blog.51cto.com/3297559/1316868 文档。。。是不是有问题啊?
>
>
> 如果实现您说的HA,按照这个文档设置可以么?请大神指教一下。多谢。
>
>
> ----- 原始邮件 -
> 发件人:"linux...@gmail.com" 
> 收件人:tunin...@sina.com
> 抄送人:users-cn 
> 主题:Re: 回复:Re: CloudStack VM HA无法实现
> 日期:2014年05月28日 16点57分
>



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


realhostip将于2014年6月30日停止使用,cloudstack 4.3以下版本将受影响

2014-05-28 文章 linux...@gmail.com
Recently the Apache CloudStack PMC was informed that the
realhostip.com Dynamic DNS service that CloudStack currently uses as
part of the console proxy will be disbanded this summer. The
realhostip service will be shut down June 30th, 2014, meaning users
have approximately 3 months to mitigate this.

Prior to version 4.3, CloudStack used the realhostip.com service by
default. With the release of CloudStack version 4.3 the default
communication method with the console proxy is plaintext HTTP.

Who is Affected

CloudStack installations prior to version 4.3 that have not been
reconfigured to use a DNS domain other than realhostip.com for Console
Proxy or Secondary Storage must make changes to continue functioning
past June 30th, 2014.

Steps You Need to Take

If you meet the criteria above, there are several options to prepare
for realhostip retirement:

Set up wildcard SSL certificate and DNS entries: This method is
already well supported within prior versions of CloudStack.
Upgrade to CloudStack 4.3 and disable SSL: This is only recommended
for development installations, or private clouds that contain no
information of importance.
Upgrade to CloudStack 4.3, set up static SSL certificate and configure
load balancer to point to the correct IP address: While this allows an
administrator to skip setting up the DNS entries from the previous
option, it is a more advanced option as CloudStack 4.3 does not
support automatic load balancer configuration for the Console Proxy.
It is hoped this functionality will be available in future releases.

For instructions on how to set up SSL encryption for use with
CloudStack console proxy, please read the console proxy section of the
CloudStack administration guide.
http://docs.cloudstack.apache.org/projects/cloudstack-administration/en/latest/systemvm.html#console-proxy


Additionally, if you will be using an SSL vendor who requires an
intermediate CA chain to be installed for proper SSL validation by web
browsers, detailed instructions for configuring the intermediate CA
chain in CloudStack can be found here.

The Apache CloudStack security team does not recommend running a
production cloud with either the realhostip.com SSL certificate, or
with no SSL encryption at all.




-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: 回复:Re: CloudStack VM HA无法实现

2014-05-28 文章 linux...@gmail.com
HA的意思是假设VM 1运行在host1上面,当host1出现故障后,VM1自动迁移到host2上面
HA不是你这样玩儿的啊

在 2014年5月28日 下午4:20,  写道:
> 感谢您的回复。
>
>
> 我用的是共享存储by NFS。
>
>
> 另外,从后台管理日志没有看到任何跟HA相关的日志。
>
>
> 我通过HA计算方案创建实例后,console登录到实例上面,执行init 0,实例实际上已经处于关机状态,
>
> 但是在CS上面看到的该实例状态一直是running。
>
>
>
> - 原始邮件 -
> 发件人:"linux...@gmail.com" 
> 收件人:users-cn@cloudstack.apache.org, tunin...@sina.com
> 主题:Re: CloudStack VM HA无法实现
> 日期:2014年05月28日 15点51分
>



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: CloudStack VM HA无法实现

2014-05-28 文章 linux...@gmail.com
你用的存储是本地存储还是共享存储
另外后台的日志是怎样的

在 2014年5月28日 下午3:25,  写道:
> 环境ESXi 5.1+CloudStack 4.3.0
> 在网上找到了这篇文档,http://clovemfong.blog.51cto.com/3297559/1316868,按照步骤设置完成,但是进行实例关机操作后,根本不会触发HA,从而不能实现故障实例自动在另外一台ESXi上面启动。
> 请问是我哪里还需要设置么?谢谢!



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


【OT】招聘虚拟化工程师3名

2014-05-28 文章 linux...@gmail.com
hey 大家好!

我们目前在招聘虚拟化工程师,以下是招聘要求,欢迎有意向的朋友和我联系!

职位工作内容:
 负责云计算产品的底层虚拟化,存储,网络等技术的研究,为实施人员提供技术支持。

 职位要求:
 1、熟悉虚拟化关键技术,熟悉并使用、研究过主流虚拟机Hypervior或虚拟机管理;
 2、至少熟悉Glusterfs,xfs,Ceph中的一种
 3、熟悉python,shell中的一种
 4、较强的独立分析和解决问题的能力
 5、有良好的沟通能力

 加分项:
 1、熟悉网络原理,熟悉iptables, openvswitch,网络防火墙等相关技术 ;
 2、参与过openstack、cloudstack等开源项目经验者优先;
 3、之前在IBM, Redhat, Intel, VMware,Citrix等公司从事相关技术研发者优先。
 4、熟悉一种主流Linux发行版, 有发行版定制经验
 5. 熟悉Linux软件包定制,有rpm或deb包制作经验

 有意向者,请发邮件到 ba...@cniaas.com


-- 
白清杰 (Born Bai)

Mail: linux...@gmail.com


Re: 回复:Tomcat 全系报新的安全漏洞-大家注意升级

2014-05-27 文章 linux...@gmail.com
对cloudstack的影响应该不大,如果大家有做公有云的,需要考虑其中的风险。
尽量让管理节点不暴露在外网

在 2014年5月28日 上午11:13,浪鲟遇  写道:
> 这个升级全不全影响CLOUDSTAKC
>
>
>
>
> -- 原始邮件 --
> 发件人: "linux...@gmail.com";
> 发送时间: 2014年5月28日(星期三) 上午10:41
> 收件人: "cloudstack-users-cn";
> 主题: Tomcat 全系报新的安全漏洞-大家注意升级
>
>
>
> hey ALL:
>
>
>目前 Tomcat 全系报新的安全漏洞,cloudstack使用了tomcat作为Web server
> 大家注意安全升级。
>
> http://www.oschina.net/news/5/tomcat-deny-of-service
>
>
>
> --
> 白清杰 (Born Bai)
>
> 北京开源愿景信息技术有限公司
>
> Mail: linux...@gmail.com



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Tomcat 全系报新的安全漏洞-大家注意升级

2014-05-27 文章 linux...@gmail.com
hey ALL:


   目前 Tomcat 全系报新的安全漏洞,cloudstack使用了tomcat作为Web server
大家注意安全升级。

http://www.oschina.net/news/5/tomcat-deny-of-service



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: cloudstack 4.2.1状态不同步

2014-05-27 文章 linux...@gmail.com
你的问题是什么呢?

在 2014年5月28日 上午9:13,Kenway  写道:
> 我登录到虚拟机中,手动执行shutdown后,虚拟机在web-ui中一直是starting,如果通过web-ui点击关机,状态很快就stopped,求解
>
> The mail from Tom



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: Re: 关于CloudStack4.3 Sockets获取的问题

2014-05-26 文章 linux...@gmail.com
http://docs.cloudstack.apache.org/projects/cloudstack-release-notes/en/4.3/

在release note里面有详细说明

在 2014年5月26日 下午8:07,evanitsharp  写道:
> 当然开了,我集群运行是正常的。就是无法收集到XenServer6.0.2的Socket数目,听说是CS4.3只支持XenServer6.2的Socket
>
> 通过研究源码和对XenServer6.0.2的测试,我发现确实是不能获取到它的Socket
>
> 我想问问CS4.3对VMWare、XenServer、KVM哪些版本支持
>
>
>
>
>
> evanitsharp
>
> 发件人: linux...@gmail.com
> 发送时间: 2014-05-23 15:33
> 收件人: users-cn
> 主题: Re: 关于CloudStack4.3 Sockets获取的问题
> 你的计算节点的bios配置里面开启VT了吗?
>
>
> 在 2014年5月23日 下午3:13,evanitsharp 写道:
>
>>  大家好,CloudStack4.3新增了Sockets管理的功能,但是我配置好环境后,Socket数目并没有取到
>> 对于VMWare、XenServer、KVM三种主流Hypervisor,Socket数目都能获取吗?CloudStack4.3支持他们的哪些版本?
>>
>>
>>
>> ------
>> evanitsharp
>>
>
>
>
> --
> 白清杰 (Born Bai)
>
> 北京开源愿景信息技术有限公司
>
> Mail: linux...@gmail.com



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: 关于CloudStack4.3 Sockets获取的问题

2014-05-23 文章 linux...@gmail.com
你的计算节点的bios配置里面开启VT了吗?


在 2014年5月23日 下午3:13,evanitsharp 写道:

>  大家好,CloudStack4.3新增了Sockets管理的功能,但是我配置好环境后,Socket数目并没有取到
> 对于VMWare、XenServer、KVM三种主流Hypervisor,Socket数目都能获取吗?CloudStack4.3支持他们的哪些版本?
>
>
>
> --
> evanitsharp
>



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: programming network rules failed -- 请教

2014-05-22 文章 linux...@gmail.com
建议提问题的时候,说下你的环境背景,在什么情况下出的错误

2014-05-23 10:24 GMT+08:00 谢福平 <754282...@qq.com>:
> 请问我的日志中有许多这个错误,有什么影响?
> Failed to program rule com.cloud.agent.api.SecurityGroupRuleAnswer into host 
> 57 due to programming network rules failed and updated  jobs
>
>
>
>
>  这里提示programming network rules failed , 是不是防火墙设置有问题导致的?



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: 回复: 回复: cloudstack+kvm 使用X-windows黑屏

2014-05-21 文章 linux...@gmail.com
你这个是x-windows的远程桌面配置问题,和cloudstack没有关系

在 2014年5月21日 下午5:07,Mr.博 <289254...@qq.com> 写道:
> 像问题中描述的, “在Client端使用X :2 -query xxx.xxx.xxx.xxx”连接KVM虚拟机中的openSUSE系统
>
>
>
> -- 原始邮件 ------
> 发件人: "linux...@gmail.com";
> 发送时间: 2014年5月21日(星期三) 下午5:05
> 收件人: "users-cn";
> 主题: Re: 回复: cloudstack+kvm 使用X-windows黑屏
>
>
>
> Xwindows远程kvm 是什么意思呢?
>
> 在 2014年5月21日 下午4:53,Mr.博 <289254...@qq.com> 写道:
>> 通过研究之后发现应该是显卡配置的问题,请问一下想要Xwindows远程kvm的话,/etc/X11/xorg.conf.d/50-device.conf应该怎么配置?
>>
>>
>>
>>
>> -- 原始邮件 --
>> 发件人: "linux...@gmail.com";
>> 发送时间: 2014年5月21日(星期三) 下午4:08
>> 收件人: "users-cn";
>> 主题: Re: cloudstack+kvm 使用X-windows黑屏
>>
>>
>>
>> 在邮件列表里面是无法接收图片的,请发文本日志,或者把图在别的地方发布,在这里给链接
>>
>> 在 2014年5月21日 下午3:23,Mr.博 <289254...@qq.com> 写道:
>>> 环境:cloudstack4.2+kvm
>>> 系统:Client使用openSUSE11.3,连接Server端的CentOS和openSUSE12.3
>>> 网络:高级网络模式中使用静态NAT,防火墙端口全部开放,入口规则端口全部开放
>>> 问题:在Client端使用X :2 -query xxx.xxx.xxx.xxx
>>> 远程连接,连接后黑屏,没有任何东西显示,过大概一分钟左右鼠标变成一个“X”,可以移动。但屏幕依然黑屏。
>>> 日志:见附件。
>>>
>>> 请问有谁遇见过相同的问题吗?赐教一下
>>
>>
>>
>> --
>> 白清杰 (Born Bai)
>>
>> 北京开源愿景信息技术有限公司
>>
>> Mail: linux...@gmail.com
>
>
>
> --
> 白清杰 (Born Bai)
>
> 北京开源愿景信息技术有限公司
>
> Mail: linux...@gmail.com



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: 回复: cloudstack+kvm 使用X-windows黑屏

2014-05-21 文章 linux...@gmail.com
Xwindows远程kvm 是什么意思呢?

在 2014年5月21日 下午4:53,Mr.博 <289254...@qq.com> 写道:
> 通过研究之后发现应该是显卡配置的问题,请问一下想要Xwindows远程kvm的话,/etc/X11/xorg.conf.d/50-device.conf应该怎么配置?
>
>
>
>
> -- 原始邮件 ------
> 发件人: "linux...@gmail.com";
> 发送时间: 2014年5月21日(星期三) 下午4:08
> 收件人: "users-cn";
> 主题: Re: cloudstack+kvm 使用X-windows黑屏
>
>
>
> 在邮件列表里面是无法接收图片的,请发文本日志,或者把图在别的地方发布,在这里给链接
>
> 在 2014年5月21日 下午3:23,Mr.博 <289254...@qq.com> 写道:
>> 环境:cloudstack4.2+kvm
>> 系统:Client使用openSUSE11.3,连接Server端的CentOS和openSUSE12.3
>> 网络:高级网络模式中使用静态NAT,防火墙端口全部开放,入口规则端口全部开放
>> 问题:在Client端使用X :2 -query xxx.xxx.xxx.xxx
>> 远程连接,连接后黑屏,没有任何东西显示,过大概一分钟左右鼠标变成一个“X”,可以移动。但屏幕依然黑屏。
>> 日志:见附件。
>>
>> 请问有谁遇见过相同的问题吗?赐教一下
>
>
>
> --
> 白清杰 (Born Bai)
>
> 北京开源愿景信息技术有限公司
>
> Mail: linux...@gmail.com



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: 回复: 回复: cloudstack-agent无法启动问题,求解决!

2014-05-21 文章 linux...@gmail.com
建议仔细检查下libvirt的相关配置文件,以及selinux的配置,另外看下管理节点的报错日志是什么


在 2014年5月21日 下午4:32,雪雨星风 <894510...@qq.com> 写道:
> 计算节点和管理节点一样都是RHEL6.4,jdk版本是1.7,kvm当时就按照网上步骤装了下qemu-kvm,后面就没动它了
>
>
>
>
> -- 原始邮件 ------
> 发件人: "linux...@gmail.com";
> 发送时间: 2014年5月21日(星期三) 下午4:28
> 收件人: "邮件组users-cn";
> 主题: Re: 回复: cloudstack-agent无法启动问题,求解决!
>
>
>
> 你的计算节点用的ubuntu还是centos ,另外kvm有关的配置文件是否做过调整
> 还有就是你的jdk的版本是多少?
>
> 在 2014年5月21日 下午4:17,雪雨星风 <894510...@qq.com> 写道:
>> 这是所报的错误:http://pan.baidu.com/s/1i3spM9f
>>  这是start函数具体内容:http://pan.baidu.com/s/1gdik49t
>>
>>
>>
>>
>> -- 原始邮件 --
>> 发件人: "linux...@gmail.com";
>> 发送时间: 2014年5月21日(星期三) 下午4:07
>> 收件人: "邮件组users-cn";
>> 主题: Re: cloudstack-agent无法启动问题,求解决!
>>
>>
>>
>> 把你的后台错误日志贴过来,不要截图,邮件列表里面无法看图的,
>> 可以把图放到别的地方,在这里给出链接
>>
>>
>> 在 2014年5月21日 下午2:38,雪雨星风 <894510...@qq.com>写道:
>>
>>>
>>> 在进行用cloudstack添加区域时,执行到添加主机这步发现添加不起,于是查看了下主机上的cloudstack-agent能否正常启动,结果发现启动不了,报如下错误
>>> 在主机上用java -version查看了jre是安装了的。/etc/init.d/cloudstack-agent文件66行为start函数具体如下
>>> :
>>>  求大神看看是什么原因,怎么解决
>>>
>>
>>
>>
>> --
>> 白清杰 (Born Bai)
>>
>> 北京开源愿景信息技术有限公司
>>
>> Mail: linux...@gmail.com
>
>
>
> --
> 白清杰 (Born Bai)
>
> 北京开源愿景信息技术有限公司
>
> Mail: linux...@gmail.com



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: 回复: cloudstack-agent无法启动问题,求解决!

2014-05-21 文章 linux...@gmail.com
你的计算节点用的ubuntu还是centos ,另外kvm有关的配置文件是否做过调整
还有就是你的jdk的版本是多少?

在 2014年5月21日 下午4:17,雪雨星风 <894510...@qq.com> 写道:
> 这是所报的错误:http://pan.baidu.com/s/1i3spM9f
>  这是start函数具体内容:http://pan.baidu.com/s/1gdik49t
>
>
>
>
> -- 原始邮件 --
> 发件人: "linux...@gmail.com";
> 发送时间: 2014年5月21日(星期三) 下午4:07
> 收件人: "邮件组users-cn";
> 主题: Re: cloudstack-agent无法启动问题,求解决!
>
>
>
> 把你的后台错误日志贴过来,不要截图,邮件列表里面无法看图的,
> 可以把图放到别的地方,在这里给出链接
>
>
> 在 2014年5月21日 下午2:38,雪雨星风 <894510...@qq.com>写道:
>
>>
>> 在进行用cloudstack添加区域时,执行到添加主机这步发现添加不起,于是查看了下主机上的cloudstack-agent能否正常启动,结果发现启动不了,报如下错误
>> 在主机上用java -version查看了jre是安装了的。/etc/init.d/cloudstack-agent文件66行为start函数具体如下
>> :
>>  求大神看看是什么原因,怎么解决
>>
>
>
>
> --
> 白清杰 (Born Bai)
>
> 北京开源愿景信息技术有限公司
>
> Mail: linux...@gmail.com



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: 回复: cloudstack主存储和二级存储迁移

2014-05-21 文章 linux...@gmail.com
主存储和辅助存储都是可以再添加的。
添加时,注意管理节点,计算节点 和存储之间可以进行通信

在 2014年5月21日 下午4:16,刘宝刚 <793249...@qq.com> 写道:
> 怎么在cloudstack中再添加一套存储进来。
>
>
>
> -- 原始邮件 ------
> 发件人: "linux...@gmail.com";
> 发送时间: 2014年5月21日(星期三) 下午4:10
> 收件人: "users-cn";
> 主题: Re: cloudstack主存储和二级存储迁移
>
>
>
> 可以把第二套的存储加到cloudstack中,将之前的存储启用维护模式,cloudstack会自动把数据从第一套存储迁移到第二套存储。
> 迁移完了,就可以移除第一套存储
>
> 在 2014年5月21日 下午2:48,刘宝刚 <793249...@qq.com> 写道:
>> 各位好:   
>> 我们现在有两套存储环境,第一套是给现有cloudstack平台用作主存储和二级存储,现在想把cloudstack环境中主存储和辅助存储迁移到,第二套存储中,这样会涉及到cloudstack中存储IP地址和主存储的iqn会改变,不知道这样子做可不可行,如果可行的话,我们如何更改cloudstack中存储IP地址
>
>
>
> --
> 白清杰 (Born Bai)
>
> 北京开源愿景信息技术有限公司
>
> Mail: linux...@gmail.com



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: cloudstack主存储和二级存储迁移

2014-05-21 文章 linux...@gmail.com
可以把第二套的存储加到cloudstack中,将之前的存储启用维护模式,cloudstack会自动把数据从第一套存储迁移到第二套存储。
迁移完了,就可以移除第一套存储

在 2014年5月21日 下午2:48,刘宝刚 <793249...@qq.com> 写道:
> 各位好:   
> 我们现在有两套存储环境,第一套是给现有cloudstack平台用作主存储和二级存储,现在想把cloudstack环境中主存储和辅助存储迁移到,第二套存储中,这样会涉及到cloudstack中存储IP地址和主存储的iqn会改变,不知道这样子做可不可行,如果可行的话,我们如何更改cloudstack中存储IP地址



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: cloudstack+kvm 使用X-windows黑屏

2014-05-21 文章 linux...@gmail.com
在邮件列表里面是无法接收图片的,请发文本日志,或者把图在别的地方发布,在这里给链接

在 2014年5月21日 下午3:23,Mr.博 <289254...@qq.com> 写道:
> 环境:cloudstack4.2+kvm
> 系统:Client使用openSUSE11.3,连接Server端的CentOS和openSUSE12.3
> 网络:高级网络模式中使用静态NAT,防火墙端口全部开放,入口规则端口全部开放
> 问题:在Client端使用X :2 -query xxx.xxx.xxx.xxx
> 远程连接,连接后黑屏,没有任何东西显示,过大概一分钟左右鼠标变成一个“X”,可以移动。但屏幕依然黑屏。
> 日志:见附件。
>
> 请问有谁遇见过相同的问题吗?赐教一下



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: cloudstack-agent无法启动问题,求解决!

2014-05-21 文章 linux...@gmail.com
把你的后台错误日志贴过来,不要截图,邮件列表里面无法看图的,
可以把图放到别的地方,在这里给出链接


在 2014年5月21日 下午2:38,雪雨星风 <894510...@qq.com>写道:

>
> 在进行用cloudstack添加区域时,执行到添加主机这步发现添加不起,于是查看了下主机上的cloudstack-agent能否正常启动,结果发现启动不了,报如下错误
> 在主机上用java -version查看了jre是安装了的。/etc/init.d/cloudstack-agent文件66行为start函数具体如下
> :
>  求大神看看是什么原因,怎么解决
>



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: 主机断连问题

2014-05-19 文章 linux...@gmail.com
你这个看不出什么内容来,建议你提供下当时的主机的流量情况,以及负载情况
还有一个就是你的网络本身的流量带宽是不是被占满了

2014-05-20 13:49 GMT+08:00 谢福平 <754282...@qq.com>:
> 平台(cloudstack+kvm)的所有主机变为connectting,但是过一阵子会自动up起来,下面是主机的日志.
>
> 2014-05-20 13:26:36,091 INFO  [cloud.agent.Agent] (Agent-Handler-1:null) 
> Reconnecting...
> 2014-05-20 13:26:36,092 INFO  [utils.nio.NioClient] (Agent-Selector:null) 
> Connecting to 10.5.128.101:8250
> 2014-05-20 13:26:36,489 INFO  [utils.nio.NioClient] (Agent-Selector:null) 
> SSL: Handshake done
> 2014-05-20 13:26:41,490 INFO  [cloud.agent.Agent] (Agent-Handler-1:null) 
> Connected to the server
> 2014-05-20 13:29:37,006 INFO  [cloud.agent.Agent] (Agent Timer:null) The 
> startup command is now cancelled
> 2014-05-20 13:29:42,007 INFO  [cloud.agent.Agent] (Agent Timer:null) Lost 
> connection to the server. Dealing with the remaining commands...
>
> 2014-05-20 13:29:47,009 INFO  [cloud.agent.Agent] (Agent Timer:null) 
> Reconnecting...
> 2014-05-20 13:29:47,010 INFO  [utils.nio.NioClient] (Agent-Selector:null) 
> Connecting to 10.5.128.101:8250
> 2014-05-20 13:29:47,095 INFO  [utils.nio.NioClient] (Agent-Selector:null) 
> SSL: Handshake done
> 2014-05-20 13:29:52,096 INFO  [cloud.agent.Agent] (Agent Timer:null) 
> Connected to the server
> 2014-05-20 13:35:47,596 INFO  [cloud.agent.Agent] (Agent Timer:null) The 
> startup command is now cancelled
> 2014-05-20 13:35:52,597 INFO  [cloud.agent.Agent] (Agent Timer:null) Lost 
> connection to the server. Dealing with the remaining commands...
>
> 2014-05-20 13:35:57,598 INFO  [cloud.agent.Agent] (Agent Timer:null) 
> Reconnecting...
> 2014-05-20 13:35:57,599 INFO  [utils.nio.NioClient] (Agent-Selector:null) 
> Connecting to 10.5.128.101:8250
> 2014-05-20 13:35:57,686 INFO  [utils.nio.NioClient] (Agent-Selector:null) 
> SSL: Handshake done
> 2014-05-20 13:36:02,686 INFO  [cloud.agent.Agent] (Agent Timer:null) 
> Connected to the server



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: 回复: 安装KVM模板报错求解决

2014-05-19 文章 linux...@gmail.com
Access denied for user 'cloud'@'localhost' (using password:YES) .

你这个问题是mysql的问题,
建议你检查下系统的/etc/hosts文件里面是不是配置了localhost,另外执行mysql -ucloud -p 试试,看看是不是可以登录

在 2014年5月17日 下午9:05,雪雨星风 <894510...@qq.com> 写道:
> 看了官方文档,可还是不知道怎么解决啊,我mysql的账号密码分别为root和123456,怎么在安装命令中提供这些,安装命令我应该怎么改?求解啊!我就是个菜鸟,麻烦了!
>
>
>
>
> -- 原始邮件 --
> 发件人: "aix.n...@gmail.com";
> 发送时间: 2014年5月17日(星期六) 晚上6:55
> 收件人: "邮件组users-cn";
> 主题: Re: 安装KVM模板报错求解决
>
>
>
> 导入mysql请指定cs帐号密码,提供mysql管理员帐号 ,密码。请参照官方文档
>
>
>
> 发自我的小米手机
>
> 雪雨星风 <894510...@qq.com>编写:
>
>>用Rehel6.4安装cloudstack时,进行到创建kvm虚拟机模板时,安装不起,报的错误是:
>>ERROR 1045 (28000): Access denied for user 'cloud'@'localhost' (using 
>>password:YES) .
>> 我的安装命令为:
>> /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt
>>  -m /mnt/secondary -u 
>> /usr/src/systemvm64template-2014-01-14-master-kvm.qcow2.bz2 -h kvm -F
>> 求解决方法



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: 管理主机网路堵塞

2014-05-19 文章 linux...@gmail.com
你的网络是百兆的还是千兆的?
管理主机的网络带宽是多少?

在 2014年5月16日 下午9:52,wqxiaoaojian...@gmail.com  写道:
>
> cloustack部署规模超过十台,管理主机的网络就不太稳定,向外面ping的时候,报no buffer spice available 
> ,感觉是cloudstack发了太多的包,我把所有的网关都设置为管理主机的地址,能有什么方法避免这个问题吗?
>
>
> 发自我的小米手机



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: 模板问题请教

2014-05-19 文章 linux...@gmail.com
建议你修改模板的属性,设置为公共


在 2014年5月9日 下午6:04,谢福平 <754282...@qq.com>写道:

> 请问我上传一个模板后,在模板列表中看不到:
>
>  但是创建虚拟机时,模板备选列表中却能看见
>
>
>
>
>
> 请问是什么原因啊
>
>
>
>
>
>
>



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: cloudstack删除VM主存储空间不释放

2014-05-19 文章 linux...@gmail.com
建议你通过cloudstack界面进行删除,通过xencenter删除时,cloudstack不知道VM被删除,相应的数据库的表的值当然不会发生变化


在 2014年5月16日 下午12:01,刘宝刚 <793249...@qq.com>写道:

> cloudstack提示存储空间不足,告警百分之九十,在xencenter删除VM,cloudstack主存储不释放空间。
>
>



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: 主机防火墙导致虚拟机不通

2014-05-16 文章 linux...@gmail.com
你用的基本网络模式还是高级网络模式
几台设备,

2014-05-15 9:42 GMT+08:00 谢福平 <754282...@qq.com>:
> 操作步骤
>  1.虚拟机正常,能ping通
>  2.新建虚拟机,如果虚拟机的宿主机为A
>  3.主机A上的原有虚拟机ping不通,新建的虚拟机正常
>  4.关闭主机防火墙,A上所有虚拟机都能ping通
>  5.过一段时间,A上防火墙自动起来,所有虚拟机也能正常ping通
>
>  总结就是,只有新建虚拟机时,新虚拟机所在主机上的原虚拟机会ping不通,新建的虚拟机正常。
>  查看主机上的防火墙状态如下:
>  [root@iad-kvm-1 ~]# service iptables status
> Table: filter
> Chain INPUT (policy ACCEPT)
> num  target prot opt source   destination
>  Chain FORWARD (policy ACCEPT)
> num  target prot opt source   destination
> 1BF-br-guest  all  --  0.0.0.0/00.0.0.0/0   PHYSDEV 
> match --physdev-is-bridged
> 2BF-br-guest  all  --  0.0.0.0/00.0.0.0/0   PHYSDEV 
> match --physdev-is-bridged
> 3DROP   all  --  0.0.0.0/00.0.0.0/0
> 4DROP   all  --  0.0.0.0/00.0.0.0/0
>  Chain OUTPUT (policy ACCEPT)
> num  target prot opt source   destination
>  Chain BF-br-guest (2 references)
> num  target prot opt source   destination
> 1ACCEPT all  --  0.0.0.0/00.0.0.0/0   state 
> RELATED,ESTABLISHED
> 2BF-br-guest-IN  all  --  0.0.0.0/00.0.0.0/0   
> PHYSDEV match --physdev-is-in --physdev-is-bridged
> 3BF-br-guest-OUT  all  --  0.0.0.0/00.0.0.0/0   
> PHYSDEV match --physdev-is-out --physdev-is-bridged
> 4ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV 
> match --physdev-out eth1 --physdev-is-bridged
>  Chain BF-br-guest-IN (1 references)
> num  target prot opt source   destination
> 1i-2-505-def  all  --  0.0.0.0/00.0.0.0/0   PHYSDEV 
> match --physdev-in vnet6 --physdev-is-bridged
>  Chain BF-br-guest-OUT (1 references)
> num  target prot opt source   destination
> 1i-2-505-def  all  --  0.0.0.0/00.0.0.0/0   PHYSDEV 
> match --physdev-out vnet6 --physdev-is-bridged
>  Chain i-2-505-VM (1 references)
> num  target prot opt source   destination
> 1ACCEPT udp  --  0.0.0.0/00.0.0.0/0   udp 
> dpts:1:65535 state NEW
> 2ACCEPT tcp  --  0.0.0.0/00.0.0.0/0   tcp 
> dpts:1:65535 state NEW
> 3ACCEPT icmp --  0.0.0.0/00.0.0.0/0   icmp type 
> 255
> 4DROP   all  --  0.0.0.0/00.0.0.0/0
>  Chain i-2-505-VM-eg (1 references)
> num  target prot opt source   destination
> 1RETURN udp  --  0.0.0.0/00.0.0.0/0   udp 
> dpts:1:65535 state NEW
> 2RETURN tcp  --  0.0.0.0/00.0.0.0/0   tcp 
> dpts:1:65535 state NEW
> 3RETURN icmp --  0.0.0.0/00.0.0.0/0   icmp type 
> 255
> 4DROP   all  --  0.0.0.0/00.0.0.0/0
>  Chain i-2-505-def (2 references)
> num  target prot opt source   destination
> 1ACCEPT all  --  0.0.0.0/00.0.0.0/0   state 
> RELATED,ESTABLISHED
> 2ACCEPT udp  --  0.0.0.0/00.0.0.0/0   PHYSDEV 
> match --physdev-in vnet6 --physdev-is-bridged udp spt:68 dpt:67
> 3ACCEPT udp  --  0.0.0.0/00.0.0.0/0   PHYSDEV 
> match --physdev-out vnet6 --physdev-is-bridged udp spt:67 dpt:68
> 4RETURN udp  --  10.5.26.96   0.0.0.0/0   PHYSDEV 
> match --physdev-in vnet6 --physdev-is-bridged udp dpt:53
> 5i-2-505-VM-eg  all  --  10.5.26.96   0.0.0.0/0   PHYSDEV 
> match --physdev-in vnet6 --physdev-is-bridged
> 6i-2-505-VM  all  --  0.0.0.0/00.0.0.0/0   PHYSDEV 
> match --physdev-out vnet6 --physdev-is-bridged



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: 答复: 高级网络虚拟路由问题

2014-05-13 文章 linux...@gmail.com
建议将虚拟路由器的配置调高

2014-05-13 16:47 GMT+08:00 ma y :
> 是的,cs没有默认安装tools
>
>
> 2014-05-13 14:35 GMT+08:00 张仕博 :
>
>> 看来不稳定的还不仅仅是虚拟路由..
>> 我的测试环境是CS 4.2 + XenServer 6.2。
>> 发现一个可疑的地方,CS系统虚拟机都没有安装tools,不知道有没有关系。
>>
>>
>> 张仕博
>> 基础软件事业部
>> 东软集团股份有限公司
>> 大连市甘井子区黄浦路901号D1座219室
>>
>> Postcode:116085
>> Tel:(86 411) 8446 6538
>> Email:zhang...@neusoft.com
>>
>> -邮件原件-
>> 发件人: ma y [mailto:breeze7...@gmail.com]
>> 发送时间: 2014年5月13日 14:02
>> 收件人: users-cn@cloudstack.apache.org
>> 主题: Re: 高级网络虚拟路由问题
>>
>> 静态nat不能访问还没有遇到过
>> 我经常遇到的系统虚拟机不工作的是ssvm和cpvm,重启后功能正常
>> 4.3版本的系统虚拟机是64位debian,计算方案也有相应增加,可能是出于稳定性的考虑
>>
>>
>> 2014-05-13 8:54 GMT+08:00 张仕博 :
>>
>> > 最近在测试高级网络中虚拟路由器的时候发现运行一段时间后,大概半个月,某些静态
>> > NAT不能访问,而另外还有能访问的,解决办法是重启虚拟路由器就好,非常奇怪,请
>> > 问这是怎么回事?
>> >
>> >
>> >
>> >   _
>> >
>> > 张仕博
>> >
>> > 基础软件事业部
>> >
>> > 东软集团股份有限公司
>> >
>> > 大连市甘井子区黄浦路901号D1座219室
>> >
>> >
>> >
>> > Postcode:116085
>> >
>> >   Tel:(86 411) 8446 6538
>> >
>> > Email: <mailto:zhang...@neusoft.com> zhang...@neusoft.com
>> >
>> >
>> >
>> >
>> > --
>> > - Confidentiality Notice: The information
>> > contained in this e-mail and any accompanying attachment(s) is
>> > intended only for the use of the intended recipient and may be
>> > confidential and/or privileged of Neusoft Corporation, its
>> > subsidiaries and/or its affiliates. If any reader of this
>> > communication is not the intended recipient, unauthorized use,
>> > forwarding, printing,  storing, disclosure or copying is strictly
>> > prohibited, and may be unlawful.If you have received this
>> > communication in error,please immediately notify the sender by return
>> > e-mail, and delete the original message and all copies from your
>> > system. Thank you.
>> >
>> > --
>> > -
>> >
>>
>> ---
>> Confidentiality Notice: The information contained in this e-mail and any
>> accompanying attachment(s)
>> is intended only for the use of the intended recipient and may be
>> confidential and/or privileged of
>> Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader
>> of this communication is
>> not the intended recipient, unauthorized use, forwarding, printing,
>>  storing, disclosure or copying
>> is strictly prohibited, and may be unlawful.If you have received this
>> communication in error,please
>> immediately notify the sender by return e-mail, and delete the original
>> message and all copies from
>> your system. Thank you.
>>
>> ---
>>



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: 【OT】 CloudStack 中国社区2周年庆祝活动

2014-05-13 文章 linux...@gmail.com
沙龙的时间:2014年5月24日(周六) 下午13:30-17:30

地点:北大CIIM云计算应用联合实验室体验中心(北京市海淀区中关村北大街151号北大燕园大厦1007 )

活动现场会派发CloudStack T恤哦

目前T恤的图案正在投票中,欢迎大家前往投票
http://vote.weibo.com/vid=2630080


在 2014年5月13日 下午4:02,linux...@gmail.com  写道:
> Hey ALL:
>
>   不知不觉间,已经进入到了5月份。两年前的5月,CloudStack的架构师Alex huang
> 在北京的中国大饭店介绍CloudStack的架构以及相应的原理。自此之后,CloudStack中国社区建立。截止到目前为止,我们在北京,上海,长沙等地都举办过交流活动。在这两年里,CloudStack被许多公司采用,并有不少用于生产环境。
>
>
> 从全球来看,CloudStack的最大部署规模已经超过了3万台。刚刚被IBM收购的softlayer底层采用了CloudStack。CloudStack的稳定性已经被众多的公司所证明。
>
>
> CloudStack中国社区两年来一直坚持每月组织技术沙龙,致力于推广CloudStack相关的云技术。这个月是CloudStack中国社区的2周年庆祝活动,我们准备了蛋糕,也邀请大家一起来庆祝。
>在这次沙龙中,社区的管理员蒙世国会和大家分享CloudStack目前的状况。如果你想了解cloudstack的最新情况,这个话题不能错过。
>
>   
> 我们邀请了Juniper的技术专家Jason和大家分享在cloudstack环境中,使用SRX以及其他家虚拟化产品时需要考虑的因素。同时还会分享在数据中心的环境中,网络技术是如何演进的,SDN在其中扮演了怎样的角色,其中有哪些技术点。对SDN和网络有兴趣的朋友,可以关注这个分享。
>
>  
> 为了促进CloudStack在中国的生态的建立,我们准备了圆桌论坛,届时会讨论CloudStack在中国的发展规划,CloudStack社区如何帮助商业公司发展。
>
>
>
> 【会议日程】
>
> 13:00-13:30  签到
>
> 13:30-14:15  CloudStack概述及发展——蒙世国
>
> 14:15-15:00  CloudStack的未来蓝图——待定
>
> 15:00-15:45  CloudStack与Juniper SRX的融合——Jason Zhang
>
> 15:45-16:30  圆桌论坛——邀请嘉宾
>
> 16:30-17:00  CloudStack中国纪念T恤设计评选颁奖仪式
>
> 17:00-17:30  神秘压轴节目
>
>
>
>
> --
> 白清杰 (Born Bai)
>
> 北京开源愿景信息技术有限公司
>
> Mail: linux...@gmail.com



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


【OT】 CloudStack 中国社区2周年庆祝活动

2014-05-13 文章 linux...@gmail.com
Hey ALL:

  不知不觉间,已经进入到了5月份。两年前的5月,CloudStack的架构师Alex huang
在北京的中国大饭店介绍CloudStack的架构以及相应的原理。自此之后,CloudStack中国社区建立。截止到目前为止,我们在北京,上海,长沙等地都举办过交流活动。在这两年里,CloudStack被许多公司采用,并有不少用于生产环境。

   
从全球来看,CloudStack的最大部署规模已经超过了3万台。刚刚被IBM收购的softlayer底层采用了CloudStack。CloudStack的稳定性已经被众多的公司所证明。

   
CloudStack中国社区两年来一直坚持每月组织技术沙龙,致力于推广CloudStack相关的云技术。这个月是CloudStack中国社区的2周年庆祝活动,我们准备了蛋糕,也邀请大家一起来庆祝。
   在这次沙龙中,社区的管理员蒙世国会和大家分享CloudStack目前的状况。如果你想了解cloudstack的最新情况,这个话题不能错过。

  
我们邀请了Juniper的技术专家Jason和大家分享在cloudstack环境中,使用SRX以及其他家虚拟化产品时需要考虑的因素。同时还会分享在数据中心的环境中,网络技术是如何演进的,SDN在其中扮演了怎样的角色,其中有哪些技术点。对SDN和网络有兴趣的朋友,可以关注这个分享。

 
为了促进CloudStack在中国的生态的建立,我们准备了圆桌论坛,届时会讨论CloudStack在中国的发展规划,CloudStack社区如何帮助商业公司发展。



【会议日程】

13:00-13:30  签到

13:30-14:15  CloudStack概述及发展——蒙世国

14:15-15:00  CloudStack的未来蓝图——待定

15:00-15:45  CloudStack与Juniper SRX的融合——Jason Zhang

15:45-16:30  圆桌论坛——邀请嘉宾

16:30-17:00  CloudStack中国纪念T恤设计评选颁奖仪式

17:00-17:30  神秘压轴节目




-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: 回复: 迁移虚拟机失败

2014-05-12 文章 linux...@gmail.com
up 可用 是指你的计算节点可以被管理节点识别并使用

在 2014年5月13日 上午9:18,wanghaicheng2...@gmail.com  写道:
>
> 是不是由于虚拟机没有安装xetools的原因呢
>
>
>
> wanghaicheng2...@gmail.com
>
> 发件人: 谢福平
> 发送时间: 2014-05-13 08:44
> 收件人: users-cn
> 主题: 回复: 迁移虚拟机失败
> 计算节点的配置和cluster内的其他设备是一致的!
> 不明白“up可用”是什么意思。
>
>
>
>
> ------ 原始邮件 --
> 发件人: "linux...@gmail.com";;
> 发送时间: 2014年5月12日(星期一) 晚上6:05
> 收件人: "users-cn";
>
> 主题: Re: 迁移虚拟机失败
>
>
>
> 连接被重置。建议你检查下新增加的计算节点是不是up可用。另外新增加的计算节点的配置和cluster内的其他设备是不是一致呢?
>
> 在 2014年5月12日 下午3:01,谢福平 <754282...@qq.com> 写道:
>> 当集群中新增一台KVM主机时,我想把之前主机上的虚拟机迁移到新增的主机中,以减少原主机的负载压力。
>>  当迁移时失败,报错如下:
>>   Unable to migrate due to Unable to read from monitor: Connection reset by 
>> peer
>>  请问这是什么原因啊
>
>
>
> --
> 白清杰 (Born Bai)
>
> 北京开源愿景信息技术有限公司
>
> Mail: linux...@gmail.com



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: 如何用Eclipse远程debug调试cloudstack?

2014-05-12 文章 linux...@gmail.com
不懂,建议到开发者邮件列表问问

在 2014年5月6日 上午11:02,彭怀义  写道:
> Hi  All,
>
>
>   官网上仅仅介绍从源码方式安装可以用8787端口远程调试,
>   那我用yum方式安装的cloudstack4.3, 如何在本地用Eclipse远程debug调试cloudstack呢?
>   求指导, 谢谢



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: xenserver 虚拟机迁移

2014-05-12 文章 linux...@gmail.com
; 2014-05-12 15:58:27,720 DEBUG [agent.transport.Request] 
> (Job-Executor-47:job-80 = [ 8b315af2-714b-4819-a4ca-2cd3e370dbcb ]) Seq 
> 2-417148369: Sending  { Cmd , MgmtId: 86530476470110, via: 2, Ver: v1, Flags: 
> 100111, 
> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":true,"vmName":"i-2-9-VM","wait":0}}]
>  }
> 2014-05-12 15:58:27,720 DEBUG [agent.transport.Request] 
> (Job-Executor-47:job-80 = [ 8b315af2-714b-4819-a4ca-2cd3e370dbcb ]) Seq 
> 2-417148369: Executing:  { Cmd , MgmtId: 86530476470110, via: 2, Ver: v1, 
> Flags: 100111, 
> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":true,"vmName":"i-2-9-VM","wait":0}}]
>  }
> 2014-05-12 15:58:27,720 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-127:null) Seq 2-417148369: Executing request
> ---
> Confidentiality Notice: The information contained in this e-mail and any 
> accompanying attachment(s)
> is intended only for the use of the intended recipient and may be 
> confidential and/or privileged of
> Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of 
> this communication is
> not the intended recipient, unauthorized use, forwarding, printing,  storing, 
> disclosure or copying
> is strictly prohibited, and may be unlawful.If you have received this 
> communication in error,please
> immediately notify the sender by return e-mail, and delete the original 
> message and all copies from
> your system. Thank you.
> ---



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


Re: 迁移虚拟机失败

2014-05-12 文章 linux...@gmail.com
连接被重置。建议你检查下新增加的计算节点是不是up可用。另外新增加的计算节点的配置和cluster内的其他设备是不是一致呢?

在 2014年5月12日 下午3:01,谢福平 <754282...@qq.com> 写道:
> 当集群中新增一台KVM主机时,我想把之前主机上的虚拟机迁移到新增的主机中,以减少原主机的负载压力。
>  当迁移时失败,报错如下:
>   Unable to migrate due to Unable to read from monitor: Connection reset by 
> peer
>  请问这是什么原因啊



-- 
白清杰 (Born Bai)

北京开源愿景信息技术有限公司

Mail: linux...@gmail.com


  1   2   3   >