secondary storage migrate to new one

2015-07-24 Thread Star Guo
Dear All,

 

   I have built with cloudstack 4.4.3 + kvm. Now, I add a new nfs as
secondary storage, and I want to migrate the snapshotvolumeiso on the old
secondary storage to the new one.

   How can I do that ? Thanks. J

 

Best Regards,

Star Guo



RE: [Feature] Cloudstack KVM with RBD

2015-06-01 Thread Star Guo
Yes, I just find snapshot.backup.rightafter in
./server/src/com/cloud/configuration/Config.java, but no be used in others
.java.
When will it be used in roadmap ?

Best Regards,
Star Guo

=

Il 28/05/2015 03:18, Star Guo ha scritto:
 However, when I do some volume operation, such as create snapshot, 
 create template, template deploy ect, it also take some time to finish 
 because copy data between primary storage and secondary storage.
 So I think that if we support the same rbd as secondary storage, and 
 use ceph COW feature, it may reduce the time and just some seconds. 
 (OpenStack can make glance and cinder as the same rbd)

I think that the issue is related to this, too:
https://issues.apache.org/jira/browse/CLOUDSTACK-4858
(marked as Unresolved)

--
Gerolamo Valcamonica

--
Gerolamo Valcamonica



Re: [Feature] Cloudstack KVM with RBD

2015-05-28 Thread Star Guo
+1 , wait for it.

Best Regards,
Star Guo

===

+2 :)

On 28 May 2015 at 17:21, Andrei Mikhailovsky and...@arhont.com wrote:

 +1 for this
 - Original Message -

 From: Logan Barfield lbarfi...@tqhosting.com
 To: dev@cloudstack.apache.org
 Sent: Thursday, 28 May, 2015 3:48:09 PM
 Subject: Re: [Feature] Cloudstack KVM with RBD

 Hi Star,

 I'll +1 this. I would like to see support for RBD snapshots as well, 
 and maybe have a method to backup the snapshots to secondary 
 storage. Right now for large volumes it can take an hour or more to 
 finish the snapshot.

 I have already discussed this with Wido, and was able to determine 
 that even without using native RBD snapshots we could improve the copy 
 time by saving the snaps as thin volumes instead of full raw files.
 Right now the snapshot code when using RBD specifically converts the 
 volumes to a full raw file, when saving as a qcow2 image would use 
 less space. When restoring a snapshot the code current specifically 
 indicates the source image as being a raw file, but if we change the 
 code to not indicate the source image type qemu-img should 
 automatically detect it. We just need to see if that's the case with 
 all of the supported versions of libvirt/qemu before submitting a pull 
 request.

 Thank You,

 Logan Barfield
 Tranquil Hosting


 On Wed, May 27, 2015 at 9:18 PM, Star Guo st...@ceph.me wrote:
  Hi everyone,
 
  Since I have test cloudstack 4.4.2 + kvm + rbd, deploy an instance 
  is so fast apart from the first deployment because copy template 
  from secondary storage (NFS) to primary storage (RBD). That is no problem.
  However, when I do some volume operation, such as create snapshot, 
  create template, template deploy ect, it also take some time to 
  finish because
 copy
  data between primary storage and secondary storage.
  So I think that if we support the same rbd as secondary storage, and 
  use ceph COW feature, it may reduce the time and just some seconds.
 (OpenStack
  can make glance and cinder as the same rbd)
 
  Best Regards,
  Star Guo
 




-- 

Andrija Panić



Re: delete local storage pool on cloudstack 4.4.3

2015-05-14 Thread Star Guo
Yes. I add a timestamp to the removed column, the local storage.

I run  list storagepools  by cloudmonkey and the local storage is no list. 
However,the Infrastructure on the web UI is no data (just as attachment images).

I rollback the update in mysql db (set NULL to the column), and then 
Infrastructure on the web UI is recover to me.

So, it shows if I want to delete the local storage I just do an update is not 
enough. Thanks for help.

Best Regards,
Star Guo



I'm not sure I follow.

Are you saying if you add a timestamp to the Removed column, the Primary 
Storage no longer appears in the Infrastructure tab? If so, I was thinking 
that's the behavior you desired.

If that's not what you were hoping for, perhaps you can explain in more detail.

Thanks!

On Thu, May 14, 2015 at 12:04 AM, Star Guo st...@ceph.me wrote:

 Dear Mike,

 I update the storage pool remove time with timestamp,but it can not 
 load the whole information in Inforastructure . I rollback the 
 update and it is ok.

 Best Regards,
 Star Guo

 -邮件原件-
 发件人: Mike Tutkowski [mailto:mike.tutkow...@solidfire.com]
 发送时间: 2015年5月13日 5:43
 收件人: dev@cloudstack.apache.org
 主题: Re: delete local storage pool on cloudstack 4.4.3

 Sounds like a bug perhaps, but you could always manually update the 
 cloud.storage_pool table to mark it as removed.

 If you have successfully removed primary storage in the past, you 
 could probably use that as an example row for how to update the 
 applicable row remotely.

 On Tuesday, May 12, 2015, Star Guo st...@ceph.me wrote:

  Hi, everyone,
 
 I run cloudstack 4.4.3 with kvm and I just enable localstorage in
  zone1 by cloudmonkey after zone1 is in running state. Local Storage 
  of KVM host is found.
 And now I disable local storage in zone1 by cloudmonkey, but the 
  local storage even in it. How can I remove local storage ? (Restart 
  MS
 just ok?
  Or
  Agent Service?)
 Thanks a lot!
 
  Best Regards,
  Star Guo
 
 

 --
 *Mike Tutkowski*
 *Senior CloudStack Developer, SolidFire Inc.*
 e: mike.tutkow...@solidfire.com
 o: 303.746.7302
 Advancing the way the world uses the cloud
 http://solidfire.com/solution/overview/?video=play*™*




--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
http://solidfire.com/solution/overview/?video=play*™*


Re: delete local storage pool on cloudstack 4.4.3

2015-05-14 Thread Star Guo
Hi, here is: http://pan.baidu.com/s/1kTxgbor

Thanks!

Best Regards,
Star Guo

==

Hi,

Images are stripped from messages to the CS mailing list.

Could you put the images on Imgur and send out the URLs?

Thanks!
Mike

On Thu, May 14, 2015 at 6:42 PM, Star Guo st...@ceph.me wrote:

 Yes. I add a timestamp to the removed column, the local storage.

 I run  list storagepools  by cloudmonkey and the local storage is no 
 list. However,the Infrastructure on the web UI is no data (just as 
 attachment images).

 I rollback the update in mysql db (set NULL to the column), and then 
 Infrastructure on the web UI is recover to me.

 So, it shows if I want to delete the local storage I just do an update 
 is not enough. Thanks for help.

 Best Regards,
 Star Guo

 

 I'm not sure I follow.

 Are you saying if you add a timestamp to the Removed column, the 
 Primary Storage no longer appears in the Infrastructure tab? If so, I 
 was thinking that's the behavior you desired.

 If that's not what you were hoping for, perhaps you can explain in 
 more detail.

 Thanks!

 On Thu, May 14, 2015 at 12:04 AM, Star Guo st...@ceph.me wrote:

  Dear Mike,
 
  I update the storage pool remove time with timestamp,but it can not 
  load the whole information in Inforastructure . I rollback the 
  update and it is ok.
 
  Best Regards,
  Star Guo
 
  -邮件原件-
  发件人: Mike Tutkowski [mailto:mike.tutkow...@solidfire.com]
  发送时间: 2015年5月13日 5:43
  收件人: dev@cloudstack.apache.org
  主题: Re: delete local storage pool on cloudstack 4.4.3
 
  Sounds like a bug perhaps, but you could always manually update the 
  cloud.storage_pool table to mark it as removed.
 
  If you have successfully removed primary storage in the past, you 
  could probably use that as an example row for how to update the 
  applicable row remotely.
 
  On Tuesday, May 12, 2015, Star Guo st...@ceph.me wrote:
 
   Hi, everyone,
  
  I run cloudstack 4.4.3 with kvm and I just enable localstorage 
   in
   zone1 by cloudmonkey after zone1 is in running state. Local 
   Storage of KVM host is found.
  And now I disable local storage in zone1 by cloudmonkey, but 
   the local storage even in it. How can I remove local storage ? 
   (Restart MS
  just ok?
   Or
   Agent Service?)
  Thanks a lot!
  
   Best Regards,
   Star Guo
  
  
 
  --
  *Mike Tutkowski*
  *Senior CloudStack Developer, SolidFire Inc.*
  e: mike.tutkow...@solidfire.com
  o: 303.746.7302
  Advancing the way the world uses the cloud
  http://solidfire.com/solution/overview/?video=play*™*
 
 


 --
 *Mike Tutkowski*
 *Senior CloudStack Developer, SolidFire Inc.*
 e: mike.tutkow...@solidfire.com
 o: 303.746.7302
 Advancing the way the world uses the cloud
 http://solidfire.com/solution/overview/?video=play*™*




--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
http://solidfire.com/solution/overview/?video=play*™*



Re: delete local storage pool on cloudstack 4.4.3

2015-05-14 Thread Star Guo
Dear Mike,

I update the storage pool remove time with timestamp,but it can not load the 
whole information in Inforastructure . I rollback the update and it is ok.

Best Regards,
Star Guo

-邮件原件-
发件人: Mike Tutkowski [mailto:mike.tutkow...@solidfire.com] 
发送时间: 2015年5月13日 5:43
收件人: dev@cloudstack.apache.org
主题: Re: delete local storage pool on cloudstack 4.4.3

Sounds like a bug perhaps, but you could always manually update the 
cloud.storage_pool table to mark it as removed.

If you have successfully removed primary storage in the past, you could 
probably use that as an example row for how to update the applicable row 
remotely.

On Tuesday, May 12, 2015, Star Guo st...@ceph.me wrote:

 Hi, everyone,

I run cloudstack 4.4.3 with kvm and I just enable localstorage in 
 zone1 by cloudmonkey after zone1 is in running state. Local Storage of 
 KVM host is found.
And now I disable local storage in zone1 by cloudmonkey, but the 
 local storage even in it. How can I remove local storage ? (Restart MS just 
 ok?
 Or
 Agent Service?)
Thanks a lot!

 Best Regards,
 Star Guo



--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
http://solidfire.com/solution/overview/?video=play*™*



delete local storage pool on cloudstack 4.4.3

2015-05-12 Thread Star Guo
Hi, everyone,

   I run cloudstack 4.4.3 with kvm and I just enable localstorage in zone1
by cloudmonkey after zone1 is in running state. Local Storage of KVM host is
found.
   And now I disable local storage in zone1 by cloudmonkey, but the local
storage even in it. How can I remove local storage ? (Restart MS just ok? Or
Agent Service?)
   Thanks a lot!

Best Regards,
Star Guo



Re: CloudStack 4.4.2 with LDAP Authentication

2015-04-13 Thread Star Guo
Thanks a lot ! I will learn ldap deeply :) 

Best Regards,
Star Guo



This link has info on how to control “OldPasswordAllowedPeriod” for AD.
https://github.com/owncloud/core/issues/6662
There is a reason why this overlap of old and new password is required. Because 
if the change is abrupt a user may end up locking his account (like 3 bad 
tries).

