Re: [VOTE] Release Apache CloudStack CloudMonkey 5.3.0 (round #6)

2014-11-07 Thread Ian Duffy
Is cloudmonkey following the same project bylaws as CloudStack?

If so we need 3 +1 binding votes.
On 7 Nov 2014 07:35, "Rohit Yadav"  wrote:

> Hi all,
>
> After 72 hours, the vote for CloudStack CloudMonkey 5.3.0 *passes* with
> 1 PMC + 3 non-PMC votes.
>
> +1 (PMC / binding)
> 1 person
>
> +1 (non binding)
> 3 persons
>
> 0
> none
>
> -1
> none
>
> Thanks to everyone participating. I will now prepare the release
> announcement to go out after 24 hours to give the mirrors time to catch up.
>
> Can any of the PMC members help move the voting artifact to releases:
>
> svn mv -m "Publishing Apache CloudStack CloudMonkey 5.3.0 release"
> https://dist.apache.org/repos/dist/dev/cloudstack/cloudmonkey-5.3.0/
> https://dist.apache.org/repos/dist/release/cloudstack/releases/
>
> I’ll release the artifact to pypi shortly. Thanks.
>
>
> > On 05-Nov-2014, at 9:25 pm, Ian Duffy  wrote:
> >
> > +1 (binding).
> >
> > Did a few tests against exoscale.
> >
> > On 5 November 2014 15:47, Rohit Yadav  wrote:
> >
> >> +1 from my side as well
> >>
> >> Tested cloudmonkey for deploying ACS using KVM and shared NFS storage,
> >> write bash scripts etc.
> >>
> >>> On 04-Nov-2014, at 8:16 pm, Geoff Higginbottom <
> >> geoff.higginbot...@shapeblue.com> wrote:
> >>>
> >>> +1
> >>>
> >>> All previous issues have been fixed - Well done Rohit
> >>>
> >>> Tested the following using scripts:
> >>>
> >>> Install CloudMonkey and setup Profile
> >>> Deploy new complete Advanced Zone
> >>> Update Global Settings
> >>> Create Domains and Users
> >>> Delete default Service Offerings and Add new ones
> >>> Deploy new Network and VMs, setup Ingress and Egress Rules
> >>> Deploy new VPC and VMs, setup ACLs and Egress rules
> >>>
> >>> Regards
> >>>
> >>> Geoff Higginbottom
> >>>
> >>> D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
> >>>
> >>> geoff.higginbot...@shapeblue.com
> >>>
> >>> -Original Message-
> >>> From: Rohit Yadav [mailto:rohit.ya...@shapeblue.com]
> >>> Sent: 04 November 2014 13:10
> >>> To: dev
> >>> Cc: us...@cloudstack.apache.org
> >>> Subject: [VOTE] Release Apache CloudStack CloudMonkey 5.3.0 (round #6)
> >>>
> >>> Hi All,
> >>>
> >>> I've created a 5.3.0 release of CloudMonkey, with the following
> >> artifacts up for a vote:
> >>>
> >>> Git Branch and Commit SH:
> >>>
> >>
> https://git-wip-us.apache.org/repos/asf?p=cloudstack-cloudmonkey.git;a=shortlog;h=refs/heads/5.3
> >>> Commit: 24faf56d5ab41cef1e9f7fc294f7cf1ab5e3a742
> >>>
> >>> List of changes:
> >>>
> >>
> https://git-wip-us.apache.org/repos/asf?p=cloudstack-cloudmonkey.git;a=blob_plain;f=CHANGES;hb=5.3
> >>>
> >>> Source release (checksums and signatures are available at the same
> >>> location):
> >>> https://dist.apache.org/repos/dist/dev/cloudstack/cloudmonkey-5.3.0/
> >>>
> >>> PGP release keys (signed using 0EE3D884):
> >>> https://dist.apache.org/repos/dist/release/cloudstack/KEYS
> >>>
> >>> Testing procedure:
> >>>
> >>
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudMonkey+Release+test+procedure
> >>>
> >>> This release aims to provide better parameter and filter completion,
> >> error handling and utf8/unicode support in CloudMonkey and therefore
> needs
> >> testing efforts in these areas. UTF-8 encoded string parameters usage
> needs
> >> to be tested in API calls, shell and piped calls, for example:
> >>>
> >>> $ create user account=admin username=रोहित lastname=यादव
> firstname=रोहित
> >> email=bhais...@apache.org
> password="正體字/繁體字日本人français한국فارسیpassword123”
> >>> $ list users | grep रोहित
> >>>
> >>> The vote will be open till Thursday EOD (72 hours). Please test this
> >> release and give your votes. Thanks.
> >>>
> >>> 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)
> >>>
> >>> 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 & Build<
> >> http://shapeblue.com/iaas-cloud-design-and-build//>
> >>> CSForge – rapid IaaS deployment framework<
> http://shapeblue.com/csforge/>
> >>> CloudStack Consulting
> >>> 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 neit

Re: [VOTE] Release Apache CloudStack CloudMonkey 5.3.0 (round #6)

2014-11-07 Thread Rohit Yadav
Hi Ian,

Yes I think so. I just read the bylaws [1] again and you’re right this voting 
round would need two more +1 (binding) votes from PMC to be passed.

I thought any 3 +1 votes (majority) would make it pass and the 72 hour voting 
window completed. Sorry, I was not too careful. In this case, we’ll let the 
round continue until we’ve two more binding votes.

> On 07-Nov-2014, at 5:12 pm, Ian Duffy  wrote:
>
> Is cloudmonkey following the same project bylaws as CloudStack?
>
> If so we need 3 +1 binding votes.
> On 7 Nov 2014 07:35, "Rohit Yadav"  wrote:
>
>> Hi all,
>>
>> After 72 hours, the vote for CloudStack CloudMonkey 5.3.0 *passes* with
>> 1 PMC + 3 non-PMC votes.
>>
>> +1 (PMC / binding)
>> 1 person
>>
>> +1 (non binding)
>> 3 persons
>>
>> 0
>> none
>>
>> -1
>> none
>>
>> Thanks to everyone participating. I will now prepare the release
>> announcement to go out after 24 hours to give the mirrors time to catch up.
>>
>> Can any of the PMC members help move the voting artifact to releases:
>>
>> svn mv -m "Publishing Apache CloudStack CloudMonkey 5.3.0 release"
>> https://dist.apache.org/repos/dist/dev/cloudstack/cloudmonkey-5.3.0/
>> https://dist.apache.org/repos/dist/release/cloudstack/releases/
>>
>> I’ll release the artifact to pypi shortly. Thanks.
>>
>>
>>> On 05-Nov-2014, at 9:25 pm, Ian Duffy  wrote:
>>>
>>> +1 (binding).
>>>
>>> Did a few tests against exoscale.
>>>
>>> On 5 November 2014 15:47, Rohit Yadav  wrote:
>>>
 +1 from my side as well

 Tested cloudmonkey for deploying ACS using KVM and shared NFS storage,
 write bash scripts etc.

> On 04-Nov-2014, at 8:16 pm, Geoff Higginbottom <
 geoff.higginbot...@shapeblue.com> wrote:
>
> +1
>
> All previous issues have been fixed - Well done Rohit
>
> Tested the following using scripts:
>
> Install CloudMonkey and setup Profile
> Deploy new complete Advanced Zone
> Update Global Settings
> Create Domains and Users
> Delete default Service Offerings and Add new ones
> Deploy new Network and VMs, setup Ingress and Egress Rules
> Deploy new VPC and VMs, setup ACLs and Egress rules
>
> Regards
>
> Geoff Higginbottom
>
> D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
>
> geoff.higginbot...@shapeblue.com
>
> -Original Message-
> From: Rohit Yadav [mailto:rohit.ya...@shapeblue.com]
> Sent: 04 November 2014 13:10
> To: dev
> Cc: us...@cloudstack.apache.org
> Subject: [VOTE] Release Apache CloudStack CloudMonkey 5.3.0 (round #6)
>
> Hi All,
>
> I've created a 5.3.0 release of CloudMonkey, with the following
 artifacts up for a vote:
>
> Git Branch and Commit SH:
>

>> https://git-wip-us.apache.org/repos/asf?p=cloudstack-cloudmonkey.git;a=shortlog;h=refs/heads/5.3
> Commit: 24faf56d5ab41cef1e9f7fc294f7cf1ab5e3a742
>
> List of changes:
>

>> https://git-wip-us.apache.org/repos/asf?p=cloudstack-cloudmonkey.git;a=blob_plain;f=CHANGES;hb=5.3
>
> Source release (checksums and signatures are available at the same
> location):
> https://dist.apache.org/repos/dist/dev/cloudstack/cloudmonkey-5.3.0/
>
> PGP release keys (signed using 0EE3D884):
> https://dist.apache.org/repos/dist/release/cloudstack/KEYS
>
> Testing procedure:
>

>> https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudMonkey+Release+test+procedure
>
> This release aims to provide better parameter and filter completion,
 error handling and utf8/unicode support in CloudMonkey and therefore
>> needs
 testing efforts in these areas. UTF-8 encoded string parameters usage
>> needs
 to be tested in API calls, shell and piped calls, for example:
>
> $ create user account=admin username=रोहित lastname=यादव
>> firstname=रोहित
 email=bhais...@apache.org
>> password="正體字/繁體字日本人français한국فارسیpassword123”
> $ list users | grep रोहित
>
> The vote will be open till Thursday EOD (72 hours). Please test this
 release and give your votes. Thanks.
>
> 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)
>
> 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 & Build<
 http://shapeblue.com/iaas-cloud-design-and-build//>
> CSForge – rapid IaaS deployment framework<
>> http://shapeblue.com/csforge/>
> CloudStack Consulting
> CloudStack Infrastructure Support<
 http://shapeblue.com/cloudstack-infrastructure-support/>
> CloudS

Build failed in Jenkins: build-4.5 #102

2014-11-07 Thread jenkins
See 

Changes:

[sanjay.tripathi] CLOUDSTACK-7859: Host tags are not getting removed in 
cloud.host_tags table when a Host is deleted from CS.

--
[...truncated 4032 lines...]
2014-11-07 07:28:40 INFO  GenericApplicationContext:1374 - Bean 
'globoDnsElementTest.TestConfiguration' of type [class 
com.globo.globodns.cloudstack.element.GloboDnsElementTest$TestConfiguration$$EnhancerByCGLIB$$8011b2fd]
 is not eligible for getting processed by all BeanPostProcessors (for example: 
not eligible for auto-proxying)
2014-11-07 07:28:40 DEBUG DefaultListableBeanFactory:460 - Finished creating 
instance of bean 'globoDnsElementTest.TestConfiguration'
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ 
cloud-plugin-hypervisor-kvm ---
[INFO] Compiling 36 source files to 

2014-11-07 07:28:40 DEBUG DefaultListableBeanFactory:506 - Eagerly caching bean 
'instantiatePostProcessor' to allow for resolving potential circular references
2014-11-07 07:28:40 DEBUG DefaultListableBeanFactory:460 - Finished creating 
instance of bean 'instantiatePostProcessor'
2014-11-07 07:28:40 DEBUG GenericApplicationContext:807 - Unable to locate 
MessageSource with name 'messageSource': using default 
[org.springframework.context.support.DelegatingMessageSource@1fe5305e]
2014-11-07 07:28:40 DEBUG GenericApplicationContext:831 - Unable to locate 
ApplicationEventMulticaster with name 'applicationEventMulticaster': using 
default 
[org.springframework.context.event.SimpleApplicationEventMulticaster@4107f215]
2014-11-07 07:28:40 INFO  DefaultListableBeanFactory:598 - Pre-instantiating 
singletons in 
org.springframework.beans.factory.support.DefaultListableBeanFactory@14ad0e9f: 
defining beans 
[org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,globoDnsElementTest.TestConfiguration,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor,globoDnsElement,networkDao,resourceManager,agentManager,accountManager,dataCenterDao,hostDao,configurationDao,physicalNetworkDao,componentContext,transactionContextBuilder,instantiatePostProcessor];
 root of factory hierarchy
2014-11-07 07:28:40 DEBUG DefaultListableBeanFactory:246 - Returning cached 
instance of singleton bean 
'org.springframework.context.annotation.internalConfigurationAnnotationProcessor'
2014-11-07 07:28:40 DEBUG DefaultListableBeanFactory:246 - Returning cached 
instance of singleton bean 
'org.springframework.context.annotation.internalAutowiredAnnotationProcessor'
2014-11-07 07:28:40 DEBUG DefaultListableBeanFactory:246 - Returning cached 
instance of singleton bean 
'org.springframework.context.annotation.internalRequiredAnnotationProcessor'
2014-11-07 07:28:40 DEBUG DefaultListableBeanFactory:246 - Returning cached 
instance of singleton bean 
'org.springframework.context.annotation.internalCommonAnnotationProcessor'
2014-11-07 07:28:40 DEBUG DefaultListableBeanFactory:246 - Returning cached 
instance of singleton bean 'globoDnsElementTest.TestConfiguration'
2014-11-07 07:28:40 DEBUG DefaultListableBeanFactory:246 - Returning cached 
instance of singleton bean 
'org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor'
2014-11-07 07:28:40 DEBUG DefaultListableBeanFactory:215 - Creating shared 
instance of singleton bean 'globoDnsElement'
2014-11-07 07:28:40 DEBUG DefaultListableBeanFactory:432 - Creating instance of 
bean 'globoDnsElement'
2014-11-07 07:28:42 DEBUG DefaultListableBeanFactory:215 - Creating shared 
instance of singleton bean 'networkDao'
2014-11-07 07:28:42 DEBUG DefaultListableBeanFactory:432 - Creating instance of 
bean 'networkDao'
2014-11-07 07:28:42 DEBUG DefaultListableBeanFactory:246 - Returning cached 
instance of singleton bean 'globoDnsElementTest.TestConfiguration'
[INFO] 
[INFO] --- maven-surefire-plugin:2.12:test (default-test) @ 
cloud-engine-storage ---
[INFO] Surefire report directory: 


---
 T E S T S
---
2014-11-07 07:28:44 DEBUG DefaultListableBeanFactory:506 - Eagerly caching bean 
'networkDao' to allow for resolving potential circular references
2014-11-07 07:28:44 DEBUG DefaultListableBeanFactory:460 - Finished creating 
instance of bean 'networkDao'
2014-11-07 07:28:44 DEBUG DefaultListableBean

About param of cloudstack api

2014-11-07 Thread lky
I know use cloudstack api need to build the sig and python shell can do
this through doc, now I want to call 'updateNetworkServiceProvider' via api
, but this method has the param 'servicelist' which is a list , I can not
find a example for this case , anyone can give a hand ?



Re: [VOTE] Release Apache CloudStack CloudMonkey 5.3.0 (round #6)

2014-11-07 Thread Sebastien Goasguen

On Nov 7, 2014, at 6:58 AM, Rohit Yadav  wrote:

> Hi Ian,
> 
> Yes I think so. I just read the bylaws [1] again and you’re right this voting 
> round would need two more +1 (binding) votes from PMC to be passed.
> 
> I thought any 3 +1 votes (majority) would make it pass and the 72 hour voting 
> window completed. Sorry, I was not too careful. In this case, we’ll let the 
> round continue until we’ve two more binding votes.

haven't had time to check this, but will try to do so this week end.

-sebastien

> 
>> On 07-Nov-2014, at 5:12 pm, Ian Duffy  wrote:
>> 
>> Is cloudmonkey following the same project bylaws as CloudStack?
>> 
>> If so we need 3 +1 binding votes.
>> On 7 Nov 2014 07:35, "Rohit Yadav"  wrote:
>> 
>>> Hi all,
>>> 
>>> After 72 hours, the vote for CloudStack CloudMonkey 5.3.0 *passes* with
>>> 1 PMC + 3 non-PMC votes.
>>> 
>>> +1 (PMC / binding)
>>> 1 person
>>> 
>>> +1 (non binding)
>>> 3 persons
>>> 
>>> 0
>>> none
>>> 
>>> -1
>>> none
>>> 
>>> Thanks to everyone participating. I will now prepare the release
>>> announcement to go out after 24 hours to give the mirrors time to catch up.
>>> 
>>> Can any of the PMC members help move the voting artifact to releases:
>>> 
>>> svn mv -m "Publishing Apache CloudStack CloudMonkey 5.3.0 release"
>>> https://dist.apache.org/repos/dist/dev/cloudstack/cloudmonkey-5.3.0/
>>> https://dist.apache.org/repos/dist/release/cloudstack/releases/
>>> 
>>> I’ll release the artifact to pypi shortly. Thanks.
>>> 
>>> 
 On 05-Nov-2014, at 9:25 pm, Ian Duffy  wrote:
 
 +1 (binding).
 
 Did a few tests against exoscale.
 
 On 5 November 2014 15:47, Rohit Yadav  wrote:
 
> +1 from my side as well
> 
> Tested cloudmonkey for deploying ACS using KVM and shared NFS storage,
> write bash scripts etc.
> 
>> On 04-Nov-2014, at 8:16 pm, Geoff Higginbottom <
> geoff.higginbot...@shapeblue.com> wrote:
>> 
>> +1
>> 
>> All previous issues have been fixed - Well done Rohit
>> 
>> Tested the following using scripts:
>> 
>> Install CloudMonkey and setup Profile
>> Deploy new complete Advanced Zone
>> Update Global Settings
>> Create Domains and Users
>> Delete default Service Offerings and Add new ones
>> Deploy new Network and VMs, setup Ingress and Egress Rules
>> Deploy new VPC and VMs, setup ACLs and Egress rules
>> 
>> Regards
>> 
>> Geoff Higginbottom
>> 
>> D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
>> 
>> geoff.higginbot...@shapeblue.com
>> 
>> -Original Message-
>> From: Rohit Yadav [mailto:rohit.ya...@shapeblue.com]
>> Sent: 04 November 2014 13:10
>> To: dev
>> Cc: us...@cloudstack.apache.org
>> Subject: [VOTE] Release Apache CloudStack CloudMonkey 5.3.0 (round #6)
>> 
>> Hi All,
>> 
>> I've created a 5.3.0 release of CloudMonkey, with the following
> artifacts up for a vote:
>> 
>> Git Branch and Commit SH:
>> 
> 
>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack-cloudmonkey.git;a=shortlog;h=refs/heads/5.3
>> Commit: 24faf56d5ab41cef1e9f7fc294f7cf1ab5e3a742
>> 
>> List of changes:
>> 
> 
>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack-cloudmonkey.git;a=blob_plain;f=CHANGES;hb=5.3
>> 
>> Source release (checksums and signatures are available at the same
>> location):
>> https://dist.apache.org/repos/dist/dev/cloudstack/cloudmonkey-5.3.0/
>> 
>> PGP release keys (signed using 0EE3D884):
>> https://dist.apache.org/repos/dist/release/cloudstack/KEYS
>> 
>> Testing procedure:
>> 
> 
>>> https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudMonkey+Release+test+procedure
>> 
>> This release aims to provide better parameter and filter completion,
> error handling and utf8/unicode support in CloudMonkey and therefore
>>> needs
> testing efforts in these areas. UTF-8 encoded string parameters usage
>>> needs
> to be tested in API calls, shell and piped calls, for example:
>> 
>> $ create user account=admin username=रोहित lastname=यादव
>>> firstname=रोहित
> email=bhais...@apache.org
>>> password="正體字/繁體字日本人français한국فارسیpassword123”
>> $ list users | grep रोहित
>> 
>> The vote will be open till Thursday EOD (72 hours). Please test this
> release and give your votes. Thanks.
>> 
>> 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)
>> 
>> 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 Clou

RE: [CAPACITY STATS][4.4] - Primary storage is 0 + strange behaviour on different VM statuses

2014-11-07 Thread Ilia Shakitko
Anyone?

Or it is being considered as an expected behavior?


Kind regards,

Ilia Shakitko
Innovation Engineer
LeaseWeb Technologies B.V.

T: +31 20 316 0235
M:
E: i.shaki...@tech.leaseweb.com
W: http://www.leaseweb.com

Luttenbergweg 8, 1101 EC Amsterdam, Netherlands


-Original Message-
From: Ilia Shakitko [mailto:i.shaki...@tech.leaseweb.com]
Sent: woensdag, 05 november, 2014 13:50
To: dev@cloudstack.apache.org
Subject: [CAPACITY STATS][4.4] - Primary storage is 0 + strange behaviour on 
different VM statuses

Hello,

I am experiencing new features in ACS 4.4 and playing with VMs and 
ComputeOfferings to see what I can do. And I noticed 2 strange things.

First of all. Whatever status a VM has – I can’t see Primary Storage is used:  
http://clip2net.com/s/jdOCBQ

At second I made this experiment:
1) VM is Running: Amount of allocated resoures is X
2) Stop VM: Amount of alloc.resources is still X
3) Destroy VM: Amount of alloc.resources drops to Y
4) Recover VM (it is in stopped state now): Amount of allo.resources is still Y 
- WHAT?!