Not aware of something like this for open ldap, try googling.

 On 13-Apr-2015, at 3:25 pm, Star Guo st...@ceph.me wrote:

 But I use openldap. Does it relate to openldap ? Can I change 10min to just 
 few second ? Thanks.

 Best Regards,
 Star Guo



 This is a known issue with microsoft AD, the old password is valid for around 
 10 minutes.
 Cloudstack is not caching any password at its end.

 -abhi

 On 13-Apr-2015, at 2:55 pm, Star Guo st...@ceph.me wrote:

 Hi, All,



 Recently, I test LDAP Authentication on CloudStack, and I success 
 search ldap users on CloudStack.

 However, I bond one user of ldap into CloudStack Account and I change 
 the password in openldap side of the user, I can login the user with 
 new or old password !!!

 This may be serous security problem.



 Best Regards,

 Star Guo


 Find out more about ShapeBlue and our range of CloudStack related 
 services

 IaaS Cloud Design  
 Buildhttp://shapeblue.com/iaas-cloud-design-and-build//
 CSForge – rapid IaaS deployment 
 frameworkhttp://shapeblue.com/csforge/
 CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/
 CloudStack Software 
 Engineeringhttp://shapeblue.com/cloudstack-software-engineering/
 CloudStack Infrastructure 
 Supporthttp://shapeblue.com/cloudstack-infrastructure-support/
 CloudStack Bootcamp Training 
 Courseshttp://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.


Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design  Buildhttp://shapeblue.com/iaas-cloud-design-and-build//
CSForge – rapid IaaS deployment frameworkhttp://shapeblue.com/csforge/
CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/
CloudStack Software 
Engineeringhttp://shapeblue.com/cloudstack-software-engineering/
CloudStack Infrastructure 
Supporthttp://shapeblue.com/cloudstack-infrastructure-support/
CloudStack Bootcamp Training Courseshttp://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.



CloudStack 4.4.2 with LDAP Authentication

2015-04-13 Thread Star Guo
Hi, All,

 

Recently, I test LDAP Authentication on CloudStack, and I success search
ldap users on CloudStack.

However, I bond one user of ldap into CloudStack Account and I change the
password in openldap side of the user, I can login the user with new or old
password !!!

This may be serous security problem.

 

Best Regards,

Star Guo



Re: [GitHub] cloudstack pull request: fix yum install require java = 1.7.0 whe...

2015-04-02 Thread Star Guo
@karuturi

After I fix it Requires: java-1.7.0-openjdk , the snapshot picture of
attachment.

Best Regards,
Star Guo

===

Github user ghxandsky commented on the pull request:

https://github.com/apache/cloudstack/pull/108#issuecomment-89127744
  
@karuturi I'm sorry for this commit, it should be Requires:
java-1.7.0-openjdk . I make a mistake. :( 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


Re: add network to VM by assign ip address

2015-03-30 Thread Star Guo
Does anyone focus on this ?

Best Regards,
Star Guo

-邮件原件-
发件人: Star Guo [mailto:st...@ceph.me]
发送时间: 2015年3月27日 17:22
收件人: dev@cloudstack.apache.org
主题: add network to VM by assign ip address

Hi all,

I run cloudstack branch master in simulator. I add network to VM but cannot
assign IP for vNIC.
I just see URL:
http://cloudstack.apache.org/docs/api/apidocs-4.5/root_admin/addNicToVirtual
Machine.html
AddNicToVirtualMachine supports assign ipaddress. Cloud any one who focus on
UI add ipaddress request parameters.
I hope UI support it instead of using CloudMonkey CLI tool but I have little
knowledge of css, js. Thanks.

Best Regards,
Star Guo



Re: add network to VM by assign ip address

2015-03-29 Thread Star Guo
Does anyone focus on this ?

Best Regards,
Star Guo

-邮件原件-
发件人: Star Guo [mailto:st...@ceph.me] 
发送时间: 2015年3月27日 17:22
收件人: dev@cloudstack.apache.org
主题: add network to VM by assign ip address

Hi all,

I run cloudstack branch master in simulator. I add network to VM but cannot
assign IP for vNIC.
I just see URL:
http://cloudstack.apache.org/docs/api/apidocs-4.5/root_admin/addNicToVirtual
Machine.html
AddNicToVirtualMachine supports assign ipaddress. Cloud any one who focus on
UI add ipaddress request parameters.
I hope UI support it instead of using CloudMonkey CLI tool but I have little
knowledge of css, js. Thanks.

Best Regards,
Star Guo



add network to VM by assign ip address

2015-03-27 Thread Star Guo
Hi all,

I run cloudstack branch master in simulator. I add network to VM but cannot
assign IP for vNIC.
I just see URL:
http://cloudstack.apache.org/docs/api/apidocs-4.5/root_admin/addNicToVirtual
Machine.html
AddNicToVirtualMachine supports assign ipaddress. Cloud any one who focus on
UI add ipaddress request parameters.
I hope UI support it instead of using CloudMonkey CLI tool but I have little
knowledge of css, js. Thanks.

Best Regards,
Star Guo



Re: request cloudstack 4.4.3 for hyperv agent

2015-03-27 Thread Star Guo
Hi,

From:
http://jenkins.buildacloud.org/view/4.4/job/cloudstack-4.4-hyperv-agent/

Best Regards,
Star Guo

-邮件原件-
发件人: wangyuyang1...@163.com [mailto:wangyuyang1...@163.com] 
发送时间: 2015年3月27日 20:24
收件人: dev
主题: request cloudstack 4.4.3 for hyperv agent

who has the hyperv agent for cloudstack4.4.3.
please give the agent install lib.or give me the download agent url.
thanks.



wangyuyang1...@163.com



Re: [VOTE]Apache CloudStack 4.4.3 release candidate 4.4-RC20150325T1036

2015-03-26 Thread Star Guo
Hi Rohit,

In my lab, I use CentOS 6 rpm package for Management Service, and CentOS 7 rpm 
package for KVM hypervisor, works well.
I think CentOS 7 MS should more test for production.

Best Regards,
Star Guo

-邮件原件-
发件人: Rohit Yadav [mailto:rohit.ya...@shapeblue.com] 
发送时间: 2015年3月27日 0:22
收件人: dev@cloudstack.apache.org
主题: Re: [VOTE]Apache CloudStack 4.4.3 release candidate 4.4-RC20150325T1036

Hi Star,

I tried to build the centos7 package, but the issue is that 4.4 still depends 
on tomcat6 which is not available by commonly used EL7 repository for CentOS7, 
tomcat6 rpm can be manually installed to make it work so I’ve avoided building 
EL7 packages for all 4.4.x releases (4.4.0, 4.4.1 and 4.4.2) as well. If anyone 
has any suggestions, let me know.

 On 26-Mar-2015, at 8:57 pm, Star Guo st...@ceph.me wrote:

 Hi, all,

 I see that CS 4.4.3 includes rpm packaging scripts for CentOS 7.
 When using linux bridge for advance network, CS will call modifyvlan.sh to 
 prepare vlan for bridge. However, vconfig is replaced by iproute in 
 CentOS 7.

 These scripts use vconfig to set vlan:
 https://github.com/apache/cloudstack/blob/4.4/scripts/vm/network/vnet/
 modifyvlan.sh

 So, This commit as bellow should be backport to branch 4.4:
 https://github.com/apache/cloudstack/commit/b37ee25359b724613e9ce5f934
 23d99f76c2fe5e
 https://github.com/apache/cloudstack/commit/290938b08ed7b6a89070f5415b
 db1be985717dc2

 Best Regards,
 Star Guo

 -邮件原件-
 发件人: Nux! [mailto:n...@li.nux.ro]
 发送时间: 2015年3月26日 18:00
 收件人: dev@cloudstack.apache.org
 主题: Re: [VOTE]Apache CloudStack 4.4.3 release candidate 
 4.4-RC20150325T1036

 Make that +1 binding. :)

 --
 Sent from the Delta quadrant using Borg technology!

 Nux!
 www.nux.ro

 - Original Message -
 From: Nux! n...@li.nux.ro
 To: dev@cloudstack.apache.org
 Sent: Wednesday, 25 March, 2015 13:21:18
 Subject: Re: [VOTE]Apache CloudStack 4.4.3 release candidate
 4.4-RC20150325T1036

 +1 from me as well.

 Tested with Adv + SG zone, basic operations seem to run just fine.

 Lucian

 --
 Sent from the Delta quadrant using Borg technology!

 Nux!
 www.nux.ro

 - Original Message -
 From: Rohit Yadav rohit.ya...@shapeblue.com
 To: dev@cloudstack.apache.org
 Sent: Wednesday, 25 March, 2015 09:59:34
 Subject: Re: [VOTE]Apache CloudStack 4.4.3 release candidate
 4.4-RC20150325T1036

 +1 (binding) (this is apparently the same build I tested against :)

 In case you need to test using a ready-made repository:

 CentOS repo:
 http://packages.shapeblue.com/cloudstack/testing/centos/4.4/

 Debian repo:
 http://packages.shapeblue.com/cloudstack/testing/debian/4.4/

 Deployed basic zone, systemvms came up. Register template worked.
 Basic vm lifecycles worked - start, stop, reboot, delete, expunge.
 VR operations. SG rules.

 On 25-Mar-2015, at 3:19 pm, Daan Hoogland daan.hoogl...@gmail.com wrote:

 It may have been cosmetical but I decided to do a re-run of the rc 
 creation script. The centos63 packaging was broken due to some 
 security fixes and is fixed in this RC.

 I've created a 4.4.3 release, with the following artifacts up for a vote:

 Git Branch and Commit SH:
 https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=shortlog
 ;
 h=refs/heads/4.4-RC20150325T1036
 Commit: 9e97030e7942f295e941c7a197241f72cc599bfa

 List of changes:
 https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=shortlog
 ;
 h=refs/tags/4.4.3

 Source release (checksums and signatures are available at the same
 location):
 https://dist.apache.org/repos/dist/dev/cloudstack/4.4.3

 PGP release keys (signed using AA4736F3):
 https://dist.apache.org/repos/dist/release/cloudstack/KEYS

 Vote will be open for 72 hours.

 For sanity in tallying the vote, can PMC members please be sure to 
 indicate (binding) with their vote?

 [ ] +1  approve
 [ ] +0  no opinion
 [ ] -1  disapprove (and reason why)

 On Wed, Mar 25, 2015 at 8:59 AM, Daan Hoogland daan.hoogl...@gmail.com 
 wrote:
 Rohit (et. al.),

 If we vote this in this way I will of course release but baking a 
 new rc is not the effort. My wish would be to feel ashamed of not 
 monitoring the jenkins jobs as a community and bake a new rc.

 regards,
 --
 Daan

 Regards,
 Rohit Yadav
 Software Architect, ShapeBlue
 M. +91 88 262 30892 | rohit.ya...@shapeblue.com
 Blog: bhaisaab.org | Twitter: @_bhaisaab



 Find out more about ShapeBlue and our range of CloudStack related 
 services

 IaaS Cloud Design 
 Buildhttp://shapeblue.com/iaas-cloud-design-and-build//
 CSForge – rapid IaaS deployment
 frameworkhttp://shapeblue.com/csforge/
 CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/
 CloudStack Software
 Engineeringhttp://shapeblue.com/cloudstack-software-engineering/
 CloudStack Infrastructure
 Supporthttp://shapeblue.com/cloudstack-infrastructure-support/
 CloudStack Bootcamp Training
 Courseshttp://shapeblue.com/cloudstack-training/

 This email and any attachments to it may be confidential and are 
 intended

Re: [VOTE]Apache CloudStack 4.4.3 release candidate 4.4-RC20150325T1036

2015-03-26 Thread Star Guo
Hi, all, 

I see that CS 4.4.3 includes rpm packaging scripts for CentOS 7.
When using linux bridge for advance network, CS will call modifyvlan.sh to 
prepare vlan for bridge. However, vconfig is replaced by iproute in CentOS 
7.

These scripts use vconfig to set vlan: 
https://github.com/apache/cloudstack/blob/4.4/scripts/vm/network/vnet/modifyvlan.sh

So, This commit as bellow should be backport to branch 4.4:
https://github.com/apache/cloudstack/commit/b37ee25359b724613e9ce5f93423d99f76c2fe5e
https://github.com/apache/cloudstack/commit/290938b08ed7b6a89070f5415bdb1be985717dc2

Best Regards,
Star Guo

-邮件原件-
发件人: Nux! [mailto:n...@li.nux.ro] 
发送时间: 2015年3月26日 18:00
收件人: dev@cloudstack.apache.org
主题: Re: [VOTE]Apache CloudStack 4.4.3 release candidate 4.4-RC20150325T1036

Make that +1 binding. :)

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

- Original Message -
 From: Nux! n...@li.nux.ro
 To: dev@cloudstack.apache.org
 Sent: Wednesday, 25 March, 2015 13:21:18
 Subject: Re: [VOTE]Apache CloudStack 4.4.3 release candidate 
 4.4-RC20150325T1036

 +1 from me as well.
 
 Tested with Adv + SG zone, basic operations seem to run just fine.
 
 Lucian
 
 --
 Sent from the Delta quadrant using Borg technology!
 
 Nux!
 www.nux.ro
 
 - Original Message -
 From: Rohit Yadav rohit.ya...@shapeblue.com
 To: dev@cloudstack.apache.org
 Sent: Wednesday, 25 March, 2015 09:59:34
 Subject: Re: [VOTE]Apache CloudStack 4.4.3 release candidate 
 4.4-RC20150325T1036
 
 +1 (binding) (this is apparently the same build I tested against :)
 
 In case you need to test using a ready-made repository:
 
 CentOS repo:
 http://packages.shapeblue.com/cloudstack/testing/centos/4.4/
 
 Debian repo:
 http://packages.shapeblue.com/cloudstack/testing/debian/4.4/
 
 Deployed basic zone, systemvms came up. Register template worked.
 Basic vm lifecycles worked - start, stop, reboot, delete, expunge.
 VR operations. SG rules.
 
 On 25-Mar-2015, at 3:19 pm, Daan Hoogland daan.hoogl...@gmail.com wrote:

 It may have been cosmetical but I decided to do a re-run of the rc 
 creation script. The centos63 packaging was broken due to some 
 security fixes and is fixed in this RC.

 I've created a 4.4.3 release, with the following artifacts up for a vote:

 Git Branch and Commit SH:
 https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=shortlog;
 h=refs/heads/4.4-RC20150325T1036
 Commit: 9e97030e7942f295e941c7a197241f72cc599bfa

 List of changes:
 https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=shortlog;
 h=refs/tags/4.4.3

 Source release (checksums and signatures are available at the same
 location):
 https://dist.apache.org/repos/dist/dev/cloudstack/4.4.3

 PGP release keys (signed using AA4736F3):
 https://dist.apache.org/repos/dist/release/cloudstack/KEYS

 Vote will be open for 72 hours.

 For sanity in tallying the vote, can PMC members please be sure to 
 indicate (binding) with their vote?

 [ ] +1  approve
 [ ] +0  no opinion
 [ ] -1  disapprove (and reason why)

 On Wed, Mar 25, 2015 at 8:59 AM, Daan Hoogland daan.hoogl...@gmail.com 
 wrote:
 Rohit (et. al.),

 If we vote this in this way I will of course release but baking a 
 new rc is not the effort. My wish would be to feel ashamed of not 
 monitoring the jenkins jobs as a community and bake a new rc.

 regards,
 --
 Daan
 
 Regards,
 Rohit Yadav
 Software Architect, ShapeBlue
 M. +91 88 262 30892 | rohit.ya...@shapeblue.com
 Blog: bhaisaab.org | Twitter: @_bhaisaab
 
 
 
 Find out more about ShapeBlue and our range of CloudStack related 
 services
 
 IaaS Cloud Design  
 Buildhttp://shapeblue.com/iaas-cloud-design-and-build//
 CSForge – rapid IaaS deployment 
 frameworkhttp://shapeblue.com/csforge/
 CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/
 CloudStack Software
 Engineeringhttp://shapeblue.com/cloudstack-software-engineering/
 CloudStack Infrastructure
 Supporthttp://shapeblue.com/cloudstack-infrastructure-support/
 CloudStack Bootcamp Training 
 Courseshttp://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

Re: cloudstack 4.4.2 + kvm resize data disk fail on ceph/rbd

2015-03-20 Thread Star Guo
Yes, I have found the difference between branch 4.4 and branch master:

 

4.4: 
https://github.com/apache/cloudstack/blob/4.4/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java

…