* I am checking numbers in both places (pie charts and full capacity stats)


I think something is wrong here. Isn’t it?

Kind regards,

Ilia Shakitko
Innovation Engineer
LeaseWeb Technologies B.V.

T: +31 20 316 0235

E: i.shaki...@tech.leaseweb.com
W: www.leaseweb.com

Luttenbergweg 8,1101 EC Amsterdam,  Netherlands





Re: [CAPACITY STATS][4.4] - Primary storage is 0 + strange behaviour on different VM statuses

2014-11-07 Thread Nux!
Ilia,

There might be scheduled jobs to calculate and update usage stats, not sure 
about this. Have you tried leaving it some more time between operations? Like, 
kill the VM or whatever operations you want in the evening and see if the stats 
are correct the next day.

Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

- Original Message -
> From: "Ilia Shakitko" 
> To: dev@cloudstack.apache.org
> Sent: Wednesday, 5 November, 2014 12:49:41
> Subject: [CAPACITY STATS][4.4] - Primary storage is 0 + strange behaviour on 
> different VM statuses

> Hello,
> 
> I am experiencing new features in ACS 4.4 and playing with VMs and
> ComputeOfferings to see what I can do. And I noticed 2 strange things.
> 
> First of all. Whatever status a VM has – I can’t see Primary Storage is used:
> http://clip2net.com/s/jdOCBQ
> 
> At second I made this experiment:
> 1) VM is Running: Amount of allocated resoures is X
> 2) Stop VM: Amount of alloc.resources is still X
> 3) Destroy VM: Amount of alloc.resources drops to Y
> 4) Recover VM (it is in stopped state now): Amount of allo.resources is still 
> Y
> - WHAT?!
> 
> * I am checking numbers in both places (pie charts and full capacity stats)
> 
> 
> I think something is wrong here. Isn’t it?
> 
> Kind regards,
> 
> Ilia Shakitko
> Innovation Engineer
> LeaseWeb Technologies B.V.
> 
> T: +31 20 316 0235
> 
> E: i.shaki...@tech.leaseweb.com
> W: www.leaseweb.com
> 
> Luttenbergweg 8,1101 EC Amsterdam,  Netherlands


Re: [VOTE] Release Apache CloudStack CloudMonkey 5.3.0 (round #6)

2014-11-07 Thread Pierre-Luc Dion
+1 (binding)

Did a quick test.

On Fri, Nov 7, 2014 at 7:25 AM, Sebastien Goasguen  wrote:

>
> On Nov 7, 2014, at 6:58 AM, Rohit Yadav  wrote:
>
> > Hi Ian,
> >
> > Yes I think so. I just read the bylaws [1] again and you’re right this
> voting round would need two more +1 (binding) votes from PMC to be passed.
> >
> > I thought any 3 +1 votes (majority) would make it pass and the 72 hour
> voting window completed. Sorry, I was not too careful. In this case, we’ll
> let the round continue until we’ve two more binding votes.
>
> haven't had time to check this, but will try to do so this week end.
>
> -sebastien
>
> >
> >> On 07-Nov-2014, at 5:12 pm, Ian Duffy  wrote:
> >>
> >> Is cloudmonkey following the same project bylaws as CloudStack?
> >>
> >> If so we need 3 +1 binding votes.
> >> On 7 Nov 2014 07:35, "Rohit Yadav"  wrote:
> >>
> >>> Hi all,
> >>>
> >>> After 72 hours, the vote for CloudStack CloudMonkey 5.3.0 *passes* with
> >>> 1 PMC + 3 non-PMC votes.
> >>>
> >>> +1 (PMC / binding)
> >>> 1 person
> >>>
> >>> +1 (non binding)
> >>> 3 persons
> >>>
> >>> 0
> >>> none
> >>>
> >>> -1
> >>> none
> >>>
> >>> Thanks to everyone participating. I will now prepare the release
> >>> announcement to go out after 24 hours to give the mirrors time to
> catch up.
> >>>
> >>> Can any of the PMC members help move the voting artifact to releases:
> >>>
> >>> svn mv -m "Publishing Apache CloudStack CloudMonkey 5.3.0 release"
> >>> https://dist.apache.org/repos/dist/dev/cloudstack/cloudmonkey-5.3.0/
> >>> https://dist.apache.org/repos/dist/release/cloudstack/releases/
> >>>
> >>> I’ll release the artifact to pypi shortly. Thanks.
> >>>
> >>>
>  On 05-Nov-2014, at 9:25 pm, Ian Duffy  wrote:
> 
>  +1 (binding).
> 
>  Did a few tests against exoscale.
> 
>  On 5 November 2014 15:47, Rohit Yadav 
> wrote:
> 
> > +1 from my side as well
> >
> > Tested cloudmonkey for deploying ACS using KVM and shared NFS
> storage,
> > write bash scripts etc.
> >
> >> On 04-Nov-2014, at 8:16 pm, Geoff Higginbottom <
> > geoff.higginbot...@shapeblue.com> wrote:
> >>
> >> +1
> >>
> >> All previous issues have been fixed - Well done Rohit
> >>
> >> Tested the following using scripts:
> >>
> >> Install CloudMonkey and setup Profile
> >> Deploy new complete Advanced Zone
> >> Update Global Settings
> >> Create Domains and Users
> >> Delete default Service Offerings and Add new ones
> >> Deploy new Network and VMs, setup Ingress and Egress Rules
> >> Deploy new VPC and VMs, setup ACLs and Egress rules
> >>
> >> Regards
> >>
> >> Geoff Higginbottom
> >>
> >> D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
> >>
> >> geoff.higginbot...@shapeblue.com
> >>
> >> -Original Message-
> >> From: Rohit Yadav [mailto:rohit.ya...@shapeblue.com]
> >> Sent: 04 November 2014 13:10
> >> To: dev
> >> Cc: us...@cloudstack.apache.org
> >> Subject: [VOTE] Release Apache CloudStack CloudMonkey 5.3.0 (round
> #6)
> >>
> >> Hi All,
> >>
> >> I've created a 5.3.0 release of CloudMonkey, with the following
> > artifacts up for a vote:
> >>
> >> Git Branch and Commit SH:
> >>
> >
> >>>
> https://git-wip-us.apache.org/repos/asf?p=cloudstack-cloudmonkey.git;a=shortlog;h=refs/heads/5.3
> >> Commit: 24faf56d5ab41cef1e9f7fc294f7cf1ab5e3a742
> >>
> >> List of changes:
> >>
> >
> >>>
> https://git-wip-us.apache.org/repos/asf?p=cloudstack-cloudmonkey.git;a=blob_plain;f=CHANGES;hb=5.3
> >>
> >> Source release (checksums and signatures are available at the same
> >> location):
> >>
> https://dist.apache.org/repos/dist/dev/cloudstack/cloudmonkey-5.3.0/
> >>
> >> PGP release keys (signed using 0EE3D884):
> >> https://dist.apache.org/repos/dist/release/cloudstack/KEYS
> >>
> >> Testing procedure:
> >>
> >
> >>>
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudMonkey+Release+test+procedure
> >>
> >> This release aims to provide better parameter and filter completion,
> > error handling and utf8/unicode support in CloudMonkey and therefore
> >>> needs
> > testing efforts in these areas. UTF-8 encoded string parameters usage
> >>> needs
> > to be tested in API calls, shell and piped calls, for example:
> >>
> >> $ create user account=admin username=रोहित lastname=यादव
> >>> firstname=रोहित
> > email=bhais...@apache.org
> >>> password="正體字/繁體字日本人français한국فارسیpassword123”
> >> $ list users | grep रोहित
> >>
> >> The vote will be open till Thursday EOD (72 hours). Please test this
> > release and give your votes. Thanks.
> >>
> >> For sanity in tallying the vote, can PMC members please be sure to
> > indicate "(binding)" with their vote?
> >>
> >> [ ] +1  approve
> >> [ ] +0  no opinion
> >> [ ] -1  disapp

Review Request 27727: CLOUDSTACK-3528: [UI]list calls are in the processing state forever with invalid name provided with Account name search filter

2014-11-07 Thread Gabor Apati-Nagy

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/27727/
---

Review request for cloudstack, Brian Federle and Jessica Wang.


Bugs: CLOUDSTACK-3528
https://issues.apache.org/jira/browse/CLOUDSTACK-3528


Repository: cloudstack-git


Description
---

Added error handling for Events, Instances, Network, Projects, Storage pages 
where an advanced search by an invalid account name was making the UI to show 
in progress state forever.


Diffs
-

  ui/scripts/events.js ea4b940b3036ca5010ccedc16ade28c62b800d96 
  ui/scripts/instances.js 838e4d56b4fb72ee694e3b811bfff1b4e324753e 
  ui/scripts/network.js 278545bff59d247c528283d136eb5b8ec831892c 
  ui/scripts/projects.js 7453b535c0df9a02cc1b97fb437b7f74f6004f27 
  ui/scripts/storage.js 90720ac991470c6b8efef2a24c53b9595b88de79 

Diff: https://reviews.apache.org/r/27727/diff/


Testing
---

Tested all the affected Advanced Search features.


Thanks,

Gabor Apati-Nagy



RE: [CAPACITY STATS][4.4] - Primary storage is 0 + strange behaviour on different VM statuses

2014-11-07 Thread Ilia Shakitko
Hi Lucian,

I am looking to it few days playing with VMs. So yes, I did :)


Kind regards,

Ilia Shakitko
Innovation Engineer
LeaseWeb Technologies B.V.

T: +31 20 316 0235
M:
E: i.shaki...@tech.leaseweb.com
W: http://www.leaseweb.com

Luttenbergweg 8, 1101 EC Amsterdam, Netherlands


-Original Message-
From: Nux! [mailto:n...@li.nux.ro]
Sent: vrijdag, 07 november, 2014 14:34
To: dev@cloudstack.apache.org
Subject: Re: [CAPACITY STATS][4.4] - Primary storage is 0 + strange behaviour 
on different VM statuses

Ilia,

There might be scheduled jobs to calculate and update usage stats, not sure 
about this. Have you tried leaving it some more time between operations? Like, 
kill the VM or whatever operations you want in the evening and see if the stats 
are correct the next day.

Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

- Original Message -
> From: "Ilia Shakitko" 
> To: dev@cloudstack.apache.org
> Sent: Wednesday, 5 November, 2014 12:49:41
> Subject: [CAPACITY STATS][4.4] - Primary storage is 0 + strange
> behaviour on different VM statuses

> Hello,
>
> I am experiencing new features in ACS 4.4 and playing with VMs and
> ComputeOfferings to see what I can do. And I noticed 2 strange things.
>
> First of all. Whatever status a VM has – I can’t see Primary Storage is used:
> http://clip2net.com/s/jdOCBQ
>
> At second I made this experiment:
> 1) VM is Running: Amount of allocated resoures is X
> 2) Stop VM: Amount of alloc.resources is still X
> 3) Destroy VM: Amount of alloc.resources drops to Y
> 4) Recover VM (it is in stopped state now): Amount of allo.resources
> is still Y
> - WHAT?!
>
> * I am checking numbers in both places (pie charts and full capacity
> stats)
>
>
> I think something is wrong here. Isn’t it?
>
> Kind regards,
>
> Ilia Shakitko
> Innovation Engineer
> LeaseWeb Technologies B.V.
>
> T: +31 20 316 0235
>
> E: i.shaki...@tech.leaseweb.com
> W: www.leaseweb.com
>
> Luttenbergweg 8,1101 EC Amsterdam,  Netherlands