1844 try {

1845 KVMStoragePool pool = 
_storagePoolMgr.getStoragePool(spool.getType(), spool.getUuid());

1846 KVMPhysicalDisk vol = pool.getPhysicalDisk(volid);

1847 String path = vol.getPath();

1848 String type = getResizeScriptType(pool, vol);

1849

1850 if (type == null) {

1851 return new ResizeVolumeAnswer(cmd, false, Unsupported 
volume format: pool type ' + pool.getType() +  ' and volume format ' + 
vol.getFormat() + ');1852 } else if (type.equals(QCOW2)  
shrinkOk) {

1853 return new ResizeVolumeAnswer(cmd, false, Unable to 
shrink volumes of type  + type);

1854 }

1855

1856 s_logger.debug(Resizing volume:  + path + , + currentSize 
+ , + newSize + , + type + , + vmInsta nceName + , + shrinkOk);1857 

1858 /* libvirt doesn't support resizing (C)LVM devices, and 
corrupts QCOW2 in some scenarios, so we have to do  these via Bash script 
*/1859 if (pool.getType() != StoragePoolType.CLVM  
vol.getFormat() != PhysicalDiskFormat.QCOW2) {

1860 s_logger.debug(Volume  + path +   can be resized by 
libvirt. Asking libvirt to resize the volume.) ;  

1861 try {

1862 Connect conn = LibvirtConnection.getConnection();

1863 StorageVol v = conn.storageVolLookupByPath(path);

1864 int flags = 0;

1865 

1866 if (conn.getLibVirVersion()  1001000  
vol.getFormat() == PhysicalDiskFormat.RAW) {

1867 flags = 1;

1868 }

1869 if (shrinkOk) {

1870 flags = 4;

1871 }

…

 

 

 

Master: 
https://github.com/apache/cloudstack/blob/master/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java

…

1863 try {

1864 KVMStoragePool pool = 
_storagePoolMgr.getStoragePool(spool.getType(), spool.getUuid());

1865 KVMPhysicalDisk vol = pool.getPhysicalDisk(volid);

1866 String path = vol.getPath();

1867 String type = getResizeScriptType(pool, vol);

1868 

1869 if (pool.getType() != StoragePoolType.RBD) {

1870 if (type.equals(QCOW2)  shrinkOk) {

1871 return new ResizeVolumeAnswer(cmd, false, Unable to 
shrink volumes of type  + type);

1872 }

1873 } else {

1874 s_logger.debug(Volume  + path +  is on a RBD storage 
pool. No need to query for additional information.);

1875 }

1876 

1877 s_logger.debug(Resizing volume:  + path + , + currentSize 
+ , + newSize + , + type + , + vmInsta nceName + , + shrinkOk);

1878 

1879 /* libvirt doesn't support resizing (C)LVM devices, and 
corrupts QCOW2 in some scenarios, so we have to do  these via Bash script */

1880 if (pool.getType() != StoragePoolType.CLVM  vol.getFormat() 
!= PhysicalDiskFormat.QCOW2) {

1881 s_logger.debug(Volume  + path +   can be resized by 
libvirt. Asking libvirt to resize the volume.) ;

1882 try {

1883 Connect conn = LibvirtConnection.getConnection();

1884 StorageVol v = conn.storageVolLookupByPath(path);

1885 int flags = 0;

1886 

1887 if (conn.getLibVirVersion()  1001000  
vol.getFormat() == PhysicalDiskFormat.RAW  pool.getType() != 
StoragePoolType.RBD) {

1888 flags = 1;

1889 }

…

 

And then , I check the scripts file: scripts/storage/qcow2/resizevolume.sh ., 
backport the feature to my source code. After complie, cover the 
cloud-plugin-hypervisor-kvm-4.4.2.jar to MS and kvm agent, then it works.

 

BTW, in Master the method “private String getResizeScriptType(KVMStoragePool 
pool, KVMPhysicalDisk vol)”  in LibvirtComputingResource.java should be return 
null at the end, and branch 4.4 fix it.

 

Best Regards,

Star Guo

 

-邮件原件-
发件人: Marcus [mailto:shadow...@gmail.com] 
发送时间: 2015年3月20日 13:52
收件人: dev@cloudstack.apache.org
主题: Re: cloudstack 4.4.2 + kvm resize data disk fail on ceph/rbd

 

It needs to be looked at. Awhile back there was a switch made that began to 
leverage libvirt to do volume resizes, but everyone complained about corruption 
for qcow2, so it was backed out to use the virsh scripts from before. It seems 
libvirt was resizing the 'libvirt volume' but not the block device in qemu. 
I've looked at the code both before and after this change, and it looks like 
RBD would have thrown

cloudstack 4.4.2 + kvm resize data disk fail on ceph/rbd

2015-03-19 Thread Star Guo
Hi, 

 

My lab is cloudstack 4.4.2 + kvm + ceph/rbd. I add a volume and attach it to
a VM. When I resize the volume, the ui throw fail.

And I catch the log in MS as bellow:

 

2015-03-20 12:48:59,145 DEBUG [c.c.a.t.Request]
(AgentManager-Handler-9:null) Seq 7-81346268269410213: Processing:  { Ans: ,
MgmtId: 345052394370, via: 7, Ver: v1, Flags: 10,
[{com.cloud.agent.api.storage.ResizeVolumeAnswer:{newSize:0,result:fal
se,details:Unsupported volume format: pool type 'RBD' and volume format
'raw',wait:0}}] }

 

Does not support RBD/raw resize now ?

 

Best Regards,

Star Guo



Re: [DISCUSS] Support Docker as a hypervisor in CloudStack ( CloudStack / CLOUDSTACK-8205)

2015-03-18 Thread Star Guo
Now, CloudStack supports running CoreOS on XS, KVM, Hyper-V, VMware, bellow as:
https://coreos.com/docs/running-coreos/platforms/cloudstack/
http://dl.openvm.eu/cloudstack/coreos/x86_64/

Best Regards,
Star Guo

-邮件原件-
发件人: Nux! [mailto:n...@li.nux.ro] 
发送时间: 2015年3月19日 8:51
收件人: dev@cloudstack.apache.org
主题: Re: [DISCUSS] Support Docker as a hypervisor in CloudStack ( CloudStack / 
CLOUDSTACK-8205)

+1 Pierre and Sebastien.
We should make sure CoreOS  co run fine on ACS, then let people do their thing 
using specific tools.

Plus I wouldn't like Docker to run straight on shared bare metal servers 
(hypervisors), they're not as secure as VMs.

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

- Original Message -
 From: Pierre-Luc Dion pd...@cloudops.com
 To: dev@cloudstack.apache.org
 Sent: Thursday, 19 March, 2015 00:39:43
 Subject: Re: [DISCUSS] Support Docker as a hypervisor in CloudStack ( 
 CloudStack / CLOUDSTACK-8205)

 I really like Sebastien concept of Container as workload because it 
 could be used into an existing cloud without introducing a new 
 hypervisor, also, it might be possible to reuse current networking features 
 of cloudstack.
 
 
 
 
 
 
 On Wed, Mar 18, 2015 at 6:35 AM, Sebastien Goasguen run...@gmail.com
 wrote:
 

  On Mar 18, 2015, at 10:43 AM, Rohit Yadav 
  rohit.ya...@shapeblue.com
 wrote:
 
  Hi Diwas,
 
  The idea is to support Docker in ACS, much like LXC since they are 
  similar (containers). This of course would have some limitations 
  wrt supporting various network models and disk operations such as 
  taking snapshot and migrations across hosts.
 
  ((Btw, you may also consider supporting Bhyve (VMM from FreeBSD
  community) in CloudStack using libvirt which is another interesting
  project.))
 
  Irrespective of what base OS (RancherOS, CoreOS or Atomic etc) will 
  be, assume it will be at least Linux 3.16. Assume using barebone 
  technologies instead of relying on other orchestration or high 
  level systems to control Docker images unless what you're willing 
  to use are stable enough.
 
  While it's an open discussion on what the scope or the best way to 
  do it; IMO, the basic things I'm looking for are:
 
  - Support Basic networking (supporting at least Linux bridge or 
  maybe OVS - I'm not sure the best way to do it)
  - SystemVMs can be Docker based or VMs running on KVM
  - Local or NFS based shared storage. Support basic operations such 
  as - upload/register template, create VMs using template.
  - Console proxy support (if possible).
 
  Since most players in the docker arena are still figuring out best 
  way to deal with networking and storage, the expectation of the 
  work is limited to producing an experimental hypervisor plugin.
 
  For implementation details, read CloudStack 101 on the wiki, see 
  how plugins are written and follow the LXC plugin implementation or 
  see this
  commit:
 
 
 https://github.com/apache/cloudstack/commit/c27c69438ba23386bac7ae4dd
 651b1d809811157
 

 I understand why we you would like to do this, however I see Docker 
 as a ‘workload’. It is easy to setup in a VM or bare metal.
 The Docker ecosystem is booming and there are a ton of Docker 
 “orchestrator” being worked on. It seems to me it will be very 
 difficult to keep up development of a proper docker management service in 
 CloudStack.

 Personally, I’d rather see us put efforts in properly supporting all 
 the new Docker customized OS (making cloudstack templates for them), 
 fixing our cloudinit support and extending our API to create clusters of 
 machines.
 That way it will be easy for CloudStack users to start a Docker 
 cluster and use their docker container orchestrator of choice.

 Very much like if you want to deploy Mesos or the like in CloudStack, 
 Docker orchestrators are really workloads in our clouds.

 Our strategy for Docker support should be to make it extremely easy 
 for folks to use Docker in CloudStack VMs. Do things like Docker 
 machine support, Docker swarm support etc….and if we want a tighter 
 integration we should look at the AWS ECS API and the GCE container 
 engine API and extend our EC2/GCE bridges to support them.

 my 2 cts.

 
  On Monday 16 March 2015 02:53 AM, Diwas Joshi wrote:
  hello, I would like to work on the following issue for
  https://issues.apache.org/jira/browse/CLOUDSTACK-8205 for google
 summer of
  code 2015. It would be really helpful if someone can tell me more 
  about
 the
  idea and provide guidelines to get started with this.
 
  regards
 
 
  --
  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 
  frameworkhttp

Re: [GitHub] cloudstack pull request: CLOUDSTACK-7951: Limit amount of memory u...

2015-03-12 Thread Star Guo
Hi, all,

Also add CLOUDSTACK-7951 fix to centos7.

Best Regards,
Star Guo

-邮件原件-
发件人: ghxandsky [mailto:g...@git.apache.org] 
发送时间: 2015年3月11日 17:55
收件人: dev@cloudstack.apache.org
主题: [GitHub] cloudstack pull request: CLOUDSTACK-7951: Limit amount of
memory u...

GitHub user ghxandsky opened a pull request:

https://github.com/apache/cloudstack/pull/111

CLOUDSTACK-7951: Limit amount of memory used by cloudstack-agent jsvc

According https://issues.apache.org/jira/browse/CLOUDSTACK-7951, and
https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=207d465, also fix
to centos7.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/ghxandsky/cloudstack master

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/cloudstack/pull/111.patch

To close this pull request, make a commit to your master/trunk branch with
(at least) the following in the commit message:

This closes #111


commit 0b01343a1af24441d338bc04492de1dce5d34b0a
Author: Star Guo ghxand...@gmail.com
Date:   2015-03-11T09:50:39Z

CLOUDSTACK-7951: Limit amount of memory used by cloudstack-agent jsvc




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---



Add virtual disk to kvm guest vm but the console fail

2015-03-10 Thread Star Guo
Hi,

I hope to get some advise to debug this issus. Thanks :) .

Best Regards,
Star Guo

===

Hi, Dev Team

I play with cloudstack 4.4.2 + centos 7 kvm. It is ok that I deploy an
instance to kvm host, and the console is ok too. 
When I directly add a vdisk via virsh command to this instance, it is ok and
the disk is recongnised but the console in CS UI is fail.
After I remove the vdisk via virsh command from this instance, the console
in CS UI is ok.
How to debug this issue ? Thanks.

My Env:

virsh # pool-list --all
 Name State  Autostart 
---
 797914bf-50ae-328e-9530-cf379313b216 active no
 bcf4214b-059d-4017-861c-17d6d9306e2b active no
 lvm-pool-sdb active no

virsh # pool-dumpxml lvm-pool-sdb
pool type='logical'
  namelvm-pool-sdb/name
  uuid229dee22-af67-4a11-be61-a664676afdce/uuid
  capacity unit='bytes'1999839952896/capacity
  allocation unit='bytes'10737418240/allocation
  available unit='bytes'1989102534656/available
  source
device path='/dev/sdb1'/
namelvm-pool-sdb/name
format type='lvm2'/
  /source
  target
path/dev/lvm-pool-sdb/path
permissions
  mode0755/mode
  owner-1/owner
  group-1/group
/permissions
  /target
/pool

virsh # vol-list lvm-pool-sdb
 Name Path

--
 vol1 /dev/lvm-pool-sdb/vol1

I attache disk to i-3-132-VM:
virsh attach-disk --domain i-3-132-VM --source /dev/lvm-pool-sdb/vol1
--target vdb --targetbus virtio

And then I open the console of this instance but fail with notice: Server
Internal Error .

Best Regards,
Star Guo



Re: Compile CloudStack 4.4.2

2015-03-09 Thread Star Guo
Thanks, I run as bellow:

 mvn install:install-file -Dfile=libvirt-0.5.1.jar 
-DpomFile=libvirt-0.5.1.pom.xml -DgroupId=org.libvirt -DartifactId=libvirt 
-Dversion=0.5.1 -Dpackaging=jar -DgeneratePom=true

And Compile is OK. My Maven version is  Apache Maven 3.0.5 .

Best Regards,
Star Guo

-邮件原件-
发件人: Rajani Karuturi [mailto:raj...@apache.org] 
发送时间: 2015年3月9日 14:42
收件人: dev@cloudstack.apache.org
主题: Re: Compile CloudStack 4.4.2

can you manually download the jar and pom, install to mvn repo and try?

mvn install:install-file -Dfile=jar/location/libvirt-0.5.1.jar
-DpomFile=pom/location/pom.xml -DgroupId=org.libvirt -DartifactId=libvirt
-Dversion=0.5.1 -Dpackaging=jar -DgeneratePom=true


http://maven.apache.org/plugins/maven-install-plugin/examples/specific-local-repo.html


~Rajani

On Mon, Mar 9, 2015 at 10:21 AM, Star Guo st...@ceph.me wrote:

 Hi, Laszlo,

 Thanks for your reply. However, follow this commit, I even not solve 
 this issue.
 
 [INFO]
 [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ 
 cloud-plugin-hypervisor-xen --- [INFO] Building jar:
 /root/test/gci-cloud-apple-2015-03-06/plugins/hypervisors/xen/target/c
 loud-plugin-hypervisor-xen-4.4.3-SNAPSHOT.jar
 [INFO]
 [INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) 
 @ cloud-plugin-hypervisor-xen --- [INFO] [INFO]
 --
 -- [INFO] Building Apache CloudStack Plugin - Hypervisor KVM 
 4.4.3-SNAPSHOT [INFO]
 --
 --
 Downloading:
 http://ceph.com/maven/org/libvirt/libvirt/0.5.1/libvirt-0.5.1.pom
 
 Also hungs.

 Best Regards,
 Star Guo

 -邮件原件-
 发件人: Laszlo Hornyak [mailto:laszlo.horn...@gmail.com]
 发送时间: 2015年3月7日 0:50
 收件人: dev@cloudstack.apache.org
 主题: Re: Compile CloudStack 4.4.2

 Star Guo, could you check if this solves your problem?
 https://github.com/apache/cloudstack/pull/100

 Thank you,
 Laszlo

 On Fri, Mar 6, 2015 at 6:56 AM, Star Guo st...@ceph.me wrote:

  Hi,
 
  When I compile CloudStack 4.4.2 on CentOS 6.6 x86_64, and the log 
  show as below and waiting for long time:
 
  
  ##
  #
  [INFO]
  [INFO] --- maven-jar-plugin:2.5:jar (default-jar) @ 
  cloud-plugin-hypervisor-xenserver --- [INFO] Building jar:
 
  /root/.hudson/jobs/cloudstack-master/workspace/plugins/hypervisors/x
  en server 
  /target/cloud-plugin-hypervisor-xenserver-4.6.0-SNAPSHOT.jar
  [INFO]
  [INFO] --- maven-site-plugin:3.3:attach-descriptor 
  (attach-descriptor) @ cloud-plugin-hypervisor-xenserver --- [INFO]
 
  [INFO]
  
  --
  -- [INFO] Building Apache CloudStack Plugin - Hypervisor KVM 
  4.6.0-SNAPSHOT [INFO]
  
  --
  --
  Downloading:
  http://libvirt.org/maven2/joda-time/joda-time/maven-metadata.xml
  Mar 06, 2015 1:47:47 PM
 
  org.apache.maven.wagon.providers.http.httpclient.impl.client.Default
  Re
  questD
  irector tryExecute
  INFO: I/O exception (java.net.SocketException) caught when 
  processing
  request: Connection reset
  Mar 06, 2015 1:47:47 PM
 
  org.apache.maven.wagon.providers.http.httpclient.impl.client.Default
  Re
  questD
  irector tryExecute
  INFO: Retrying request
 
  Downloading:
  http://libvirt.org/maven2/org/libvirt/libvirt/0.5.1/libvirt-0.5.1.po
  m
 
  Downloading:
  http://ceph.com/maven/org/libvirt/libvirt/0.5.1/libvirt-0.5.1.pom
 
  
  ##
  #
 
  I find
  http://libvirt.org/maven2/org/libvirt/libvirt/0.5.1/libvirt-0.5.1.po
  m is not found, and 
  http://libvirt.org/maven2/org/libvirt/libvirt/0.5.1/
  is OK.
  And 
  http://ceph.com/maven/org/libvirt/libvirt/0.5.1/libvirt-0.5.1.pom
  is not found.
 
  How to fix this problem ? Thanks.
 
  Best Regards
  Star Guo
 
 
 


 --

 EOF





Add vdisk to kvm guest vm but console fail

2015-03-09 Thread Star Guo
Hi, Dev Team

I play with cloudstack 4.4.2 + centos 7 kvm. It is ok that I deploy an
instance to kvm host, and the console is ok too. 

When I directly add a vdisk via virsh command to this instance, it is ok and
the disk is recongnised but the console in CS UI is fail.

After I remove the vdisk via virsh command from this instance, the console
in CS UI is ok.

How to debug this issue ? Thanks.

My Env:

virsh # pool-list --all
 Name State  Autostart 
---
 797914bf-50ae-328e-9530-cf379313b216 active no
 bcf4214b-059d-4017-861c-17d6d9306e2b active no
 lvm-pool-sdb active no

virsh # pool-dumpxml lvm-pool-sdb
pool type='logical'
  namelvm-pool-sdb/name
  uuid229dee22-af67-4a11-be61-a664676afdce/uuid
  capacity unit='bytes'1999839952896/capacity
  allocation unit='bytes'10737418240/allocation
  available unit='bytes'1989102534656/available
  source
device path='/dev/sdb1'/
namelvm-pool-sdb/name
format type='lvm2'/
  /source
  target
path/dev/lvm-pool-sdb/path
permissions
  mode0755/mode
  owner-1/owner
  group-1/group
/permissions
  /target
/pool

virsh # vol-list lvm-pool-sdb
 Name Path

--
 vol1 /dev/lvm-pool-sdb/vol1

I attache disk to i-3-132-VM:
virsh attach-disk --domain i-3-132-VM --source /dev/lvm-pool-sdb/vol1
--target vdb --targetbus virtio

And then I open the console of this instance but fail with notice: Server
Internal Error .

Best Regards,
Star Guo



Re: Compile CloudStack 4.4.2

2015-03-08 Thread Star Guo
Hi, Laszlo,

Thanks for your reply. However, follow this commit, I even not solve this 
issue. 

[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ cloud-plugin-hypervisor-xen 
---
[INFO] Building jar: 
/root/test/gci-cloud-apple-2015-03-06/plugins/hypervisors/xen/target/cloud-plugin-hypervisor-xen-4.4.3-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ 
cloud-plugin-hypervisor-xen ---
[INFO] 
[INFO] 
[INFO] Building Apache CloudStack Plugin - Hypervisor KVM 4.4.3-SNAPSHOT
[INFO] 
Downloading: http://ceph.com/maven/org/libvirt/libvirt/0.5.1/libvirt-0.5.1.pom

Also hungs.

Best Regards,
Star Guo

-邮件原件-
发件人: Laszlo Hornyak [mailto:laszlo.horn...@gmail.com] 
发送时间: 2015年3月7日 0:50
收件人: dev@cloudstack.apache.org
主题: Re: Compile CloudStack 4.4.2

Star Guo, could you check if this solves your problem?
https://github.com/apache/cloudstack/pull/100

Thank you,
Laszlo

On Fri, Mar 6, 2015 at 6:56 AM, Star Guo st...@ceph.me wrote:

 Hi,

 When I compile CloudStack 4.4.2 on CentOS 6.6 x86_64, and the log show 
 as below and waiting for long time:

 ##
 #
 [INFO]
 [INFO] --- maven-jar-plugin:2.5:jar (default-jar) @ 
 cloud-plugin-hypervisor-xenserver --- [INFO] Building jar:

 /root/.hudson/jobs/cloudstack-master/workspace/plugins/hypervisors/xen
 server /target/cloud-plugin-hypervisor-xenserver-4.6.0-SNAPSHOT.jar
 [INFO]
 [INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) 
 @ cloud-plugin-hypervisor-xenserver --- [INFO]

 [INFO]
 --
 -- [INFO] Building Apache CloudStack Plugin - Hypervisor KVM 
 4.6.0-SNAPSHOT [INFO]
 --
 --
 Downloading:
 http://libvirt.org/maven2/joda-time/joda-time/maven-metadata.xml
 Mar 06, 2015 1:47:47 PM

 org.apache.maven.wagon.providers.http.httpclient.impl.client.DefaultRe
 questD
 irector tryExecute
 INFO: I/O exception (java.net.SocketException) caught when processing
 request: Connection reset
 Mar 06, 2015 1:47:47 PM

 org.apache.maven.wagon.providers.http.httpclient.impl.client.DefaultRe
 questD
 irector tryExecute
 INFO: Retrying request

 Downloading:
 http://libvirt.org/maven2/org/libvirt/libvirt/0.5.1/libvirt-0.5.1.pom

 Downloading:
 http://ceph.com/maven/org/libvirt/libvirt/0.5.1/libvirt-0.5.1.pom

 ##
 #

 I find
 http://libvirt.org/maven2/org/libvirt/libvirt/0.5.1/libvirt-0.5.1.pom
 is not found, and http://libvirt.org/maven2/org/libvirt/libvirt/0.5.1/ 
 is OK.
 And http://ceph.com/maven/org/libvirt/libvirt/0.5.1/libvirt-0.5.1.pom 
 is not found.

 How to fix this problem ? Thanks.

 Best Regards
 Star Guo





-- 

EOF



add vdisk to kvm guest vm but console fail

2015-03-08 Thread Star Guo
Hi, Dev Team

 

I play with cloudstack 4.4.2 + centos 7 kvm. It is ok that I deploy an
instance to kvm host, and the console is ok too. 

When I directly add a vdisk via virsh command to this instance, it is ok and
the disk is recongnised but the console in CS UI is fail.

After I remove the vdisk via virsh command from this instance, the console
in CS UI is ok.

How to debug this issue ? Thanks.

 

Best Regards,

Star Guo



About Snapshot Operation on KVM

2015-03-05 Thread Star Guo
Hello,

I just build a lab with CloudStack 4.4.2 + CentOS 6.6 KVM + Ceph/RBD 0.80.8.
I deploy an instance on RBD and I create the ROOT volume snapshots. When
delete a snapshot the UI show OK, but the snapshot of the volume in the RBD
pool is still exist.
And I find the code in
com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java: 
.
@Override
public Answer deleteSnapshot(DeleteCommand cmd) {
return new Answer(cmd);
}
.
deleteSnapshot() does not be implememented. And I also find the code:
...
@Override
public Answer createTemplateFromSnapshot(CopyCommand cmd) {
return null;  //To change body of implemented methods use File |
Settings | File Templates.
}
...
So does createTenokateFromSnapshot(). I just look for it in MASTER branch
but not do that yet. Will CloudStack Dev Team plan to do that ? Thanks for
reply .

Best Regards,
Star Guo



Re: About Snapshot Operation on KVM

2015-03-05 Thread Star Guo
Hi, Wido,

I open jira issue: https://issues.apache.org/jira/browse/CLOUDSTACK-8302

Best Regards,
Star Guo

-邮件原件-
发件人: Wido den Hollander [mailto:w...@widodh.nl] 
发送时间: 2015年3月5日 20:55
收件人: dev@cloudstack.apache.org
主题: Re: About Snapshot Operation on KVM

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



On 03/05/2015 01:33 PM, Star Guo wrote:
 Hello,
 
 I just build a lab with CloudStack 4.4.2 + CentOS 6.6 KVM + Ceph/RBD 
 0.80.8. I deploy an instance on RBD and I create the ROOT volume 
 snapshots. When delete a snapshot the UI show OK, but the snapshot of 
 the volume in the RBD pool is still exist. And I find the code in
 com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java: . 
 @Override public Answer deleteSnapshot(DeleteCommand cmd) { return new 
 Answer(cmd); } . deleteSnapshot() does not be implememented.
 And I also find the code: ... @Override public Answer 
 createTemplateFromSnapshot(CopyCommand cmd) { return null;  //To 
 change body of implemented methods use File | Settings | File 
 Templates. } ... So does createTenokateFromSnapshot(). I just look for 
 it in MASTER branch but not do that yet. Will CloudStack Dev Team plan 
 to do that ? Thanks for reply .

Hmm, I haven't looked at that yet.

Could you open a Jira issue for this? I'll probably won't be able to work on
this any time soon, but this should be fixed.

Wido

 
 Best Regards, Star Guo
 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQIcBAEBAgAGBQJU+FISAAoJEAGbWC3bPspCvI8QALGY9T46JS3BDyCNtzWJcYDW
FUisB2b6BNbxDm+TGbZahgR3RosQYFV4OYuL4U2WR2mg07YLrPZVlR6EnCEQnJXA
k0GY6kOBAxnfiLKHaRvTw8vriI69KN27tiyxtXR7/iCPcQjAAh5jxSWupM2AnmZX
20z6nYFmmMj4My13fF1dQgWPUreUX7cG5eOrybqhy0jxcCZ1Z6Z9gDIS1B6YEndT
acTfUNAEytJBthruAITl878Rf47Uypooq8H5ySgB+fsJSOF3HpgX8ZdjRyv9EEH9
07VDDLn99gX8FLrA7IKwun2Y4GozVmlNCxJMJkTjDUeDaMRKCrAmsRHrJpYzltiT
H2R4HILFIiSyFukPQTFddL0aJ3QJRz6zRnS0x8WIp6LFkAbwIZCz0vh6ciikeSZF
Rebtahoq6YifQ1u+TTnPyWa/r7DBcuCXULa2ECqtSsXO+cmgUVzr/36K8JcF8RVC
NviZ/yyAsyJ7h+U4T0f4YzJFcBJQ7ho4YrZJ8qKIknYq8WdQCFSg4fYckHfbhxjF
P6ZhDZIBGHYD3zj+pwC7fWHgLmRUe7Xg8bJwMbC1rbe1/MVKuS7ULPiEnlV8866y
lljFrBHefDz5nAV5ukBOquZXaM7ENxJ5cMV8SO4oetcO1761evhSjv2lNSSEJ1C6
pxFxBZRSe+tvgLbskmCx
=7tTx
-END PGP SIGNATURE-



Compile CloudStack 4.4.2

2015-03-05 Thread Star Guo
Hi, 

When I compile CloudStack 4.4.2 on CentOS 6.6 x86_64, and the log show as
below and waiting for long time: 

###
[INFO] 
[INFO] --- maven-jar-plugin:2.5:jar (default-jar) @
cloud-plugin-hypervisor-xenserver ---
[INFO] Building jar:
/root/.hudson/jobs/cloudstack-master/workspace/plugins/hypervisors/xenserver
/target/cloud-plugin-hypervisor-xenserver-4.6.0-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @
cloud-plugin-hypervisor-xenserver ---
[INFO]

[INFO]

[INFO] Building Apache CloudStack Plugin - Hypervisor KVM 4.6.0-SNAPSHOT
[INFO]

Downloading:
http://libvirt.org/maven2/joda-time/joda-time/maven-metadata.xml
Mar 06, 2015 1:47:47 PM
org.apache.maven.wagon.providers.http.httpclient.impl.client.DefaultRequestD
irector tryExecute
INFO: I/O exception (java.net.SocketException) caught when processing
request: Connection reset
Mar 06, 2015 1:47:47 PM
org.apache.maven.wagon.providers.http.httpclient.impl.client.DefaultRequestD
irector tryExecute
INFO: Retrying request

Downloading:
http://libvirt.org/maven2/org/libvirt/libvirt/0.5.1/libvirt-0.5.1.pom

Downloading:
http://ceph.com/maven/org/libvirt/libvirt/0.5.1/libvirt-0.5.1.pom

###

I find http://libvirt.org/maven2/org/libvirt/libvirt/0.5.1/libvirt-0.5.1.pom
is not found, and http://libvirt.org/maven2/org/libvirt/libvirt/0.5.1/ is
OK.
And http://ceph.com/maven/org/libvirt/libvirt/0.5.1/libvirt-0.5.1.pom is not
found.

How to fix this problem ? Thanks.

Best Regards
Star Guo




Build CloudStack 4.4.3-SNAPSHOT Error

2015-03-02 Thread Star Guo
Hi, all,

 

When I git clone form github, and run command mvn -Pawsapi,systemvm
-Dnoredist package, and hold on this for long time:

 

[INFO] 

[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @
cloud-plugin-hypervisor-xen ---

[INFO] Building jar:
/root/release/gci-cloud-apple-2015-03-03/plugins/hypervisors/xen/target/clou
d-plugin-hypervisor-xen-4.4.3-SNAPSHOT.jar

[INFO] 

[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @
cloud-plugin-hypervisor-xen ---

[INFO]


[INFO]


[INFO] Building Apache CloudStack Plugin - Hypervisor KVM 4.4.3-SNAPSHOT

[INFO]


Downloading:
http://ceph.com/maven/org/libvirt/libvirt/0.5.1/libvirt-0.5.1.pom

 

Is the pom removed form ceph.com ? I get 404 stat while access the url. Can
I change other mirrors ? Thanks.

 

 

Best Regards,

Star Guo



Re: Ans: About Instance Storage Live Migration on VMware

2015-02-16 Thread Star Guo
Ilya

Thanks a lot ! I try to read the source code.

Best Regards,
Star Guo

-邮件原件-
发件人: ilya musayev [mailto:ilya.mailing.li...@gmail.com] 
发送时间: 2015年2月15日 15:00
收件人: dev@cloudstack.apache.org
主题: Re: Ans: About Instance Storage Live Migration on VMware

Star,

There is an API call MigrateVirtualMachineWithVolume,

http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/migrateVirtualMachineWithVolume.html

It only works over NFS, Citrix promised to add support for VMFS in the near 
future.

Regards
ilya

On 2/13/15 4:15 AM, Erik Weber wrote:
 According to https://issues.apache.org/jira/browse/CLOUDSTACK-2701 it 
 should be supported.
 Haven't tried it myself though.




Ans: About Instance Storage Live Migration on VMware

2015-02-15 Thread Star Guo
Hi, Erik

I use cloudmonkey, and get help migrate virtualmachine: 
  help migrate virtualmachine
(migrateVirtualMachine) Attempts Migration of a VM to a different host or Root 
volume of the vm to a different storage pool
This API is asynchronous.
Required params are virtualmachineid
Parameters
==
hostid = (uuid) Destination Host ID to migrate VM to. Required for live 
migrating a VM from host to host
virtualmachineid = (uuid) the ID of the virtual machine
storageid = (uuid) Destination storage pool ID to migrate VM volumes to. 
Required for migrating the root disk volume

However, I run migrate virtualmachine 
virtualmachineid=ab31a20b-9165-411d-b7d5-x 
storageid=d7f51aae-5c4a-334c-b33f-yy while the VM is in running state, 
it throw as below:
Error 530, VM is not Stopped, unable to migrate the vm having the specified id

Does it mean cloudstack does not support storage live migration with vmware ? 
Thanks.

Best Regards,
Star Guo

-邮件原件-
发件人: Erik Weber [mailto:terbol...@gmail.com] 
发送时间: 2015年2月13日 20:16
收件人: dev
主题: Re: Ans: About Instance Storage Live Migration on VMware

According to https://issues.apache.org/jira/browse/CLOUDSTACK-2701 it should be 
supported.
Haven't tried it myself though.

--
Erik

On Fri, Feb 13, 2015 at 12:52 PM, Star Guo st...@ceph.me wrote:

 Yes, CloudStack 4.4.2 supports VOLUME live migration with the vm in 
 running state ( ui and cloudmonkey ), on VMware vSphere. I have test 
 the live migration with ROOT volume and DATA volume.
 And the VOLUME live migration in CloudStack API is difference from 
 VMware vCenter Storage vMotion which the all files of the VM (.vmdk, 
 .vmx , .vmxf and .log etc) move to another VMFS of NFS storage.
 My question is: Does CloudStack support Storage vMotion? Not only 
 volume live migration.
 Thanks.

 Best Regards,
 Star Guo

 -邮件原件-
 发件人: Mike Tutkowski [mailto:mike.tutkow...@solidfire.com]
 发送时间: 2015年2月13日 13:32
 收件人: dev@cloudstack.apache.org
 主题: Re: Forward: About Instance Storage Live Migration on VMware

 I am curious, when you say you used VMware's Storage vMotion, do you 
 mean the intent was to live migrate the storage underlying one of your 
 VMs? I was not aware that CloudStack supported this.

 I believe CloudStack supports the offline migration of VM disks, but 
 it seems to me that, say, offline migrating a root disk wouldn't bring 
 along the config and log files that also shared the same datastore 
 with that root disk (perhaps it should, though).

 Maybe one of our VMware gurus can explain what is the expected 
 behavior here.

 On Thu, Feb 12, 2015 at 5:24 PM, Star Guo st...@ceph.me wrote:

  Does any one know about that ?
 
  Best Regards,
  Star Guo
 
  -邮件原件-
  发件人: Star Guo [mailto:st...@ceph.me]
  发送时间: 2015年2月12日 9:24
  收件人: us...@cloudstack.apache.org
  主题: About Instance Storage Live Migration on VMware
 
  Hi, All,
 
 
 
 My env is cloudstack 4.4.2 + VMware 5.5, and it works well.
 
 I deploy an instance and try to migrate the ROOT disk to another 
  vmfs primary storage. After that I find the ROOT disk is in new vmfs 
  primary storage but the .vmx , .vmxf and .log etc still in the 
  origin vmfs primary storage.
 
 If I want to migrate the instance (all of the files in the floder 
  of the
  instance) to new vmfs primary storage, May CloudStack 4.4.2 Support 
  to do this ? Thanks.
 
 
 
  Best Regards,
 
  Star Guo
 
 
 
 
 


 --
 *Mike Tutkowski*
 *Senior CloudStack Developer, SolidFire Inc.*
 e: mike.tutkow...@solidfire.com
 o: 303.746.7302
 Advancing the way the world uses the cloud
 http://solidfire.com/solution/overview/?video=play*™*





Ans: About Instance Storage Live Migration on VMware

2015-02-13 Thread Star Guo
Yes, CloudStack 4.4.2 supports VOLUME live migration with the vm in running 
state ( ui and cloudmonkey ), on VMware vSphere. I have test the live migration 
with ROOT volume and DATA volume.
And the VOLUME live migration in CloudStack API is difference from VMware 
vCenter Storage vMotion which the all files of the VM (.vmdk, .vmx , .vmxf and 
.log etc) move to another VMFS of NFS storage.
My question is: Does CloudStack support Storage vMotion? Not only volume live 
migration.
Thanks.

Best Regards,
Star Guo

-邮件原件-
发件人: Mike Tutkowski [mailto:mike.tutkow...@solidfire.com] 
发送时间: 2015年2月13日 13:32
收件人: dev@cloudstack.apache.org
主题: Re: Forward: About Instance Storage Live Migration on VMware

I am curious, when you say you used VMware's Storage vMotion, do you mean the 
intent was to live migrate the storage underlying one of your VMs? I was not 
aware that CloudStack supported this.

I believe CloudStack supports the offline migration of VM disks, but it seems 
to me that, say, offline migrating a root disk wouldn't bring along the config 
and log files that also shared the same datastore with that root disk (perhaps 
it should, though).

Maybe one of our VMware gurus can explain what is the expected behavior here.

On Thu, Feb 12, 2015 at 5:24 PM, Star Guo st...@ceph.me wrote:

 Does any one know about that ?

 Best Regards,
 Star Guo

 -邮件原件-
 发件人: Star Guo [mailto:st...@ceph.me]
 发送时间: 2015年2月12日 9:24
 收件人: us...@cloudstack.apache.org
 主题: About Instance Storage Live Migration on VMware

 Hi, All,



My env is cloudstack 4.4.2 + VMware 5.5, and it works well.

I deploy an instance and try to migrate the ROOT disk to another 
 vmfs primary storage. After that I find the ROOT disk is in new vmfs 
 primary storage but the .vmx , .vmxf and .log etc still in the origin 
 vmfs primary storage.

If I want to migrate the instance (all of the files in the floder 
 of the
 instance) to new vmfs primary storage, May CloudStack 4.4.2 Support to 
 do this ? Thanks.



 Best Regards,

 Star Guo







--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
http://solidfire.com/solution/overview/?video=play*™*



Forward: About Instance Storage Live Migration on VMware

2015-02-12 Thread Star Guo
Does any one know about that ?

Best Regards,
Star Guo

-邮件原件-
发件人: Star Guo [mailto:st...@ceph.me] 
发送时间: 2015年2月12日 9:24
收件人: us...@cloudstack.apache.org
主题: About Instance Storage Live Migration on VMware

Hi, All,

 

   My env is cloudstack 4.4.2 + VMware 5.5, and it works well. 

   I deploy an instance and try to migrate the ROOT disk to another vmfs
primary storage. After that I find the ROOT disk is in new vmfs primary
storage but the .vmx , .vmxf and .log etc still in the origin vmfs primary
storage.

   If I want to migrate the instance (all of the files in the floder of the
instance) to new vmfs primary storage, May CloudStack 4.4.2 Support to do
this ? Thanks.

 

Best Regards,

Star Guo

 




Live migration ip address with kvm

2015-02-12 Thread Star Guo
Hi, all,

 

  Can I create tags in physical host in CloudStack ? I see template and 
instance support tags.

  I want to add a tag like “livemigrationipaddress” on kvm host, and change the 
kvm hypervisor code support assign the live migration ip address (may be 
storage network with 10gbps ) while default is the management ip.

 

CloudMonkey

  help create tags

(createTags) Creates resource tag(s)

This API is asynchronous.

Required params are resourceids tags resourcetype

Parameters

==

customer = (string) identifies client specific tag. When the value is not null, 
the tag can't be used by cloudStack code internally

resourceids = (list) list of resources to create the tags for

tags = (map) Map of tags (key/value pairs)

resourcetype = (string) type of the resource

 

  Are there another good idea to do this ? Thanks.

 

Best Regards,

Star Guo



[jira] [Created] (CLOUDSTACK-8237) add nic with instance throw java.lang.NullPointerException

2015-02-10 Thread Star Guo
Hi,

  Are there any one meet this issue? Thanks.

Best Regards,
Star Guo

-邮件原件-
发件人: Star Guo (JIRA) [mailto:j...@apache.org] 
发送时间: 2015年2月10日 20:45
收件人: cloudstack-iss...@incubator.apache.org
主题: [jira] [Created] (CLOUDSTACK-8237) add nic with instance throw 
java.lang.NullPointerException

Star Guo created CLOUDSTACK-8237:


 Summary: add nic with instance throw 
java.lang.NullPointerException 
 Key: CLOUDSTACK-8237
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8237
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
Affects Versions: 4.4.3
 Environment: CentOS 7 which Java 1.7.0_75, Running simulator/
Reporter: Star Guo


In simulator env, I create a serviceoffering with cpumem custom , and deploy 
an instance with this serviceoffering. After that, I add nic on this instance 
and throw this issus:


WARN  [c.c.u.d.Merovingian2] (API-Job-Executor-2:ctx-abcb085b job-26 
ctx-c85611f5) Was unable to find lock for the key vm_instance6 and thread id 
2089552368 INFO  [o.a.c.f.j.i.AsyncJobMonitor] 
(Work-Job-Executor-2:ctx-754aeed8 job-26/job-27) Add job-27 into job monitoring 
ERROR [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-2:ctx-754aeed8 
job-26/job-27 ctx-26199438) Invocation exception, caused by: 
java.lang.NullPointerException INFO  [c.c.v.VmWorkJobHandlerProxy] 
(Work-Job-Executor-2:ctx-754aeed8 job-26/job-27 ctx-26199438) Rethrow exception 
java.lang.NullPointerException ERROR [c.c.v.VmWorkJobDispatcher] 
(Work-Job-Executor-2:ctx-754aeed8 job-26/job-27) Unable to complete AsyncJobVO 
{id:27, userId: 2, accountId: 2, instanceType: null, instanceId: null, cmd: 
com.cloud.vm.VmWorkAddVmToNetwork, cmdInfo: 
rO0ABXNyACFjb20uY2xvdWQudm0uVm1Xb3JrQWRkVm1Ub05ldHdvcmt6-m3bkApgrQIAAkwACW5ldHdvcmtJZHQAEExqYXZhL2xhbmcvTG9uZztMABJyZXF1c3RlZE5pY1Byb2ZpbGV0ABlMY29tL2Nsb3VkL3ZtL05pY1Byb2ZpbGU7eHIAE2NvbS5jbG91ZC52bS5WbVdvcmufmbZW8CVnawIABEoACWFjY291bnRJZEoABnVzZXJJZEoABHZtSWRMAAtoYW5kbGVyTmFtZXQAEkxqYXZhL2xhbmcvU3RyaW5nO3hwAAIAAgAGdAAZVmlydHVhbE1hY2hpbmVNYW5hZ2VySW1wbHNyAA5qYXZhLmxhbmcuTG9uZzuL5JDMjyPfAgABSgAFdmFsdWV4cgAQamF2YS5sYW5nLk51bWJlcoaslR0LlOCLAgAAeHAAzXNyABdjb20uY2xvdWQudm0uTmljUHJvZmlsZUVY7kYs6AbAAgAeWgAKZGVmYXVsdE5pY0oAAmlkWgAWaXNTZWN1cml0eUdyb3VwRW5hYmxlZEoACW5ldHdvcmtJZEoABHZtSWRMAA1icm9hZGNhc3RUeXBldAAwTGNvbS9jbG91ZC9uZXR3b3JrL05ldHdvcmtzJEJyb2FkY2FzdERvbWFpblR5cGU7TAAMYnJvYWRjYXN0VXJpdAAOTGphdmEvbmV0L1VSSTtMAAhkZXZpY2VJZHQAE0xqYXZhL2xhbmcvSW50ZWdlcjtMAARkbnMxcQB-AARMAARkbnMycQB-AARMAAZmb3JtYXR0ACpMY29tL2Nsb3VkL25ldHdvcmsvTmV0d29ya3MkQWRkcmVzc0Zvcm1hdDtMAAdnYXRld2F5cQB-AARMAAppcDRBZGRyZXNzcQB-AARMAAppcDZBZGRyZXNzcQB-AARMAAdpcDZDaWRycQB-AARMAAdpcDZEbnMxcQB-AARMAAdpcDZEbnMycQB-AARMAAppcDZHYXRld2F5cQB-AARMAAxpc29sYXRpb25VcmlxAH4ADEwACm1hY0FkZHJlc3NxAH4ABEwABG1vZGV0ACFMY29tL2Nsb3VkL25ldHdvcmsvTmV0d29ya3MkTW9kZTtMAARuYW1lcQB-AARMAAduZXRtYXNrcQB-AARMAAtuZXR3b3JrUmF0ZXEAfgANTAANcmVxdWVzdGVkSXB2NHEAfgAETAANcmVxdWVzdGVkSXB2NnEAfgAETAANcmVzZXJ2YXRpb25JZHEAfgAETAAIc3RyYXRlZ3l0ACZMY29tL2Nsb3VkL3ZtL05pYyRSZXNlcnZhdGlvblN0cmF0ZWd5O0wAC3RyYWZmaWNUeXBldAAoTGNvbS9jbG91ZC9uZXR3b3JrL05ldHdvcmtzJFRyYWZmaWNUeXBlO0wABHV1aWRxAH4ABHhwAABwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBw,
 cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
null, initMsid: 8796758677527, completeMsid: null, lastUpdated: null, 
lastPolled: null, created: Tue Feb 10 07:20:35 EST 2015}, job origin:26 
java.lang.NullPointerException
at 
com.cloud.hypervisor.HypervisorGuruBase.toVirtualMachineTO(HypervisorGuruBase.java:125)
at com.cloud.simulator.SimulatorGuru.implement(SimulatorGuru.java:46)
at 
com.cloud.vm.VirtualMachineManagerImpl.orchestrateAddVmToNetwork(VirtualMachineManagerImpl.java:3467)
at 
com.cloud.vm.VirtualMachineManagerImpl.orchestrateAddVmToNetwork(VirtualMachineManagerImpl.java:5288)
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 
com.cloud.vm.VmWorkJobHandlerProxy.handleVmWorkJob(VmWorkJobHandlerProxy.java:107)
at 
com.cloud.vm.VirtualMachineManagerImpl.handleVmWorkJob(VirtualMachineManagerImpl.java:5346)
at com.cloud.vm.VmWorkJobDispatcher.runJob(VmWorkJobDispatcher.java:102)
at 
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:501)
at 
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49

[CloudStack 4.4] About UI Images

2015-01-14 Thread Star Guo
Are there anyone help me ? Thanks a lot :).

Best Regards,
Star Guo

-邮件原件-
发件人: Star Guo [mailto:st...@ceph.me] 
发送时间: 2015年1月13日 15:28
收件人: us...@cloudstack.apache.org; dev@cloudstack.apache.org
主题: [CloudStack 4.4] About UI Images

Dear All,

I find some images in ui/images about CloudStack UI. Could I get the PSD
(Photoshop) format or XCF (GIMP) format?

I want to change the UI color for different Regions, then easy for
acknowledge . Thanks a lot :)

Best Regards,
Star Guo




Re: [CloudStack 4.4] About UI Images

2015-01-14 Thread Star Guo
Hi, Rohit

Thanks. I try to change the color style of UI on png.

Best Regards,
Star Guo

-邮件原件-
发件人: Rohit Yadav [mailto:rohit.ya...@shapeblue.com] 
发送时间: 2015年1月14日 17:59
收件人: dev@cloudstack.apache.org
主题: Re: [CloudStack 4.4] About UI Images

Hi Star,

Our major UI contributors Jessica or Brian may have some idea. I think you can 
also use existing images for dimensions etc and create your own?

On Wednesday 14 January 2015 03:13 PM, Star Guo wrote:
 Are there anyone help me ? Thanks a lot :).

 Best Regards,
 Star Guo

 -邮件原件-
 发件人: Star Guo [mailto:st...@ceph.me]
 发送时间: 2015年1月13日 15:28
 收件人: us...@cloudstack.apache.org; dev@cloudstack.apache.org
 主题: [CloudStack 4.4] About UI Images

 Dear All,

 I find some images in ui/images about CloudStack UI. Could I get the 
 PSD
 (Photoshop) format or XCF (GIMP) format?

 I want to change the UI color for different Regions, then easy for 
 acknowledge . Thanks a lot :)

 Best Regards,
 Star Guo



--
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  Buildhttp://shapeblue.com/iaas-cloud-design-and-build//
CSForge – rapid IaaS deployment frameworkhttp://shapeblue.com/csforge/
CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/
CloudStack Software 
Engineeringhttp://shapeblue.com/cloudstack-software-engineering/
CloudStack Infrastructure 
Supporthttp://shapeblue.com/cloudstack-infrastructure-support/
CloudStack Bootcamp Training Courseshttp://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.



[CloudStack 4.4] About UI Images

2015-01-12 Thread Star Guo
Dear All,

 

I find some images in ui/images about CloudStack UI. Could I get the PSD
(Photoshop) format or XCF (GIMP) format?

I want to change the UI color for different Regions, then easy for
acknowledge . Thanks a lot :)

 

Best Regards,

Star Guo



Reply: About The Instance Name on Cloudstack

2014-12-31 Thread Star Guo
HI Rohit,

   Yes! I work on 5.2.0. I notic that since 5.3.0 cloudmonkey support UTF-8 !
   I work on CentOS 7. Howerver, if I just git clone cloudmonkey master and 
build  install, I meet the error Import error in cloudmonkey.cloudmonkey : No 
module named packages.
   I find: http://comments.gmane.org/gmane.comp.apache.cloudstack.devel/53639, 
follow the suggestion I upgrade pip and then work well.
   Thanks a lot!

Best Regards,
Star Guo

-邮件原件-
发件人: Rohit Yadav [mailto:rohit.ya...@shapeblue.com] 
发送时间: 2014年12月31日 16:37
收件人: dev@cloudstack.apache.org
主题: Re: About The Instance Name on Cloudstack

Hi Star,

Which version of CloudMonkey are you using?

UTF8 support came in only in CloudMonkey 5.3.0, so I recommend you use 
CloudMonkey 5.3.0 or above.

 On 31-Dec-2014, at 1:35 pm, Star Guo st...@ceph.me wrote:

 If you set the displayname of  instance within Chinese name, I find 
 the command “list virtualmachines”  throw: Error processing json: 'ascii'
 codec can't encode characters in position 1203-1209: ordinal not in
 range(128)

 Does the cloudmonkey not support UTF-8? Thanks.

Regards,
Rohit Yadav
Software Architect, ShapeBlue
M. +91 88 262 30892 | rohit.ya...@shapeblue.com
Blog: bhaisaab.org | Twitter: @_bhaisaab



Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design  Buildhttp://shapeblue.com/iaas-cloud-design-and-build//
CSForge – rapid IaaS deployment frameworkhttp://shapeblue.com/csforge/
CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/
CloudStack Software 
Engineeringhttp://shapeblue.com/cloudstack-software-engineering/
CloudStack Infrastructure 
Supporthttp://shapeblue.com/cloudstack-infrastructure-support/
CloudStack Bootcamp Training Courseshttp://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.



About The Instance Name on Cloudstack

2014-12-30 Thread Star Guo
Hi, All,

 

  When I create instance on cloudstack 4.4.2,set name within simple chinese
as instance name but it tell me “Instance name can not be longer than 63
characters. Only ASCII letters a~z, A~Z, digits 0~9, hyphen are allowed.
Must start with a letter and end with a letter or a digit.”

  Is it mean I just set the name of instance within ASCII letters? I notic
that the charater of mysql is UTF-8.

 

Best Regards,

Star Guo



答复: Cloudstack and Disaster Recovery

2014-12-08 Thread Star Guo
Hi,

I think if you make nfs as primary storage backend on brtfs or zfs (freenas?) 
you could take a snapshot and send all to DR site. Also, a plan of increment 
snapshot.
This may be good method.

Best Regards,
Star Guo


-邮件原件-
发件人: Nux! [mailto:n...@li.nux.ro] 
发送时间: 2014年12月8日 20:34
收件人: dev@cloudstack.apache.org
主题: Cloudstack and Disaster Recovery

Hi,

I'm getting more and more requests from customers to have mini clouds 
installed, but also DR capability.
This would be a great occasion to introduce them to Cloudstack, except for the 
DR bit for which I have found no straightforward way of performing. I'd have to 
replicate a whole lot of stuff to make it work.

Right now I'm stuck with setups of 3+ hypervisors running plain libvirt/KVM 
because of this; DR is a no-brainer, I'm just dumping xml metadata for VMs and 
rsync qcow2 files over SSH, making sure all the storage and networks pools are 
in place.

Pointers?

Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro



答复: 答复: Cloudstack and Disaster Recovery

2014-12-08 Thread Star Guo
I think if all the cloudstack network is behind a firewall ( a device setting 
DNAT+SNAT ) it may be easy to achieve the goal of DR.

Make all CS management (mysql) as a KVM instance which start with virsh, and 
backend btrfs, and make primary storage and secondary storage backend of other 
subvolume in btrfs.

And the DR site , you should prepare a physical host with brtfs, and the 
standby physical which install kvm agent (and the network) and set the 
configure file as same as the machine of 
production site (maybe fix the uuid in the cloud db of mysql) .

The last is backup firewall ( a device setting DNAT+SNAT ) configuration , 
while recovery the configuration to the same module device of the DR site ( 
RouterOS? ).

Then, the public IP of ISP, change the DANT IP and SNAT outbond IP ? Fix DNS?

Best Regards,
Star Guo

-邮件原件-
发件人: Nux! [mailto:n...@li.nux.ro] 
发送时间: 2014年12月8日 21:14
收件人: dev@cloudstack.apache.org
主题: Re: 答复: Cloudstack and Disaster Recovery

Thanks, but that is not my main problem. My difficulties are more like:

- how do I dump metadata for cloudstack KVM guests that are not running? virsh 
dumpxml will not work as the guests that are not running are not defined at all 
in libvirt (ie this will not list them: virsh list --all)

- how do I make sure the proper IPs and networks will be in place in the DR 
site? I'd need to recreate all the virtual networks and make sure there is a 
Virtual Router somehow working and still aware of IP assignments etc.

I know that ideally DR should be done at application levels, but it's not what 
the customers are asking. :-)

Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

- Original Message -
 From: Star Guo st...@ceph.me
 To: dev@cloudstack.apache.org
 Sent: Monday, 8 December, 2014 12:51:13
 Subject: 答复: Cloudstack and Disaster Recovery

 Hi,
 
 I think if you make nfs as primary storage backend on brtfs or zfs 
 (freenas?) you could take a snapshot and send all to DR site. Also, a 
 plan of increment snapshot.
 This may be good method.
 
 Best Regards,
 Star Guo
 
 
 -邮件原件-
 发件人: Nux! [mailto:n...@li.nux.ro]
 发送时间: 2014年12月8日 20:34
 收件人: dev@cloudstack.apache.org
 主题: Cloudstack and Disaster Recovery
 
 Hi,
 
 I'm getting more and more requests from customers to have mini clouds
 installed, but also DR capability.
 This would be a great occasion to introduce them to Cloudstack, except 
 for the DR bit for which I have found no straightforward way of 
 performing. I'd have to replicate a whole lot of stuff to make it work.
 
 Right now I'm stuck with setups of 3+ hypervisors running plain 
 libvirt/KVM because of this; DR is a no-brainer, I'm just dumping xml 
 metadata for VMs and rsync qcow2 files over SSH, making sure all the 
 storage and networks pools are in place.
 
 Pointers?
 
 Lucian
 
 --
 Sent from the Delta quadrant using Borg technology!
 
 Nux!
 www.nux.ro



答复: unable to test Network Throttling.

2014-12-08 Thread Star Guo
Hi,

There is a priority: the network rate of compute offering  the network rate of 
global configuration. 
If you deploy on kvm host, you can use virsh command to dumpxml of the VM and 
focus on  interface ... /interface.

Best Regards,
Star Guo

-邮件原件-
发件人: raja sekhar [mailto:rajsekhar@gmail.com] 
发送时间: 2014年12月9日 14:28
收件人: dev@cloudstack.apache.org; us...@cloudstack.apache.org
主题: unable to test Network Throttling.

Hi all,

i have created one compute offering(2 CPU , 4 GB) and given the Network Rate as 
1024 Mb/s, a VM is deployed from that compute offering and in global settings i 
didn't changed any Network Throttling Rate(default 200
Mb/s) and i'm unable to test the network bandwidth rate.

please suggest me how to test the bandwidth rate of the VM.



Regards,
Rajasekhar.



about ccp-qemu-img in cs 4.5

2014-11-13 Thread Star Guo
Hi CS developers,

 

I find brand of 4.5 scripts/storage/qcow2/managesnapshot.sh as bellow:

 

32 qemu_img=cloud-qemu-img

33 which $qemu_img  /dev/null

34 if [ $? -gt 0 ]

35 then

36which ccp-qemu-img  /dev/null

37if [ $? -eq 0 ]

38then

39qemu_img=ccp-qemu-img

40else

 

Is ccp-qemu-img a product of Citrix ? What does it fix about qemu-img ( more
than qemu-img in centos 6.6 ) ? 

 

Best Regards,

Star Guo

 



About ACS 4.3 4.4 4.5 build with error

2014-10-22 Thread Star Guo
Hi, 

 

I try to build ACS 4.3, 4.4, 4.5, it throws the error as bellow:

 

[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 2:29.157s
[INFO] Finished at: Thu Oct 23 08:27:01 CST 2014
[INFO] Final Memory: 47M/320M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on
project cloud-server: There are test failures.
[ERROR] 
[ERROR] Please refer to
/root/.hudson/jobs/cloudstack-4.5/workspace/server/target/surefire-reports
for the individual test results.
[ERROR] - [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn goals -rf :cloud-server
Finished: FAILURE

 

But the master builds successfully. I hava check from git , may be I find
the origin of the problem: fix expried certificate in unit test  : 

 

https://github.com/apache/cloudstack/commit/ccf4c66ef178638f2bbfc41918c454af
f4700a3b

 

I just fix this in 4.5, and it builds successfully. 

 

Best Regards,

Star Guo

 

 

 

 

 



About the 4.5 Compile Error

2014-10-16 Thread Star Guo
Hello, When I compile -b 4.5 , it show the error as bellow: 

 

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile
(default-compile) on project cloud-server: Compilation failure: Compilation
failure:
[ERROR]
/root/.hudson/jobs/cloudstack-4.5/workspace/server/src/com/cloud/resource/Re
sourceManagerImpl.java:[1649,34] error: variable ssCmd is already defined in
method
createHostVO(StartupCommand[],ServerResource,MapString,String,ListString
,Event)
[ERROR]
/root/.hudson/jobs/cloudstack-4.5/workspace/server/src/com/cloud/resource/Re
sourceManagerImpl.java:[1650,25] error: variable implicitHostTags is already
defined in method
createHostVO(StartupCommand[],ServerResource,MapString,String,ListString
,Event)
[ERROR] - [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn goals -rf :cloud-server

 

And I get the source code about:  vim
server/src/com/cloud/resource/ResourceManagerImpl.java

 

1633 }

1634 StartupRoutingCommand ssCmd = (StartupRoutingCommand)startup;

1635 ListString implicitHostTags = ssCmd.getHostTags();

1636 if (!implicitHostTags.isEmpty()) {

1637 if (hostTags == null) {

1638 hostTags = _hostTagsDao.gethostTags(host.getId());

1639 }

1640 if (hostTags != null) {

1641 implicitHostTags.removeAll(hostTags);

1642 hostTags.addAll(implicitHostTags);

1643 } else {

1644 hostTags = implicitHostTags;

1645 }

1646 }

1647 

1648 if (startup instanceof StartupRoutingCommand) {

1649 StartupRoutingCommand ssCmd =
((StartupRoutingCommand)startup);

1650 ListString implicitHostTags = ssCmd.getHostTags();

1651 if (!implicitHostTags.isEmpty()) {

1652 if (hostTags == null) {

1653 hostTags = _hostTagsDao.gethostTags(host.getId());

 

It seems 1649 and 1650 should be // .

 

Star Guo



答复: About the 4.5 Compile Error

2014-10-16 Thread Star Guo
It builds successfully.

Star Guo

-邮件原件-
发件人: Sanjay Tripathi [mailto:sanjay.tripa...@citrix.com] 
发送时间: 2014年10月16日 17:28
收件人: dev@cloudstack.apache.org
主题: RE: About the 4.5 Compile Error

Fixed the error, and 4.5 builds are coming up successfully.

--Sanjay

-Original Message-
From: Star Guo [mailto:st...@ceph.me]
Sent: Thursday, October 16, 2014 12:56 PM
Cc: dev@cloudstack.apache.org
Subject: About the 4.5 Compile Error

Hello, When I compile -b 4.5 , it show the error as bellow:



[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile
(default-compile) on project cloud-server: Compilation failure: 
Compilation
failure:
[ERROR]
/root/.hudson/jobs/cloudstack-
4.5/workspace/server/src/com/cloud/resource/Re
sourceManagerImpl.java:[1649,34] error: variable ssCmd is already 
defined in method 
createHostVO(StartupCommand[],ServerResource,MapString,String,ListSt
ring
,Event)
[ERROR]
/root/.hudson/jobs/cloudstack-
4.5/workspace/server/src/com/cloud/resource/Re
sourceManagerImpl.java:[1650,25] error: variable implicitHostTags is 
already defined in method 
createHostVO(StartupCommand[],ServerResource,MapString,String,ListSt
ring
,Event)
[ERROR] - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with 
the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, 
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with 
the command
[ERROR]   mvn goals -rf :cloud-server



And I get the source code about:  vim
server/src/com/cloud/resource/ResourceManagerImpl.java



1633 }

1634 StartupRoutingCommand ssCmd =
(StartupRoutingCommand)startup;

1635 ListString implicitHostTags = ssCmd.getHostTags();

1636 if (!implicitHostTags.isEmpty()) {

1637 if (hostTags == null) {

1638 hostTags = _hostTagsDao.gethostTags(host.getId());

1639 }

1640 if (hostTags != null) {

1641 implicitHostTags.removeAll(hostTags);

1642 hostTags.addAll(implicitHostTags);

1643 } else {

1644 hostTags = implicitHostTags;

1645 }

1646 }

1647

1648 if (startup instanceof StartupRoutingCommand) {

1649 StartupRoutingCommand ssCmd =
((StartupRoutingCommand)startup);

1650 ListString implicitHostTags = ssCmd.getHostTags();

1651 if (!implicitHostTags.isEmpty()) {

1652 if (hostTags == null) {

1653 hostTags = _hostTagsDao.gethostTags(host.getId());



It seems 1649 and 1650 should be // .



Star Guo



答复: [INFRA] [JENKINS] Full disk on test-infra-common

2014-10-13 Thread Star Guo
Could delete the old build to save the space ?
Or set max of builds to keep ?

Star Guo

-邮件原件-
发件人: Erik Weber [mailto:terbol...@gmail.com] 
发送时间: 2014年10月13日 14:48
收件人: dev
主题: [INFRA] [JENKINS] Full disk on test-infra-common

Anyone that could free up some space on test-infra-common?

FilesystemSize  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
   48G   30G   16G  65% /
tmpfs 1.5G 0  1.5G   0% /dev/shm
/dev/xvda1485M   32M  429M   7% /boot
/dev/xvdb  50G   49G 0 100% /var/lib/jenkins



-- 
Erik