RE: [CAPACITY STATS][4.4] - Primary storage is 0 + strange behaviour on different VM statuses

2014-11-07 Thread Ilia Shakitko
Maybe it's because of that exception:

ERROR [c.c.a.AlertManagerImpl] (CapacityChecker:ctx-334ac971) Caught exception 
in recalculating capacity
java.lang.NullPointerException
at 
com.cloud.capacity.CapacityManagerImpl.updateCapacityForHost(CapacityManagerImpl.java:649)
at 
com.cloud.alert.AlertManagerImpl.recalculateCapacity(AlertManagerImpl.java:282)
at 
com.cloud.alert.AlertManagerImpl.checkForAlerts(AlertManagerImpl.java:434)
at 
com.cloud.alert.AlertManagerImpl$CapacityChecker.runInContext(AlertManagerImpl.java:424)
at 
org.apache.cloudstack.managed.context.ManagedContextTimerTask$1.runInContext(ManagedContextTimerTask.java:30)
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 
org.apache.cloudstack.managed.context.ManagedContextTimerTask.run(ManagedContextTimerTask.java:27)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)


Kind regards,

Ilia Shakitko
Innovation Engineer
LeaseWeb Technologies B.V.

T: +31 20 316 0235
M:
E: i.shaki...@tech.leaseweb.com
W: http://www.leaseweb.com

Luttenbergweg 8, 1101 EC Amsterdam, Netherlands


-Original Message-
From: Ilia Shakitko [mailto:i.shaki...@tech.leaseweb.com]
Sent: vrijdag, 07 november, 2014 15:50
To: dev@cloudstack.apache.org
Subject: RE: [CAPACITY STATS][4.4] - Primary storage is 0 + strange behaviour 
on different VM statuses

Hi Lucian,

I am looking to it few days playing with VMs. So yes, I did :)


Kind regards,

Ilia Shakitko
Innovation Engineer
LeaseWeb Technologies B.V.

T: +31 20 316 0235
M:
E: i.shaki...@tech.leaseweb.com
W: http://www.leaseweb.com

Luttenbergweg 8, 1101 EC Amsterdam, Netherlands


-Original Message-
From: Nux! [mailto:n...@li.nux.ro]
Sent: vrijdag, 07 november, 2014 14:34
To: dev@cloudstack.apache.org
Subject: Re: [CAPACITY STATS][4.4] - Primary storage is 0 + strange behaviour 
on different VM statuses

Ilia,

There might be scheduled jobs to calculate and update usage stats, not sure 
about this. Have you tried leaving it some more time between operations? Like, 
kill the VM or whatever operations you want in the evening and see if the stats 
are correct the next day.

Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

- Original Message -
> From: "Ilia Shakitko" 
> To: dev@cloudstack.apache.org
> Sent: Wednesday, 5 November, 2014 12:49:41
> Subject: [CAPACITY STATS][4.4] - Primary storage is 0 + strange
> behaviour on different VM statuses

> Hello,
>
> I am experiencing new features in ACS 4.4 and playing with VMs and
> ComputeOfferings to see what I can do. And I noticed 2 strange things.
>
> First of all. Whatever status a VM has – I can’t see Primary Storage is used:
> http://clip2net.com/s/jdOCBQ
>
> At second I made this experiment:
> 1) VM is Running: Amount of allocated resoures is X
> 2) Stop VM: Amount of alloc.resources is still X
> 3) Destroy VM: Amount of alloc.resources drops to Y
> 4) Recover VM (it is in stopped state now): Amount of allo.resources
> is still Y
> - WHAT?!
>
> * I am checking numbers in both places (pie charts and full capacity
> stats)
>
>
> I think something is wrong here. Isn’t it?
>
> Kind regards,
>
> Ilia Shakitko
> Innovation Engineer
> LeaseWeb Technologies B.V.
>
> T: +31 20 316 0235
>
> E: i.shaki...@tech.leaseweb.com
> W: www.leaseweb.com
>
> Luttenbergweg 8,1101 EC Amsterdam,  Netherlands


Build failed in Jenkins: build-4.5 #103

2014-11-07 Thread jenkins
See 

Changes:

[mike.tutkowski] Allow infrastructure to handle delete of volume from DB

--
[...truncated 3615 lines...]
[INFO] Compiling 1 source file to 

[INFO] 
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ 
cloud-plugin-user-authenticator-saml2 ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ 
cloud-plugin-user-authenticator-saml2 ---
[INFO] Compiling 4 source files to 

[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ 
cloud-plugin-snmp-alerts ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ 
cloud-plugin-snmp-alerts ---
[INFO] Compiling 5 source files to 

[INFO] 
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ 
cloud-plugin-user-authenticator-sha256salted ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ 
cloud-plugin-user-authenticator-sha256salted ---
[INFO] Compiling 1 source file to 

[INFO] 
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ 
cloud-plugin-example-dns-notifier ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ 
cloud-plugin-example-dns-notifier ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.12:test (default-test) @ 
cloud-plugin-example-dns-notifier ---
[INFO] Surefire report directory: 


---
 T E S T S
---
[INFO] 
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ 
cloud-plugin-snmp-alerts ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ 
cloud-plugin-snmp-alerts ---
[INFO] Compiling 2 source files to 

[INFO] 
[INFO] --- maven-surefire-plugin:2.12:test (default-test) @ 
cloud-plugin-user-authenticator-sha256salted ---
[INFO] Surefire report directory: 


---
 T E S T S
---

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] 
[INFO] Building Apache CloudStack Plugin - Syslog Alerts 4.5.0-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-surefire-plugin:2.12:test (default-test) @ 
cloud-plugin-user-authenticator-saml2 ---
[INFO] Surefire report directory: 


---
 T E S T S
---
[INFO] 
[INFO] -

paramiko

2014-11-07 Thread Sebastien Goasguen
While installing cloudstack-management I just realized we have a dependency on 
python paramiko.
which has a dependency of course on pycrypto, and we seem to use an old version 
2.0.1.

Anyone knows where we use paramiko ?

Re: paramiko

2014-11-07 Thread David Nalley
I seem to recall that we had to remove paramiko back in 2012 because
it didn't conform to the licensing requirements. (Paramiko is LGPL,
which is a Cat X license.)

Indeed this message seems to indicate we removed it from the codebase.
Not sure why we would add that back in.

http://markmail.org/message/t34r7kltm3dyg4ue

--David



On Fri, Nov 7, 2014 at 10:31 AM, Sebastien Goasguen  wrote:
> While installing cloudstack-management I just realized we have a dependency 
> on python paramiko.
> which has a dependency of course on pycrypto, and we seem to use an old 
> version 2.0.1.
>
> Anyone knows where we use paramiko ?


ssvm trying to mount nfs secondary/primary through link local

2014-11-07 Thread Sebastien Goasguen
Hi folks,

I got this weird behavior in a single node install centos/KVM , acs 4.3.1 where 
the ssvm is trying to mount the secondary and primary storage using the link 
local address…

If I try to mount manually using the IP of the NFS server it does not even work.

thoughts ?

Re: ssvm trying to mount nfs secondary/primary through link local

2014-11-07 Thread Sebastien Goasguen

On Nov 7, 2014, at 11:09 AM, Sebastien Goasguen  wrote:

> Hi folks,
> 
> I got this weird behavior in a single node install centos/KVM , acs 4.3.1 
> where the ssvm is trying to mount the secondary and primary storage using the 
> link local address…
> 
> If I try to mount manually using the IP of the NFS server it does not even 
> work.
> 
> thoughts ?

this was solved by removing an iptable rule but it seems that bunch of rules 
are being added by the agent ...



RE: Question about XenServer plug-ins

2014-11-07 Thread Stephen Turner
I believe it was part of a general clean-up to try and use XenServer public 
APIs; rather than modify the XenServer itself, which may or may not work in 
future XenServer versions.

-- 
Stephen Turner


-Original Message-
From: Mike Tutkowski [mailto:mike.tutkow...@solidfire.com] 
Sent: 05 November 2014 01:23
To: dev@cloudstack.apache.org
Subject: Question about XenServer plug-ins

Hi,

In XenServerStorageProcessor there are several times when we make calls to 
XenServer plug-ins (for example, to download a template from secondary storage 
to a XenServer SR).

In Xenserver625StorageProcessor we seem to handle this kind of work in Java 
code instead of calling into the XenServer plug-ins.

I was curious if anyone remembers the history behind this transition?

Thanks!

--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
*™*


Re: Question about XenServer plug-ins

2014-11-07 Thread Mike Tutkowski
OK - thanks, Stephen

On Friday, November 7, 2014, Stephen Turner 
wrote:

> I believe it was part of a general clean-up to try and use XenServer
> public APIs; rather than modify the XenServer itself, which may or may not
> work in future XenServer versions.
>
> --
> Stephen Turner
>
>
> -Original Message-
> From: Mike Tutkowski [mailto:mike.tutkow...@solidfire.com ]
> Sent: 05 November 2014 01:23
> To: dev@cloudstack.apache.org 
> Subject: Question about XenServer plug-ins
>
> Hi,
>
> In XenServerStorageProcessor there are several times when we make calls to
> XenServer plug-ins (for example, to download a template from secondary
> storage to a XenServer SR).
>
> In Xenserver625StorageProcessor we seem to handle this kind of work in
> Java code instead of calling into the XenServer plug-ins.
>
> I was curious if anyone remembers the history behind this transition?
>
> Thanks!
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkow...@solidfire.com 
> o: 303.746.7302
> Advancing the way the world uses the cloud
> *™*
>


-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
*™*


RE: Creating a backup of a hypervisor snapshot

2014-11-07 Thread Stephen Turner
Mike, are you saying that XenCenter disagrees with xe? That doesn't seem right 
as they both get their info from the same API. Maybe XenCenter is looking at 
something subtly different.

XenCenter is open source (https://github.com/xenserver/xenadmin), so you can 
consult the source to see what it's reporting. Or send a screenshot of what 
you're looking at and I can find the correct bit of source.

-- 
Stephen Turner


-Original Message-
From: Mike Tutkowski [mailto:mike.tutkow...@solidfire.com] 
Sent: 04 November 2014 17:28
To: dev@cloudstack.apache.org; Edison Su
Subject: Creating a backup of a hypervisor snapshot

Hi,

The standard behavior when we take a snapshot of a volume on XenServer is to 
take a hypervisor snapshot of the volume and then copy this snapshot to 
secondary storage.

We then try to delete all other hypervisor snapshots for this volume.

I notice the process of deleting all other hypervisor snapshots for this volume 
never finds any snapshots to delete and our list of hypervisor snapshots 
continues to grow over time for the volume in question.

(Below) Set snapshots = volume.getSnapshots(conn); returns the empty set, 
so there's nothing to delete.

However, if I look in XenCenter, I can see hypervisor snapshots for the volume 
in question.

It appears we are passing in the correct info to this method, too.

When I use xe, it confirms that the VDI that represents our volume does not 
have any snapshots, which seems odds.

protected boolean destroySnapshotOnPrimaryStorageExceptThis(Connection
conn, String volumeUuid, String avoidSnapshotUuid) {

try {

VDI volume = getVDIbyUuid(conn, volumeUuid);

if (volume == null) {

throw new InternalErrorException("Could not destroy snapshot on 
volume " + volumeUuid + " due to can not find it");

}

Set snapshots = volume.getSnapshots(conn);

for (VDI snapshot : snapshots) {

try {

if (!snapshot.getUuid(conn).equals(avoidSnapshotUuid)) {

snapshot.destroy(conn);

}

} catch (Exception e) {

String msg = "Destroying snapshot: " + snapshot + " on 
primary storage failed due to " + e.toString();

s_logger.warn(msg, e);

}

}

s_logger.debug("Successfully destroyed snapshot on volume: " + 
volumeUuid + " execept this current snapshot " + avoidSnapshotUuid);

return true;

} catch (XenAPIException e) {

String msg = "Destroying snapshot on volume: " + volumeUuid + "
execept this current snapshot " + avoidSnapshotUuid + " failed due to " + 
e.toString();

s_logger.error(msg, e);

} catch (Exception e) {

String msg = "Destroying snapshot on volume: " + volumeUuid + "
execept this current snapshot " + avoidSnapshotUuid + " failed due to " + 
e.toString();

s_logger.warn(msg, e);

}


return false;

}

--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
*™*


Re: Question about XenServer plug-ins

2014-11-07 Thread Alex Huang
Mike,

XenServer 6.2 + SP1 + XS62ESP1004 hotfix and the versions after support a
new API that allows CloudStack to copy the deltas between two snapshots.
With that addition, CloudStack no longer needed the plugin scripts because
that's what the plugin scripts were mainly for.  Don't try to backport this
to code prior to 6.2 or even plain vanilla 6.2 itself, it won't work as
that API is not there.

In CloudStack source code, we refer to this XenServer combination as
XenServer6.25 to indicate the significance of the change.  There's no
official XenServer 6.25 version.

--Alex

On Tue, Nov 4, 2014 at 5:22 PM, Mike Tutkowski  wrote:

> Hi,
>
> In XenServerStorageProcessor there are several times when we make calls to
> XenServer plug-ins (for example, to download a template from secondary
> storage to a XenServer SR).
>
> In Xenserver625StorageProcessor we seem to handle this kind of work in Java
> code instead of calling into the XenServer plug-ins.
>
> I was curious if anyone remembers the history behind this transition?
>
> Thanks!
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkow...@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud
> *™*
>


Re: Question about XenServer plug-ins

2014-11-07 Thread Mike Tutkowski
Great - thanks, Alex.

I remember looking for a version 6.2.5 of XenServer about nine months ago
(because of that name in CloudStack) and finding out it doesn't actually
exist. :) That it is, in fact, 6.2 + a patch or two.

What this mainly interests me for is that I need to perform some activity
on 6.1 that I've updated the code for and it looks like I'll need to
provide a similar implementation for 6.2.5 so that that same functionality
works on that platform (because it seems like we can't rely on those
plug-ins as much in 6.2.5). Do you agree?

Thanks!

On Fri, Nov 7, 2014 at 10:23 AM, Alex Huang  wrote:

> Mike,
>
> XenServer 6.2 + SP1 + XS62ESP1004 hotfix and the versions after support a
> new API that allows CloudStack to copy the deltas between two snapshots.
> With that addition, CloudStack no longer needed the plugin scripts because
> that's what the plugin scripts were mainly for.  Don't try to backport this
> to code prior to 6.2 or even plain vanilla 6.2 itself, it won't work as
> that API is not there.
>
> In CloudStack source code, we refer to this XenServer combination as
> XenServer6.25 to indicate the significance of the change.  There's no
> official XenServer 6.25 version.
>
> --Alex
>
> On Tue, Nov 4, 2014 at 5:22 PM, Mike Tutkowski <
> mike.tutkow...@solidfire.com
> > wrote:
>
> > Hi,
> >
> > In XenServerStorageProcessor there are several times when we make calls
> to
> > XenServer plug-ins (for example, to download a template from secondary
> > storage to a XenServer SR).
> >
> > In Xenserver625StorageProcessor we seem to handle this kind of work in
> Java
> > code instead of calling into the XenServer plug-ins.
> >
> > I was curious if anyone remembers the history behind this transition?
> >
> > Thanks!
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkow...@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the cloud
> > *™*
> >
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
*™*


Re: Creating a backup of a hypervisor snapshot

2014-11-07 Thread Mike Tutkowski
Let me look into this again. At the time, I was busy implementing some
other functionality when I came across what seemed like an existing issue
in our code.

It is odd to me that old (hypervisor) snapshots never get deleted and the
code I copy/pasted in has the purpose of deleting those old snapshots, but
it never seems to work that way.

On Fri, Nov 7, 2014 at 10:20 AM, Stephen Turner 
wrote:

> Mike, are you saying that XenCenter disagrees with xe? That doesn't seem
> right as they both get their info from the same API. Maybe XenCenter is
> looking at something subtly different.
>
> XenCenter is open source (https://github.com/xenserver/xenadmin), so you
> can consult the source to see what it's reporting. Or send a screenshot of
> what you're looking at and I can find the correct bit of source.
>
> --
> Stephen Turner
>
>
> -Original Message-
> From: Mike Tutkowski [mailto:mike.tutkow...@solidfire.com]
> Sent: 04 November 2014 17:28
> To: dev@cloudstack.apache.org; Edison Su
> Subject: Creating a backup of a hypervisor snapshot
>
> Hi,
>
> The standard behavior when we take a snapshot of a volume on XenServer is
> to take a hypervisor snapshot of the volume and then copy this snapshot to
> secondary storage.
>
> We then try to delete all other hypervisor snapshots for this volume.
>
> I notice the process of deleting all other hypervisor snapshots for this
> volume never finds any snapshots to delete and our list of hypervisor
> snapshots continues to grow over time for the volume in question.
>
> (Below) Set snapshots = volume.getSnapshots(conn); returns the empty
> set, so there's nothing to delete.
>
> However, if I look in XenCenter, I can see hypervisor snapshots for the
> volume in question.
>
> It appears we are passing in the correct info to this method, too.
>
> When I use xe, it confirms that the VDI that represents our volume does
> not have any snapshots, which seems odds.
>
> protected boolean destroySnapshotOnPrimaryStorageExceptThis(Connection
> conn, String volumeUuid, String avoidSnapshotUuid) {
>
> try {
>
> VDI volume = getVDIbyUuid(conn, volumeUuid);
>
> if (volume == null) {
>
> throw new InternalErrorException("Could not destroy
> snapshot on volume " + volumeUuid + " due to can not find it");
>
> }
>
> Set snapshots = volume.getSnapshots(conn);
>
> for (VDI snapshot : snapshots) {
>
> try {
>
> if (!snapshot.getUuid(conn).equals(avoidSnapshotUuid))
> {
>
> snapshot.destroy(conn);
>
> }
>
> } catch (Exception e) {
>
> String msg = "Destroying snapshot: " + snapshot + " on
> primary storage failed due to " + e.toString();
>
> s_logger.warn(msg, e);
>
> }
>
> }
>
> s_logger.debug("Successfully destroyed snapshot on volume: " +
> volumeUuid + " execept this current snapshot " + avoidSnapshotUuid);
>
> return true;
>
> } catch (XenAPIException e) {
>
> String msg = "Destroying snapshot on volume: " + volumeUuid + "
> execept this current snapshot " + avoidSnapshotUuid + " failed due to " +
> e.toString();
>
> s_logger.error(msg, e);
>
> } catch (Exception e) {
>
> String msg = "Destroying snapshot on volume: " + volumeUuid + "
> execept this current snapshot " + avoidSnapshotUuid + " failed due to " +
> e.toString();
>
> s_logger.warn(msg, e);
>
> }
>
>
> return false;
>
> }
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkow...@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud
> *™*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
*™*


Re: About param of cloudstack api

2014-11-07 Thread Nitin Mehta
There should be UI doing the same thing and you can intercept the api logs
or use firebug to see how it did.
Deployvm takes in a list of network ids as well. You can check that.

On 06/11/14 11:57 PM, "lky"  wrote:

>I know use cloudstack api need to build the sig and python shell can
>do
>this through doc, now I want to call 'updateNetworkServiceProvider' via
>api
>, but this method has the param 'servicelist' which is a list , I can not
>find a example for this case , anyone can give a hand ?
>



Review Request 27751: CLOUDSTACK-7862: Fixed the script 'maint/test_high_availability.py' - Test Cases failing on Simulator as Testcases try to ssh to the VMs

2014-11-07 Thread Chandan Purushothama

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/27751/
---

Review request for cloudstack, sangeetha hariharan and SrikanteswaraRao Talluri.


Bugs: CLOUDSTACK-7862
https://issues.apache.org/jira/browse/CLOUDSTACK-7862


Repository: cloudstack-git


Description
---

Test Cases are trying to validate SSH access and failing. These Test Cases are 
not meant to be run on SImulator due to their validation requirements. Hence 
they cannot be run with Simulator


Diffs
-

  test/integration/component/maint/test_high_availability.py cc687f8 

Diff: https://reviews.apache.org/r/27751/diff/


Testing
---

Changed the tags on Tests. Testing not done


Thanks,

Chandan Purushothama



Review Request 27756: CLOUDSTACK-7863 : Fixed the script "test_vpc_vms_deployment.py" - Test Cases failing on Simulator as Testcases try to ssh to the VMs

2014-11-07 Thread Chandan Purushothama

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/27756/
---

Review request for cloudstack, sangeetha hariharan and SrikanteswaraRao Talluri.


Bugs: CLOUDSTACK-7863
https://issues.apache.org/jira/browse/CLOUDSTACK-7863


Repository: cloudstack-git


Description
---

Test Cases are trying to validate SSH access and failing. These Test Cases are 
not meant to be run on SImulator due to their validation requirements. Hence 
they cannot be run with Simulator


Diffs
-

  test/integration/component/test_vpc_vms_deployment.py e61b2f8 

Diff: https://reviews.apache.org/r/27756/diff/


Testing
---

Changed the tags on Tests. Testing not done


Thanks,

Chandan Purushothama



Build failed in Jenkins: build-master-noredist #3730

2014-11-07 Thread jenkins
See 

Changes:

[min.chen] BUG-ID: CS-27191: CPVM continues to be in Stopped state after a 
failure

[min.chen] Revert "BUG-ID: CS-27191: CPVM continues to be in Stopped state 
after a failure"

[min.chen] CLOUDSTACK-7864: CPVM continues to be in Stopped state after a 
failure to start because of a management server restart.

--
[...truncated 11769 lines...]
  
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-api/2.12/surefire-api-2.12.jar
 (122 KB at 3193.1 KB/sec)
  
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/2.12/maven-surefire-common-2.12.jar
 (219 KB at 3641.0 KB/sec)
[INFO] Surefire report directory: 

Downloading: 
http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit4/2.12/surefire-junit4-2.12.pom
3/3 KB
 
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit4/2.12/surefire-junit4-2.12.pom
 (3 KB at 106.8 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-providers/2.12/surefire-providers-2.12.pom
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ 
cloud-framework-managed-context ---
3/3 KB   
 
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-providers/2.12/surefire-providers-2.12.pom
 (3 KB at 152.7 KB/sec)
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ 
cloud-framework-managed-context ---
[INFO] Compiling 8 source files to 

Downloading: 
http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit4/2.12/surefire-junit4-2.12.jar
4/34 KB   
8/34 KB   
12/34 KB   
16/34 KB   
20/34 KB   
24/34 KB   
28/34 KB   
32/34 KB   
34/34 KB   
   
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit4/2.12/surefire-junit4-2.12.jar
 (34 KB at 1117.5 KB/sec)

---
 T E S T S
---

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ cloud-quickcloud ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ 
cloud-quickcloud ---
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ 
cloud-quickcloud ---
[INFO] Installing 

 to 
/jenkins/.m2/repository/org/apache/cloudstack/cloud-quickcloud/4.6.0-SNAPSHOT/cloud-quickcloud-4.6.0-SNAPSHOT.jar
[INFO] Installing 

 to 
/jenkins/.m2/repository/org/apache/cloudstack/cloud-quickcloud/4.6.0-SNAPSHOT/cloud-quickcloud-4.6.0-SNAPSHOT.pom
[INFO] Starting audit...
Audit done.

[INFO] 
[INFO] --- maven-remote-resources-plugin:1.3:process (default) @ 
cloudstack-service-console-proxy ---
[INFO] Starting audit...
Audit done.

[INFO] 
[INFO] --- maven-remote-resources-plugin:1.3:process (default) @ 
cloudstack-service-secondary-storage ---
[INFO] 
[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ 
cloudstack-service-console-proxy ---
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ 
cloudstack-service-console-proxy ---
[INFO] Installing 

 to 
/jenkins/.m2/repository/org/apache/cloudstack/cloudstack-service-console-proxy/4.6.0-SNAPSHOT/cloudstack-service-console-proxy-4.6.0-SNAPSHOT.pom
[INFO] 
[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ 
cloudstack-service-secondary-storage ---
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ 
cloudstack-service-secondary-storage ---
[INFO] Installing 

 to 
/jenkins/.m2/repository/org/apache/cloudstack/cloudstack-service-secondary-storage/4.6.0-SNAPSHOT/cloudstack-service-secondary-storage-4.6.0-SNAPSHOT.pom
[INFO] 
[INFO] --- maven-resou

Jenkins build is back to normal : build-master-noredist #3731

2014-11-07 Thread jenkins
See 



Jenkins build is back to normal : build-4.5 #104

2014-11-07 Thread jenkins
See 



Domains and users

2014-11-07 Thread Giri Prasad
Hi All,


  I have cloudstack 4.x working correctly. I have created a few domains, 
respective domain admins and domain users.

Also, one instance (with all the os and required apps) is created by every 
domain admin. Now, I want the domain users, to be able to access and run the 
the instances, created by the domain admin.

I am using php wrappers and cloudstack api's, using which domain admins and 
domain users are logging in without any issues.

When the domain user (not the domain admin) logs in, using his 
userid/passwd/domainname, how to access, the instances, created by the domain 
admin, and what priveleges should be made available for the domain user, so 
that he can access and run the instances created by the domain admin.



Thanks & Regards,Giri


Re: Domains and users

2014-11-07 Thread Denni Sembiring
I have cloudstack 4.
Pada 8 Nov 2014 14:49, "Giri Prasad"  menulis:
>
> Hi All,
>
>
>   I have cloudstack 4.x working correctly. I have created a few domains,
respective domain admins and domain users.
>
> Also, one instance (with all the os and required apps) is created by
every domain admin. Now, I want the domain users, to be able to access and
run the the instances, created by the domain admin.
>
> I am using php wrappers and cloudstack api's, using which domain admins
and domain users are logging in without any issues.
>
> When the domain user (not the domain admin) logs in, using his
userid/passwd/domainname, how to access, the instances, created by the
domain admin, and what priveleges should be made available for the domain
user, so that he can access and run the instances created by the domain
admin.
>
>
>
> Thanks & Regards,Giri