Re: [Ask] Resize Primary Storage

2013-06-26 Thread Jijun

On 06/26/2013 02:10 PM, Denni Sembiring wrote:

Thank you  Jijun.
I've tried it, and I want to ask, how do we allocate the whole of the
hypervisor capacity as a primary storage?
I mean in the UI we will see the capacity of primary storage show 1.72 TB.
will it possible?
yes , in my UI (CS 3.0.x) Disk Total  shows 1.72TB equals to result of   
virsh pool-info.





thanks,

Denni Sembiring


2013/6/25 Jijun 


On 06/26/2013 12:56 PM, Denni Sembiring wrote:


Yes Sir, I use NFS Server 4.

when I use this command $ virsh pool-list on my hypervisor,
its shown like this

[root@hypervs ~]# virsh pool-list
Name State Autostart
--**---
0f1c578f-c006-317c-b622-**15d77214c1b7 active no
422155c4-15f5-4354-9ace-**540b4c94ebb6 active no
6260fa35-58f0-3ba3-9337-**c05fac113f57 active no
67779d92-1966-3842-aed1-**54e565f372da active no
fd8f79e7-46e7-3337-ad57-**bd09356b4f7a active no

I didn't understand about it Sir.  What should I do?
on the list shows that the status active no. Do i have to activate it
first?


virsh pool-list show the pool list  the libvirt in your hypervisor . just
like the result header said:

[root@hypervs ~]# virsh pool-list
Name State Autostart
--**---
0f1c578f-c006-317c-b622-**15d77214c1b7 active no

it means:
the Name(uuid) is  0f1c578f-c006-317c-b622-**15d77214c1b7 ,
the State is active,
Autostart is no.

you can get the detail of the pool 0f1c578f-c006-317c-b622-**15d77214c1b7
by  this :

[root@hypervs ~]# virsh pool-info 0f1c578f-c006-317c-b622-**15d77214c1b7
Name:   0f1c578f-c006-317c-b622-**15d77214c1b7
UUID:   0f1c578f-c006-317c-b622-**15d77214c1b7
State:  running
Persistent: yes
Autostart:  no
Capacity:   1.72 TB
Allocation: 150.58 GB
Available:  1.57 TB



Thanks,
Jijun



  If yes, how do I enable it?

Thanks,

Regards,
Denni sembiring


2013/6/25 Wido den Hollander 

  Hi,



On 06/25/2013 06:41 AM, Denni Sembiring wrote:

  I had to install Cloudstack 4.02. I use 5 hosts, 1 as management

server, and the other into the hypervisor (KVM). when all has gone
well, I went to the UI and see my primary storage show only 98 Gb ,
while the entire capacity of hypervisor should be 2 Tb . How can I
change the size of my primary storage?  what should i do so my primary
storage size according to the size of my hypervisor?



  The management server gets the information from libvirt on the

hypervisor.
Is this NFS?

What does this show on the hypervisor:

$ virsh pool-info 

Wher you can list the storage pools in libvirt with:

$ virsh pool-list

Wido



  Best regards,

Denni Sembiring
Del Polytechnic of Informatics







Review Request 12101: CLOUDSTACK-3082: System VMs are failed to start with Xen 6.2.0( Failing to create VIF's)

2013-06-26 Thread Sanjay Tripathi

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

Review request for cloudstack, Devdeep Singh and Sateesh Chodapuneedi.


Bugs: CLOUDSTACK-3082


Repository: cloudstack-git


Description
---

CLOUDSTACK-3082: System VMs are failed to start with Xen 6.2.0( Failing to 
create VIF's).

https://issues.apache.org/jira/browse/CLOUDSTACK-3082


Diffs
-

  
plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
 af640a2 

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


Testing
---

Tests:

1) setup a CS environment with XenServer 6.2
2) Verified that systemVMs are coming up.


Thanks,

Sanjay Tripathi



Re: [Ask] Resize Primary Storage

2013-06-26 Thread Denni Sembiring
Thanks Jijun, but when I use that command, the output shown

Name:   0f1c578f-c006-317c-**22-15d77214c1b7
UUID:   0f1c578f-c006-317c-**22-15d77214c1b7
State:  running
Persistent: no
Autostart:  no
Capacity:   465.66 GiB
Allocation: 141.56 GiB
Available:  324.1 GiB

I went to the UI and see the total primary storage capacity is only 152 GB.
how can I change the size of that primary storage capacity?
what I must configure to make the capacity size into all of allocation size?

thanks,

Regards,
Denni Sembiring

2013/6/26 Jijun 

> On 06/26/2013 02:10 PM, Denni Sembiring wrote:
>
>> Thank you  Jijun.
>> I've tried it, and I want to ask, how do we allocate the whole of the
>> hypervisor capacity as a primary storage?
>> I mean in the UI we will see the capacity of primary storage show 1.72 TB.
>> will it possible?
>>
> yes , in my UI (CS 3.0.x) Disk Total  shows 1.72TB equals to result of
> virsh pool-info.
>
>
>
>> thanks,
>>
>> Denni Sembiring
>>
>>
>> 2013/6/25 Jijun 
>>
>>  On 06/26/2013 12:56 PM, Denni Sembiring wrote:
>>>
>>>  Yes Sir, I use NFS Server 4.

 when I use this command $ virsh pool-list on my hypervisor,
 its shown like this

 [root@hypervs ~]# virsh pool-list
 Name State Autostart
 -----
 0f1c578f-c006-317c-b622-15d77214c1b7 active no
 422155c4-15f5-4354-9ace-540b4c94ebb6 active no
 6260fa35-58f0-3ba3-9337-c05fac113f57 active no
 67779d92-1966-3842-aed1-54e565f372da active no
 fd8f79e7-46e7-3337-ad57-bd09356b4f7a active no


 I didn't understand about it Sir.  What should I do?
 on the list shows that the status active no. Do i have to activate it
 first?

  virsh pool-list show the pool list  the libvirt in your hypervisor .
>>> just
>>> like the result header said:
>>>
>>> [root@hypervs ~]# virsh pool-list
>>> Name State Autostart
>>> -----
>>> 0f1c578f-c006-317c-b622-15d77214c1b7 active no
>>>
>>> it means:
>>> the Name(uuid) is  0f1c578f-c006-317c-b622-15d77214c1b7 ,
>>>
>>> the State is active,
>>> Autostart is no.
>>>
>>> you can get the detail of the pool 0f1c578f-c006-317c-b622-
>>> 15d77214c1b7
>>> by  this :
>>>
>>> [root@hypervs ~]# virsh pool-info 0f1c578f-c006-317c-b622-
>>> 15d77214c1b7
>>> Name:   0f1c578f-c006-317c-b622-15d77214c1b7
>>> UUID:   0f1c578f-c006-317c-b622-15d77214c1b7
>>>
>>> State:  running
>>> Persistent: yes
>>> Autostart:  no
>>> Capacity:   1.72 TB
>>> Allocation: 150.58 GB
>>> Available:  1.57 TB
>>>
>>>
>>>
>>> Thanks,
>>> Jijun
>>>
>>>
>>>
>>>   If yes, how do I enable it?
>>>
 Thanks,

 Regards,
 Denni sembiring


 2013/6/25 Wido den Hollander 

   Hi,

>
>
> On 06/25/2013 06:41 AM, Denni Sembiring wrote:
>
>   I had to install Cloudstack 4.02. I use 5 hosts, 1 as management
>
>> server, and the other into the hypervisor (KVM). when all has gone
>> well, I went to the UI and see my primary storage show only 98 Gb ,
>> while the entire capacity of hypervisor should be 2 Tb . How can I
>> change the size of my primary storage?  what should i do so my primary
>> storage size according to the size of my hypervisor?
>>
>>
>>
>>   The management server gets the information from libvirt on the
>>
> hypervisor.
> Is this NFS?
>
> What does this show on the hypervisor:
>
> $ virsh pool-info 
>
> Wher you can list the storage pools in libvirt with:
>
> $ virsh pool-list
>
> Wido
>
>
>
>   Best regards,
>
>> Denni Sembiring
>> Del Polytechnic of Informatics
>>
>>
>>
>>
>


Re: [Ask] Resize Primary Storage

2013-06-26 Thread Wido den Hollander



On 06/26/2013 10:04 AM, Denni Sembiring wrote:

Thanks Jijun, but when I use that command, the output shown

Name:   0f1c578f-c006-317c-**22-15d77214c1b7
UUID:   0f1c578f-c006-317c-**22-15d77214c1b7
State:  running
Persistent: no
Autostart:  no
Capacity:   465.66 GiB
Allocation: 141.56 GiB
Available:  324.1 GiB

I went to the UI and see the total primary storage capacity is only 152 GB.
how can I change the size of that primary storage capacity?
what I must configure to make the capacity size into all of allocation size?



There is no configuration on that. The management server will query this 
information on the hypervisor and store that.


If you tail the logs of your management server, you will see a stats 
collector running, do you see any log lines with update information 
about that storage pool?


Wido


thanks,

Regards,
Denni Sembiring

2013/6/26 Jijun 


On 06/26/2013 02:10 PM, Denni Sembiring wrote:


Thank you  Jijun.
I've tried it, and I want to ask, how do we allocate the whole of the
hypervisor capacity as a primary storage?
I mean in the UI we will see the capacity of primary storage show 1.72 TB.
will it possible?


yes , in my UI (CS 3.0.x) Disk Total  shows 1.72TB equals to result of
virsh pool-info.




thanks,

Denni Sembiring


2013/6/25 Jijun 

  On 06/26/2013 12:56 PM, Denni Sembiring wrote:


  Yes Sir, I use NFS Server 4.


when I use this command $ virsh pool-list on my hypervisor,
its shown like this

[root@hypervs ~]# virsh pool-list
Name State Autostart
-----
0f1c578f-c006-317c-b622-15d77214c1b7 active no
422155c4-15f5-4354-9ace-540b4c94ebb6 active no
6260fa35-58f0-3ba3-9337-c05fac113f57 active no
67779d92-1966-3842-aed1-54e565f372da active no
fd8f79e7-46e7-3337-ad57-bd09356b4f7a active no


I didn't understand about it Sir.  What should I do?
on the list shows that the status active no. Do i have to activate it
first?

  virsh pool-list show the pool list  the libvirt in your hypervisor .

just
like the result header said:

[root@hypervs ~]# virsh pool-list
Name State Autostart
-----
0f1c578f-c006-317c-b622-15d77214c1b7 active no

it means:
the Name(uuid) is  0f1c578f-c006-317c-b622-15d77214c1b7 ,

the State is active,
Autostart is no.

you can get the detail of the pool 0f1c578f-c006-317c-b622-
15d77214c1b7
by  this :

[root@hypervs ~]# virsh pool-info 0f1c578f-c006-317c-b622-
15d77214c1b7
Name:   0f1c578f-c006-317c-b622-15d77214c1b7
UUID:   0f1c578f-c006-317c-b622-15d77214c1b7

State:  running
Persistent: yes
Autostart:  no
Capacity:   1.72 TB
Allocation: 150.58 GB
Available:  1.57 TB



Thanks,
Jijun



   If yes, how do I enable it?


Thanks,

Regards,
Denni sembiring


2013/6/25 Wido den Hollander 

   Hi,




On 06/25/2013 06:41 AM, Denni Sembiring wrote:

   I had to install Cloudstack 4.02. I use 5 hosts, 1 as management


server, and the other into the hypervisor (KVM). when all has gone
well, I went to the UI and see my primary storage show only 98 Gb ,
while the entire capacity of hypervisor should be 2 Tb . How can I
change the size of my primary storage?  what should i do so my primary
storage size according to the size of my hypervisor?



   The management server gets the information from libvirt on the


hypervisor.
Is this NFS?

What does this show on the hypervisor:

$ virsh pool-info 

Wher you can list the storage pools in libvirt with:

$ virsh pool-list

Wido



   Best regards,


Denni Sembiring
Del Polytechnic of Informatics










Review Request 12102: Fix for CLOUDSTACK-3208: showing xenhost username and password details in plain text in logs when we pefrom removehost from CS

2013-06-26 Thread Harikrishna Patnala

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

Review request for cloudstack and Abhinandan Prateek.


Bugs: CLOUDSTACK-3208


Repository: cloudstack-git


Description
---

CLOUDSTACK-3208: showing xenhost username and password details in plain 
text in logs when we pefrom removehost from CS


Diffs
-

  
plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerConnectionPool.java
 e4dd675 

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


Testing
---


Thanks,

Harikrishna Patnala



Re: How does the plugin model work for storage providers?

2013-06-26 Thread Prasanna Santhanam
On Tue, Jun 25, 2013 at 11:06:36PM +, Edison Su wrote:
> I would say, the adapter thing is the legacy stuff, all the storage
> plugins will be managed by DataStoreProviderManager. But as you
> said, we can group plugins into one place by using spring's syntax,
> such as:

>class="org.apach.***.datastoreproviderManagerImpl">
> 
> 
> 
> 
> 
> 
> 
>   

I tried something like this:
In applicationContext beanfactory:


  


  


  

  

Since I'm trying to separate storageProviders as plugins I tried putting them
in the componentContext.xml so I didn't use a . But there's a 
problem

DataStoreProvider
 | PrimaryDataStoreProvider
 | ImageDataStoreProvider

All the above are interfaces, so I can't inject them using beans and group all
vendor-specific PrimaryDataStoreProviders (Solidfire, Default etc) and the
imageStores (S3, Swift, NFS). 

Shouldn't they become abstract classes with getter/setter for the List 
providers 
to be injected into the ProviderManager?

PS: I'm no spring expert, just RTFM-ing to figure out the best way.

-- 
Prasanna.,


Powered by BigRock.com



Re: Review Request 12079: Fix for CLOUDSTACK-2794: Global parameter "router.template.id"should be removed.

2013-06-26 Thread Abhinandan Prateek

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

Ship it!


Ship It!

- Abhinandan Prateek


On June 25, 2013, 1:51 p.m., Harikrishna Patnala wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/12079/
> ---
> 
> (Updated June 25, 2013, 1:51 p.m.)
> 
> 
> Review request for cloudstack and Abhinandan Prateek.
> 
> 
> Bugs: CLOUDSTACK-2794
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> CLOUDSTACK-2794: Global parameter "router.template.id"should be removed.
> 
> 
> Diffs
> -
> 
>   server/src/com/cloud/agent/manager/AgentManagerImpl.java fb857a7 
>   server/src/com/cloud/configuration/Config.java 3a6d3aa 
>   server/src/com/cloud/template/TemplateManagerImpl.java 273614c 
>   setup/db/db/schema-410to420.sql d2add32 
> 
> Diff: https://reviews.apache.org/r/12079/diff/
> 
> 
> Testing
> ---
> 
> Tested with latest master, also upgrade case.
> 
> 
> Thanks,
> 
> Harikrishna Patnala
> 
>



Re: Review Request 12102: Fix for CLOUDSTACK-3208: showing xenhost username and password details in plain text in logs when we pefrom removehost from CS

2013-06-26 Thread Abhinandan Prateek

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

Ship it!


Ship It!

- Abhinandan Prateek


On June 26, 2013, 10:02 a.m., Harikrishna Patnala wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/12102/
> ---
> 
> (Updated June 26, 2013, 10:02 a.m.)
> 
> 
> Review request for cloudstack and Abhinandan Prateek.
> 
> 
> Bugs: CLOUDSTACK-3208
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> CLOUDSTACK-3208: showing xenhost username and password details in plain 
> text in logs when we pefrom removehost from CS
> 
> 
> Diffs
> -
> 
>   
> plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerConnectionPool.java
>  e4dd675 
> 
> Diff: https://reviews.apache.org/r/12102/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Harikrishna Patnala
> 
>



Re: Review Request 12063: Fix for CLOUDSTACK-2835: Registering router template and usage of router.template.* configuration parameter

2013-06-26 Thread Abhinandan Prateek

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

Ship it!


Ship It!

- Abhinandan Prateek


On June 24, 2013, 3:39 p.m., Harikrishna Patnala wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/12063/
> ---
> 
> (Updated June 24, 2013, 3:39 p.m.)
> 
> 
> Review request for cloudstack, Abhinandan Prateek, Kishan Kavala, and Nitin 
> Mehta.
> 
> 
> Bugs: CLOUDSTACK-2835
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> CLOUDSTACK-2835:  VR Deployement from admin registered template is failing 
> because registered template type is user. 
> Additional parameter "isrouter" in register/update template API for the root 
> admin. True if registered template is of type ROUTING.
> 
> A new template type is introduced named "ROUTING" which is used to deploy 
> router. 
> Admin registers a ROUTING type template and provides the value zone/global 
> level configuration parameters in 
> routing.template.xenserver/kvm/hyperv/vmware/lxc So that router deploys using 
> that template.
> By default router can be deployed by the normal SYSTEM template.
> 
> Added upgrade case to update the configuration parameter values 
> routing.template.xenserver/kvm/hyperv/vmware/lxc
> 
> 
> Diffs
> -
> 
>   api/src/com/cloud/storage/Storage.java 16ef019 
>   api/src/org/apache/cloudstack/api/ApiConstants.java 8ac7c3f 
>   api/src/org/apache/cloudstack/api/BaseUpdateTemplateOrIsoCmd.java b01c8d0 
>   
> api/src/org/apache/cloudstack/api/command/user/template/RegisterTemplateCmd.java
>  6a8e555 
>   
> api/src/org/apache/cloudstack/api/command/user/template/UpdateTemplateCmd.java
>  9f55f9d 
>   engine/schema/src/com/cloud/storage/dao/VMTemplateDaoImpl.java e7b85f8 
>   engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java 8f63a6c 
>   server/src/com/cloud/server/ManagementServerImpl.java 97bac1b 
>   server/src/com/cloud/storage/TemplateProfile.java 00aab4d 
>   server/src/com/cloud/template/TemplateAdapter.java d50d45b 
>   server/src/com/cloud/template/TemplateAdapterBase.java c1f0604 
>   server/src/com/cloud/template/TemplateManagerImpl.java 273614c 
> 
> Diff: https://reviews.apache.org/r/12063/diff/
> 
> 
> Testing
> ---
> 
> Tested locally.
> 
> Registered ROUTING template and checked router deployment by setting the 
> configuration parameter routing.template.xenserver to the new ROUTING 
> template.
> Tested the default behavior of router deployment from SYSTEM template.
> 
> Tested upgrade case from 4.1 to 4.2  
> 
> 
> Thanks,
> 
> Harikrishna Patnala
> 
>



Re: Review Request 12063: Fix for CLOUDSTACK-2835: Registering router template and usage of router.template.* configuration parameter

2013-06-26 Thread Abhinandan Prateek

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

Ship it!


Ship It!

- Abhinandan Prateek


On June 24, 2013, 3:39 p.m., Harikrishna Patnala wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/12063/
> ---
> 
> (Updated June 24, 2013, 3:39 p.m.)
> 
> 
> Review request for cloudstack, Abhinandan Prateek, Kishan Kavala, and Nitin 
> Mehta.
> 
> 
> Bugs: CLOUDSTACK-2835
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> CLOUDSTACK-2835:  VR Deployement from admin registered template is failing 
> because registered template type is user. 
> Additional parameter "isrouter" in register/update template API for the root 
> admin. True if registered template is of type ROUTING.
> 
> A new template type is introduced named "ROUTING" which is used to deploy 
> router. 
> Admin registers a ROUTING type template and provides the value zone/global 
> level configuration parameters in 
> routing.template.xenserver/kvm/hyperv/vmware/lxc So that router deploys using 
> that template.
> By default router can be deployed by the normal SYSTEM template.
> 
> Added upgrade case to update the configuration parameter values 
> routing.template.xenserver/kvm/hyperv/vmware/lxc
> 
> 
> Diffs
> -
> 
>   api/src/com/cloud/storage/Storage.java 16ef019 
>   api/src/org/apache/cloudstack/api/ApiConstants.java 8ac7c3f 
>   api/src/org/apache/cloudstack/api/BaseUpdateTemplateOrIsoCmd.java b01c8d0 
>   
> api/src/org/apache/cloudstack/api/command/user/template/RegisterTemplateCmd.java
>  6a8e555 
>   
> api/src/org/apache/cloudstack/api/command/user/template/UpdateTemplateCmd.java
>  9f55f9d 
>   engine/schema/src/com/cloud/storage/dao/VMTemplateDaoImpl.java e7b85f8 
>   engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java 8f63a6c 
>   server/src/com/cloud/server/ManagementServerImpl.java 97bac1b 
>   server/src/com/cloud/storage/TemplateProfile.java 00aab4d 
>   server/src/com/cloud/template/TemplateAdapter.java d50d45b 
>   server/src/com/cloud/template/TemplateAdapterBase.java c1f0604 
>   server/src/com/cloud/template/TemplateManagerImpl.java 273614c 
> 
> Diff: https://reviews.apache.org/r/12063/diff/
> 
> 
> Testing
> ---
> 
> Tested locally.
> 
> Registered ROUTING template and checked router deployment by setting the 
> configuration parameter routing.template.xenserver to the new ROUTING 
> template.
> Tested the default behavior of router deployment from SYSTEM template.
> 
> Tested upgrade case from 4.1 to 4.2  
> 
> 
> Thanks,
> 
> Harikrishna Patnala
> 
>



Re: Review Request 12078: Fix for CLOUDSTACK-3187: cluster.(cpu/memory).allocated.capacity.disablethreshold in not considering overcommit factor.

2013-06-26 Thread Abhinandan Prateek

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

Ship it!


Ship It!

- Abhinandan Prateek


On June 25, 2013, 12:11 p.m., Harikrishna Patnala wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/12078/
> ---
> 
> (Updated June 25, 2013, 12:11 p.m.)
> 
> 
> Review request for cloudstack, Abhinandan Prateek and Nitin Mehta.
> 
> 
> Bugs: CLOUDSTACK-3187
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> CLOUDSTACK-3187: cluster.(cpu/memory).allocated.capacity.disablethreshold in 
> not considering overcommit factor. cluster is getting disable based on actual 
> use.
> 
> While checking for clusters that crosses disable threshold utilization is 
> calculated based on the actual memory value of cluster. This should consider 
> the overcommit ratio from cluster_details table.
> 
> 
> Diffs
> -
> 
>   engine/schema/src/com/cloud/capacity/dao/CapacityDaoImpl.java d14ad87 
> 
> Diff: https://reviews.apache.org/r/12078/diff/
> 
> 
> Testing
> ---
> 
> Tested locally
> 
> 
> Thanks,
> 
> Harikrishna Patnala
> 
>



Re: Review Request 12063: Fix for CLOUDSTACK-2835: Registering router template and usage of router.template.* configuration parameter

2013-06-26 Thread ASF Subversion and Git Services

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


Commit 9385cf045359c9dd844548bdc701f4f614f37c68 in branch refs/heads/master 
from Harikrishna Patnala
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=9385cf0 ]

CLOUDSTACK-2835: VR Deployement from admin registered template is failing 
because registered template type is user. Additional parameter "isrouter" in 
register/update template API for the root admin. True if registered template is 
of type ROUTING.

Signed-off-by: Abhinandan Prateek 


- ASF Subversion and Git Services


On June 24, 2013, 3:39 p.m., Harikrishna Patnala wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/12063/
> ---
> 
> (Updated June 24, 2013, 3:39 p.m.)
> 
> 
> Review request for cloudstack, Abhinandan Prateek, Kishan Kavala, and Nitin 
> Mehta.
> 
> 
> Bugs: CLOUDSTACK-2835
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> CLOUDSTACK-2835:  VR Deployement from admin registered template is failing 
> because registered template type is user. 
> Additional parameter "isrouter" in register/update template API for the root 
> admin. True if registered template is of type ROUTING.
> 
> A new template type is introduced named "ROUTING" which is used to deploy 
> router. 
> Admin registers a ROUTING type template and provides the value zone/global 
> level configuration parameters in 
> routing.template.xenserver/kvm/hyperv/vmware/lxc So that router deploys using 
> that template.
> By default router can be deployed by the normal SYSTEM template.
> 
> Added upgrade case to update the configuration parameter values 
> routing.template.xenserver/kvm/hyperv/vmware/lxc
> 
> 
> Diffs
> -
> 
>   api/src/com/cloud/storage/Storage.java 16ef019 
>   api/src/org/apache/cloudstack/api/ApiConstants.java 8ac7c3f 
>   api/src/org/apache/cloudstack/api/BaseUpdateTemplateOrIsoCmd.java b01c8d0 
>   
> api/src/org/apache/cloudstack/api/command/user/template/RegisterTemplateCmd.java
>  6a8e555 
>   
> api/src/org/apache/cloudstack/api/command/user/template/UpdateTemplateCmd.java
>  9f55f9d 
>   engine/schema/src/com/cloud/storage/dao/VMTemplateDaoImpl.java e7b85f8 
>   engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java 8f63a6c 
>   server/src/com/cloud/server/ManagementServerImpl.java 97bac1b 
>   server/src/com/cloud/storage/TemplateProfile.java 00aab4d 
>   server/src/com/cloud/template/TemplateAdapter.java d50d45b 
>   server/src/com/cloud/template/TemplateAdapterBase.java c1f0604 
>   server/src/com/cloud/template/TemplateManagerImpl.java 273614c 
> 
> Diff: https://reviews.apache.org/r/12063/diff/
> 
> 
> Testing
> ---
> 
> Tested locally.
> 
> Registered ROUTING template and checked router deployment by setting the 
> configuration parameter routing.template.xenserver to the new ROUTING 
> template.
> Tested the default behavior of router deployment from SYSTEM template.
> 
> Tested upgrade case from 4.1 to 4.2  
> 
> 
> Thanks,
> 
> Harikrishna Patnala
> 
>



Re: Review Request 12078: Fix for CLOUDSTACK-3187: cluster.(cpu/memory).allocated.capacity.disablethreshold in not considering overcommit factor.

2013-06-26 Thread ASF Subversion and Git Services

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


Commit c0591531d8f29505f2f53c008b6d3fb9d8399b94 in branch refs/heads/master 
from Harikrishna Patnala
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=c059153 ]

CLOUDSTACK-3187: cluster.(cpu/memory).allocated.capacity.disablethreshold in 
not considering overcommit factor. cluster is getting disable based on actual 
use

Signed-off-by: Abhinandan Prateek 


- ASF Subversion and Git Services


On June 25, 2013, 12:11 p.m., Harikrishna Patnala wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/12078/
> ---
> 
> (Updated June 25, 2013, 12:11 p.m.)
> 
> 
> Review request for cloudstack, Abhinandan Prateek and Nitin Mehta.
> 
> 
> Bugs: CLOUDSTACK-3187
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> CLOUDSTACK-3187: cluster.(cpu/memory).allocated.capacity.disablethreshold in 
> not considering overcommit factor. cluster is getting disable based on actual 
> use.
> 
> While checking for clusters that crosses disable threshold utilization is 
> calculated based on the actual memory value of cluster. This should consider 
> the overcommit ratio from cluster_details table.
> 
> 
> Diffs
> -
> 
>   engine/schema/src/com/cloud/capacity/dao/CapacityDaoImpl.java d14ad87 
> 
> Diff: https://reviews.apache.org/r/12078/diff/
> 
> 
> Testing
> ---
> 
> Tested locally
> 
> 
> Thanks,
> 
> Harikrishna Patnala
> 
>



Review Request 12104: Add a jetty:stop command to the cloud-client-ui

2013-06-26 Thread Ian Duffy

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

Review request for cloudstack, Abhinandan Prateek and Sebastien Goasguen.


Repository: cloudstack-git


Description
---

Add a jetty:stop command to cloud-client-ui to allow stopping jetty when it is 
started within a CI environment


Diffs
-

  client/pom.xml ffa5ec7 

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


Testing
---

Compiled, ran mvn -pl :cloud-client-ui jetty:run waited for it to start up and 
then stopped it with mvn -pl :cloud-client-ui jetty:stop


Thanks,

Ian Duffy



Re: Review Request 12102: Fix for CLOUDSTACK-3208: showing xenhost username and password details in plain text in logs when we pefrom removehost from CS

2013-06-26 Thread ASF Subversion and Git Services

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


Commit 0d1f512728f909aec296bf0e1cfbcdcaf2f563f6 in branch refs/heads/master 
from Harikrishna Patnala
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=0d1f512 ]

CLOUDSTACK-3208: showing xenhost username and password details in plain text in 
logs when we pefrom removehost from CS

Signed-off-by: Abhinandan Prateek 


- ASF Subversion and Git Services


On June 26, 2013, 10:02 a.m., Harikrishna Patnala wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/12102/
> ---
> 
> (Updated June 26, 2013, 10:02 a.m.)
> 
> 
> Review request for cloudstack and Abhinandan Prateek.
> 
> 
> Bugs: CLOUDSTACK-3208
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> CLOUDSTACK-3208: showing xenhost username and password details in plain 
> text in logs when we pefrom removehost from CS
> 
> 
> Diffs
> -
> 
>   
> plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerConnectionPool.java
>  e4dd675 
> 
> Diff: https://reviews.apache.org/r/12102/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Harikrishna Patnala
> 
>



Re: Review Request 12079: Fix for CLOUDSTACK-2794: Global parameter "router.template.id"should be removed.

2013-06-26 Thread ASF Subversion and Git Services

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


Commit ec2bf092847a12f0f29c26a01ecfc6add90fedb2 in branch refs/heads/master 
from Harikrishna Patnala
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=ec2bf09 ]

CLOUDSTACK-2794: Global parameter "router.template.id" should be removed The 
parameter was not in use. We use zone/global coonfigutaion parameters 
router.template.xenserver/vmware/hyperv/kvm/lxc to deploy router

Signed-off-by: Abhinandan Prateek 


- ASF Subversion and Git Services


On June 25, 2013, 1:51 p.m., Harikrishna Patnala wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/12079/
> ---
> 
> (Updated June 25, 2013, 1:51 p.m.)
> 
> 
> Review request for cloudstack and Abhinandan Prateek.
> 
> 
> Bugs: CLOUDSTACK-2794
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> CLOUDSTACK-2794: Global parameter "router.template.id"should be removed.
> 
> 
> Diffs
> -
> 
>   server/src/com/cloud/agent/manager/AgentManagerImpl.java fb857a7 
>   server/src/com/cloud/configuration/Config.java 3a6d3aa 
>   server/src/com/cloud/template/TemplateManagerImpl.java 273614c 
>   setup/db/db/schema-410to420.sql d2add32 
> 
> Diff: https://reviews.apache.org/r/12079/diff/
> 
> 
> Testing
> ---
> 
> Tested with latest master, also upgrade case.
> 
> 
> Thanks,
> 
> Harikrishna Patnala
> 
>



Re: Review Request 12078: Fix for CLOUDSTACK-3187: cluster.(cpu/memory).allocated.capacity.disablethreshold in not considering overcommit factor.

2013-06-26 Thread ASF Subversion and Git Services

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


Commit 1a77cdf94687ba93b00a09774f0c5939e30e555f in branch 
refs/heads/master-6-17-stable from Harikrishna Patnala
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=1a77cdf ]

CLOUDSTACK-3187: cluster.(cpu/memory).allocated.capacity.disablethreshold in 
not considering overcommit factor. cluster is getting disable based on actual 
use

Signed-off-by: Abhinandan Prateek 


- ASF Subversion and Git Services


On June 25, 2013, 12:11 p.m., Harikrishna Patnala wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/12078/
> ---
> 
> (Updated June 25, 2013, 12:11 p.m.)
> 
> 
> Review request for cloudstack, Abhinandan Prateek and Nitin Mehta.
> 
> 
> Bugs: CLOUDSTACK-3187
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> CLOUDSTACK-3187: cluster.(cpu/memory).allocated.capacity.disablethreshold in 
> not considering overcommit factor. cluster is getting disable based on actual 
> use.
> 
> While checking for clusters that crosses disable threshold utilization is 
> calculated based on the actual memory value of cluster. This should consider 
> the overcommit ratio from cluster_details table.
> 
> 
> Diffs
> -
> 
>   engine/schema/src/com/cloud/capacity/dao/CapacityDaoImpl.java d14ad87 
> 
> Diff: https://reviews.apache.org/r/12078/diff/
> 
> 
> Testing
> ---
> 
> Tested locally
> 
> 
> Thanks,
> 
> Harikrishna Patnala
> 
>



Re: Review Request 12102: Fix for CLOUDSTACK-3208: showing xenhost username and password details in plain text in logs when we pefrom removehost from CS

2013-06-26 Thread ASF Subversion and Git Services

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


Commit ea0e93ad4f2925082799a76aa506d1d786bf9a0d in branch 
refs/heads/master-6-17-stable from Harikrishna Patnala
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=ea0e93a ]

CLOUDSTACK-3208: showing xenhost username and password details in plain text in 
logs when we pefrom removehost from CS

Signed-off-by: Abhinandan Prateek 


- ASF Subversion and Git Services


On June 26, 2013, 10:02 a.m., Harikrishna Patnala wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/12102/
> ---
> 
> (Updated June 26, 2013, 10:02 a.m.)
> 
> 
> Review request for cloudstack and Abhinandan Prateek.
> 
> 
> Bugs: CLOUDSTACK-3208
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> CLOUDSTACK-3208: showing xenhost username and password details in plain 
> text in logs when we pefrom removehost from CS
> 
> 
> Diffs
> -
> 
>   
> plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerConnectionPool.java
>  e4dd675 
> 
> Diff: https://reviews.apache.org/r/12102/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Harikrishna Patnala
> 
>



Re: How does the plugin model work for storage providers?

2013-06-26 Thread Prasanna Santhanam
On Wed, Jun 26, 2013 at 03:53:20PM +0530, Prasanna Santhanam wrote:
> On Tue, Jun 25, 2013 at 11:06:36PM +, Edison Su wrote:
> > I would say, the adapter thing is the legacy stuff, all the storage
> > plugins will be managed by DataStoreProviderManager. But as you
> > said, we can group plugins into one place by using spring's syntax,
> > such as:
> 
> >  >   class="org.apach.***.datastoreproviderManagerImpl">
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >   
> 
> I tried something like this:
> In applicationContext beanfactory:
>  
> class="org.apache.cloudstack.storage.datastore.provider.DataStoreProviderManagerImpl">
> 
>   
> 
> 
>   
> 
> 
>   
> 
>   
> 
> Since I'm trying to separate storageProviders as plugins I tried putting them
> in the componentContext.xml so I didn't use a . But there's a 
> problem
> 
> DataStoreProvider
>  | PrimaryDataStoreProvider
>  | ImageDataStoreProvider
> 
> All the above are interfaces, so I can't inject them using beans and group all
> vendor-specific PrimaryDataStoreProviders (Solidfire, Default etc) and the
> imageStores (S3, Swift, NFS). 
> 
> Shouldn't they become abstract classes with getter/setter for the List 
> providers 
> to be injected into the ProviderManager?
> 

Fixed this as follows:
applicationContext.xml.in:
  
  

  


  

  

  

  


  


  

  

componentContext.xml.in:

  

  






  

  

Reason I needed to do this is because I need to get the simulator to use a
separate spring context and override the default CloudstackImageStore bean. The
simulator bean has to intercept the template download calls to say everything
is present. 

But looks like the dependency graph for this goes up to the
DataMotionService -> DataMotionStrategy -> DataStoreManager ->
DataStoreProviderManager -> DataStoreProvider.

I will push the changes to a branch for review.

Thanks,


Powered by BigRock.com



Re: Review Request 12063: Fix for CLOUDSTACK-2835: Registering router template and usage of router.template.* configuration parameter

2013-06-26 Thread ASF Subversion and Git Services

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


Commit 1c102a0589cb5b99c2c6922e8eea0a082608410d in branch refs/heads/master 
from Nitin Mehta
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=1c102a0 ]

CLOUDSTACK-2835: Change function from execute to executeUpdate


- ASF Subversion and Git Services


On June 24, 2013, 3:39 p.m., Harikrishna Patnala wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/12063/
> ---
> 
> (Updated June 24, 2013, 3:39 p.m.)
> 
> 
> Review request for cloudstack, Abhinandan Prateek, Kishan Kavala, and Nitin 
> Mehta.
> 
> 
> Bugs: CLOUDSTACK-2835
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> CLOUDSTACK-2835:  VR Deployement from admin registered template is failing 
> because registered template type is user. 
> Additional parameter "isrouter" in register/update template API for the root 
> admin. True if registered template is of type ROUTING.
> 
> A new template type is introduced named "ROUTING" which is used to deploy 
> router. 
> Admin registers a ROUTING type template and provides the value zone/global 
> level configuration parameters in 
> routing.template.xenserver/kvm/hyperv/vmware/lxc So that router deploys using 
> that template.
> By default router can be deployed by the normal SYSTEM template.
> 
> Added upgrade case to update the configuration parameter values 
> routing.template.xenserver/kvm/hyperv/vmware/lxc
> 
> 
> Diffs
> -
> 
>   api/src/com/cloud/storage/Storage.java 16ef019 
>   api/src/org/apache/cloudstack/api/ApiConstants.java 8ac7c3f 
>   api/src/org/apache/cloudstack/api/BaseUpdateTemplateOrIsoCmd.java b01c8d0 
>   
> api/src/org/apache/cloudstack/api/command/user/template/RegisterTemplateCmd.java
>  6a8e555 
>   
> api/src/org/apache/cloudstack/api/command/user/template/UpdateTemplateCmd.java
>  9f55f9d 
>   engine/schema/src/com/cloud/storage/dao/VMTemplateDaoImpl.java e7b85f8 
>   engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java 8f63a6c 
>   server/src/com/cloud/server/ManagementServerImpl.java 97bac1b 
>   server/src/com/cloud/storage/TemplateProfile.java 00aab4d 
>   server/src/com/cloud/template/TemplateAdapter.java d50d45b 
>   server/src/com/cloud/template/TemplateAdapterBase.java c1f0604 
>   server/src/com/cloud/template/TemplateManagerImpl.java 273614c 
> 
> Diff: https://reviews.apache.org/r/12063/diff/
> 
> 
> Testing
> ---
> 
> Tested locally.
> 
> Registered ROUTING template and checked router deployment by setting the 
> configuration parameter routing.template.xenserver to the new ROUTING 
> template.
> Tested the default behavior of router deployment from SYSTEM template.
> 
> Tested upgrade case from 4.1 to 4.2  
> 
> 
> Thanks,
> 
> Harikrishna Patnala
> 
>



Can Hypervisors have multiple image formats?

2013-06-26 Thread Donal Lafferty
Judging by StorageManagerImpl.getHypervisorTypeFromFormat, each format can only 
be used by one Hypervisor type.

The reason I ask, is that Hyper-V 2012 supports a legacy disk image type called 
'VHD' in addition to 'VHDX'.  It's straightforward to add VHDX to the  
ImageFormat enum, but less straightforward when it comes to adding a VHD image 
type.

Any guidance would be most welcome.


E.g. from StorageManagerImpl.java

@Override
public HypervisorType getHypervisorTypeFromFormat(ImageFormat format) {

if (format == null) {
return HypervisorType.None;
}

if (format == ImageFormat.VHD) {
return HypervisorType.XenServer;
} else if (format == ImageFormat.OVA) {
return HypervisorType.VMware;
} else if (format == ImageFormat.QCOW2) {
return HypervisorType.KVM;
} else if (format == ImageFormat.RAW) {
return HypervisorType.Ovm;
} else {
return HypervisorType.None;
}
}


CloudStack API Development

2013-06-26 Thread Ian Duffy
Hi All,

I was wondering if I could get some help. I have followed the
instructions on
https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+API+Development
to what I believe to be word for word. However I keep getting an
error.

org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
find class [com.cloud.test.TimeOfDayManagerImpl] for bean with name
'timeOfDayManagerImpl' defined in class path resource
[applicationContext.xml]; nested exception is
java.lang.ClassNotFoundException: com.cloud.test.TimeOfDayManagerImpl

TimeOfDayManagerImpl exists within
plugins/api/timeofday/src/com/cloud/test and is compiled when mvn -P
developer clean install is ran
I am able to see the class file in
plugins/api/timeofday/target/classes/com/cloud/test

Thanks
Ian

duffy at devbox in ~/projects/cloudstack/plugins/api/timeofday on ldapplugin*
$ pwd
/home/duffy/projects/cloudstack/plugins/api/timeofday
duffy at devbox in ~/projects/cloudstack/plugins/api/timeofday on ldapplugin*
$ tree
.
|-- pom.xml
|-- src
|   `-- com
|   `-- cloud
|   `-- test
|   |-- GetTimeOfDayCmd.java
|   |-- GetTimeOfDayCmdResponse.java
|   |-- package
|   |-- TimeOfDayManagerImpl.java
|   `-- TimeOfDayManager.java
|-- target
|   |-- classes
|   |   |-- com
|   |   |   `-- cloud
|   |   |   `-- test
|   |   |   |-- GetTimeOfDayCmd.class
|   |   |   |-- GetTimeOfDayCmdResponse.class
|   |   |   |-- TimeOfDayManager.class
|   |   |   `-- TimeOfDayManagerImpl.class
|   |   `-- META-INF
|   |   |-- DEPENDENCIES
|   |   |-- LICENSE
|   |   `-- NOTICE
|   |-- cloud-plugin-api-timeofday-4.1.0-SNAPSHOT.jar
|   |-- generated-sources
|   |   `-- annotations
|   |-- maven-archiver
|   |   `-- pom.properties
|   |-- maven-shared-archive-resources
|   |   `-- META-INF
|   |   |-- DEPENDENCIES
|   |   |-- LICENSE
|   |   `-- NOTICE
|   `-- test-classes
|   `-- META-INF
|   |-- DEPENDENCIES
|   |-- LICENSE
|   `-- NOTICE
`-- test

18 directories, 21 files
duffy at devbox in ~/projects/cloudstack/plugins/api/timeofday on ldapplugin*
$ grep timeofday ~/projects/cloudstack/plugins/pom.xml
api/timeofday
duffy at devbox in ~/projects/cloudstack/plugins/api/timeofday on ldapplugin*
$ grep TimeOfDayManagerImpl
~/projects/cloudstack/client/tomcatconf/applicationContext.xml.in
  


Re: Can Hypervisors have multiple image formats?

2013-06-26 Thread Wido den Hollander



On 06/26/2013 02:43 PM, Donal Lafferty wrote:

Judging by StorageManagerImpl.getHypervisorTypeFromFormat, each format can only 
be used by one Hypervisor type.

The reason I ask, is that Hyper-V 2012 supports a legacy disk image type called 
'VHD' in addition to 'VHDX'.  It's straightforward to add VHDX to the  
ImageFormat enum, but less straightforward when it comes to adding a VHD image 
type.



That is odd indeed. Any insight on this would be welcome, since I know 
that slowly QCOW3 is being worked on, so at some point we will want to 
support QCOW2 and QCOW3 for KVM.


Other then QCOW2, with RBD (Ceph) you have to use RAW since it's native 
RBD. So simply assuming that with KVM it will always be QCOW2 isn't a 
safe bet.


Wido


Any guidance would be most welcome.


E.g. from StorageManagerImpl.java

 @Override
 public HypervisorType getHypervisorTypeFromFormat(ImageFormat format) {

 if (format == null) {
 return HypervisorType.None;
 }

 if (format == ImageFormat.VHD) {
 return HypervisorType.XenServer;
 } else if (format == ImageFormat.OVA) {
 return HypervisorType.VMware;
 } else if (format == ImageFormat.QCOW2) {
 return HypervisorType.KVM;
 } else if (format == ImageFormat.RAW) {
 return HypervisorType.Ovm;
 } else {
 return HypervisorType.None;
 }
 }



Re: event bus details

2013-06-26 Thread Murali Reddy

Yeah its a bug. Fixed CLOUDSTACK-3213 for both 4.2 and 4.1.1. Thanks for
bringing it out.

On 25/06/13 9:27 PM, "Marcus Sorensen"  wrote:

>Thanks for the response. So am I to assume that the VM start/stop
>showing up under EntityType Network is also a bug?
>
>On Tue, Jun 25, 2013 at 6:05 AM, Murali Reddy 
>wrote:
>>
>> Opened bug CLOUDSTACK-3190 for this.
>>
>> On 25/06/13 4:03 PM, "Murali Reddy"  wrote:
>>
>>>
>>>Marcus,
>>>
>>>Events bus framework with current AMQP default implementation, has
>>>routing
>>>key with format
>>>'Eventsource.EventCategory.EventType.EntityType.EntityUUID' as described
>>>in [1]. If you see from the log you pasted below events of type
>>>'ResourceStateEvent' has details of entity UUID. Since it was new event
>>>type and was added in 4.1 it was easy to design so that all the entity
>>>details are published. Also intention of this event was for programatic
>>>consumption of events by external entities.
>>>
>>>Action Events existed from long time, and was implemented and used
>>>primarily for auditing messages for non-programmtic use. Unfortunately
>>>there is huge number of places for different actions corresponding to
>>>different entities need to be cleaned up. Please file a bug for some one
>>>to pick it up and work on it.
>>>
>>>[1] http://s.apache.org/MZS
>>>
>>>Thanks,
>>>Murali
>>>
>>>On 25/06/13 9:53 AM, "Marcus Sorensen"  wrote:
>>>
Here's another, when deleting a VPC. I see the details of all of the
things it's doing (removing the router, networks, etc), but I can't
tell which VPC was being deleted. I feel like that '*' under
ActionEvent should be telling me the uuid, like that position does in
the other events:

[x]
'management-server.ActionEvent.VPC-DELETE.Vpc.*':'{"status":"Scheduled"
,"
e
vent":"VPC.DELETE","account":"f668198a-bbdf-11e2-8bb5-52540014c04d","us
er
"
:"f66f14d8-bbdf-11e2-8bb5-52540014c04d"}'
 [x]
'management-server.ResourceStateEvent.StopRequested.Network.b18e3e07-ae
d0
-
473a-aeb2-bfad00bfb236':'{"id":"b18e3e07-aed0-473a-aeb2-bfad00bfb236","
ol
d
-state":"Running","new-state":"Stopping","resource":"Network"}'
 [x]
'management-server.ResourceStateEvent.OperationSucceeded.Network.b18e3e
07
-
aed0-473a-aeb2-bfad00bfb236':'{"id":"b18e3e07-aed0-473a-aeb2-bfad00bfb2
36
"
,"old-state":"Stopping","new-state":"Stopped","resource":"Network"}'
 [x]
'management-server.ResourceStateEvent.ExpungeOperation.Network.b18e3e07
-a
e
d0-473a-aeb2-bfad00bfb236':'{"id":"b18e3e07-aed0-473a-aeb2-bfad00bfb236
",
"
old-state":"Stopped","new-state":"Expunging","resource":"Network"}'
 [x]
'management-server.ResourceStateEvent.DestroyRequested.Volume.5dca4da7-
d4
2
8-4f6f-a474-11eee55fdf3a':'{"id":"5dca4da7-d428-4f6f-a474-11eee55fdf3a"
,"
o
ld-state":"Ready","new-state":"Destroy","resource":"Volume"}'
 [x]
'management-server.ResourceStateEvent.DestroyRequested.Volume.5dca4da7-
d4
2
8-4f6f-a474-11eee55fdf3a':'{"id":"5dca4da7-d428-4f6f-a474-11eee55fdf3a"
,"
o
ld-state":"Ready","new-state":"Destroy","resource":"Volume"}'
 [x]
'management-server.ResourceStateEvent.OperationSucceeded.Volume.5dca4da
7-
d
428-4f6f-a474-11eee55fdf3a':'{"id":"5dca4da7-d428-4f6f-a474-11eee55fdf3
a"
,
"old-state":"Destroy","new-state":"Destroy","resource":"Volume"}'
 [x]
'management-server.ResourceStateEvent.OperationSucceeded.Volume.5dca4da
7-
d
428-4f6f-a474-11eee55fdf3a':'{"id":"5dca4da7-d428-4f6f-a474-11eee55fdf3
a"
,
"old-state":"Destroy","new-state":"Destroy","resource":"Volume"}'
...

On Mon, Jun 24, 2013 at 10:11 PM, Marcus Sorensen 
wrote:
> Hi all,
>I've been playing around with the new event bus, trying to see if
> it could be useful, and I'm a bit confused about the output. If I
> subscribe to all topics, and try to reboot a virtual machine, this is
> all I see:
>
>
>'management-server.ActionEvent.VM-REBOOT.VirtualMachine.*':'{"status":
>"S
>c
>heduled","event":"VM.REBOOT","account":"f66d4d60-bbdf-11e2-8bb5-525400
>14
>c
>04d","user":"f66f14d8-bbdf-11e2-8bb5-52540014c04d"}'
>
> I see the account info, but nothing about which VM is being rebooted.
>
> If I try to stop/start a VM, I likewise see no details in the
> ActionEvent, about the subject being acted upon:
>
>
>'management-server.ActionEvent.VM-STOP.VirtualMachine.*':'{"status":"S
>ch
>e
>duled","event":"VM.STOP","account":"f66d4d60-bbdf-11e2-8bb5-52540014c0
>4d
>"
>,"user":"f66f14d8-bbdf-11e2-8bb5-52540014c04d"}'
>
> I do however see some details regarding a 'Network' resource, though
> if I were to write something to parse this output I wouldn't
> immediately know that it was related to a VM (note the 'id' here
>

Re: CloudStack API Development

2013-06-26 Thread Sebastien Goasguen
Hi Ian, a lot of us are at the cloudstack conference in santa clara.

We are traveling back to our respective homes. It may be 24 hours before you 
get answer on your couple questions.

thanks, 

-sebastien

On Jun 26, 2013, at 9:52 AM, Ian Duffy  wrote:

> Hi All,
> 
> I was wondering if I could get some help. I have followed the
> instructions on
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+API+Development
> to what I believe to be word for word. However I keep getting an
> error.
> 
> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
> find class [com.cloud.test.TimeOfDayManagerImpl] for bean with name
> 'timeOfDayManagerImpl' defined in class path resource
> [applicationContext.xml]; nested exception is
> java.lang.ClassNotFoundException: com.cloud.test.TimeOfDayManagerImpl
> 
> TimeOfDayManagerImpl exists within
> plugins/api/timeofday/src/com/cloud/test and is compiled when mvn -P
> developer clean install is ran
> I am able to see the class file in
> plugins/api/timeofday/target/classes/com/cloud/test
> 
> Thanks
> Ian
> 
> duffy at devbox in ~/projects/cloudstack/plugins/api/timeofday on ldapplugin*
> $ pwd
> /home/duffy/projects/cloudstack/plugins/api/timeofday
> duffy at devbox in ~/projects/cloudstack/plugins/api/timeofday on ldapplugin*
> $ tree
> .
> |-- pom.xml
> |-- src
> |   `-- com
> |   `-- cloud
> |   `-- test
> |   |-- GetTimeOfDayCmd.java
> |   |-- GetTimeOfDayCmdResponse.java
> |   |-- package
> |   |-- TimeOfDayManagerImpl.java
> |   `-- TimeOfDayManager.java
> |-- target
> |   |-- classes
> |   |   |-- com
> |   |   |   `-- cloud
> |   |   |   `-- test
> |   |   |   |-- GetTimeOfDayCmd.class
> |   |   |   |-- GetTimeOfDayCmdResponse.class
> |   |   |   |-- TimeOfDayManager.class
> |   |   |   `-- TimeOfDayManagerImpl.class
> |   |   `-- META-INF
> |   |   |-- DEPENDENCIES
> |   |   |-- LICENSE
> |   |   `-- NOTICE
> |   |-- cloud-plugin-api-timeofday-4.1.0-SNAPSHOT.jar
> |   |-- generated-sources
> |   |   `-- annotations
> |   |-- maven-archiver
> |   |   `-- pom.properties
> |   |-- maven-shared-archive-resources
> |   |   `-- META-INF
> |   |   |-- DEPENDENCIES
> |   |   |-- LICENSE
> |   |   `-- NOTICE
> |   `-- test-classes
> |   `-- META-INF
> |   |-- DEPENDENCIES
> |   |-- LICENSE
> |   `-- NOTICE
> `-- test
> 
> 18 directories, 21 files
> duffy at devbox in ~/projects/cloudstack/plugins/api/timeofday on ldapplugin*
> $ grep timeofday ~/projects/cloudstack/plugins/pom.xml
>api/timeofday
> duffy at devbox in ~/projects/cloudstack/plugins/api/timeofday on ldapplugin*
> $ grep TimeOfDayManagerImpl
> ~/projects/cloudstack/client/tomcatconf/applicationContext.xml.in
>  



Re: CloudStack API Development

2013-06-26 Thread Prasanna Santhanam
That's a spring issue. You have to tell spring to inject this manager
you have introduced on startup. Look at examples in the
client/tomcatconf/applicationContext.xml.in.

Eg: 

On Wed, Jun 26, 2013 at 02:52:50PM +0100, Ian Duffy wrote:
> Hi All,
> 
> I was wondering if I could get some help. I have followed the
> instructions on
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+API+Development
> to what I believe to be word for word. However I keep getting an
> error.
> 
> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
> find class [com.cloud.test.TimeOfDayManagerImpl] for bean with name
> 'timeOfDayManagerImpl' defined in class path resource
> [applicationContext.xml]; nested exception is
> java.lang.ClassNotFoundException: com.cloud.test.TimeOfDayManagerImpl
> 
> TimeOfDayManagerImpl exists within
> plugins/api/timeofday/src/com/cloud/test and is compiled when mvn -P
> developer clean install is ran
> I am able to see the class file in
> plugins/api/timeofday/target/classes/com/cloud/test
> 
> Thanks
> Ian
> 
> duffy at devbox in ~/projects/cloudstack/plugins/api/timeofday on ldapplugin*
> $ pwd
> /home/duffy/projects/cloudstack/plugins/api/timeofday
> duffy at devbox in ~/projects/cloudstack/plugins/api/timeofday on ldapplugin*
> $ tree
> .
> |-- pom.xml
> |-- src
> |   `-- com
> |   `-- cloud
> |   `-- test
> |   |-- GetTimeOfDayCmd.java
> |   |-- GetTimeOfDayCmdResponse.java
> |   |-- package
> |   |-- TimeOfDayManagerImpl.java
> |   `-- TimeOfDayManager.java
> |-- target
> |   |-- classes
> |   |   |-- com
> |   |   |   `-- cloud
> |   |   |   `-- test
> |   |   |   |-- GetTimeOfDayCmd.class
> |   |   |   |-- GetTimeOfDayCmdResponse.class
> |   |   |   |-- TimeOfDayManager.class
> |   |   |   `-- TimeOfDayManagerImpl.class
> |   |   `-- META-INF
> |   |   |-- DEPENDENCIES
> |   |   |-- LICENSE
> |   |   `-- NOTICE
> |   |-- cloud-plugin-api-timeofday-4.1.0-SNAPSHOT.jar
> |   |-- generated-sources
> |   |   `-- annotations
> |   |-- maven-archiver
> |   |   `-- pom.properties
> |   |-- maven-shared-archive-resources
> |   |   `-- META-INF
> |   |   |-- DEPENDENCIES
> |   |   |-- LICENSE
> |   |   `-- NOTICE
> |   `-- test-classes
> |   `-- META-INF
> |   |-- DEPENDENCIES
> |   |-- LICENSE
> |   `-- NOTICE
> `-- test
> 
> 18 directories, 21 files
> duffy at devbox in ~/projects/cloudstack/plugins/api/timeofday on ldapplugin*
> $ grep timeofday ~/projects/cloudstack/plugins/pom.xml
> api/timeofday
> duffy at devbox in ~/projects/cloudstack/plugins/api/timeofday on ldapplugin*
> $ grep TimeOfDayManagerImpl
> ~/projects/cloudstack/client/tomcatconf/applicationContext.xml.in
>class="com.cloud.test.TimeOfDayManagerImpl"/>

-- 
Prasanna.,


Powered by BigRock.com



Re: Review Request 12104: Add a jetty:stop command to the cloud-client-ui

2013-06-26 Thread Sebastien Goasguen

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

Ship it!


Well done Ian,
this is now on master c214b47764be02d773d1f4ace8ea7c8600e371a7
please mark the review as submitted
thanks

- Sebastien Goasguen


On June 26, 2013, 10:40 a.m., Ian Duffy wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/12104/
> ---
> 
> (Updated June 26, 2013, 10:40 a.m.)
> 
> 
> Review request for cloudstack, Abhinandan Prateek and Sebastien Goasguen.
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> Add a jetty:stop command to cloud-client-ui to allow stopping jetty when it 
> is started within a CI environment
> 
> 
> Diffs
> -
> 
>   client/pom.xml ffa5ec7 
> 
> Diff: https://reviews.apache.org/r/12104/diff/
> 
> 
> Testing
> ---
> 
> Compiled, ran mvn -pl :cloud-client-ui jetty:run waited for it to start up 
> and then stopped it with mvn -pl :cloud-client-ui jetty:stop
> 
> 
> Thanks,
> 
> Ian Duffy
> 
>



Re: CloudStack API Development

2013-06-26 Thread Ian Duffy
Hi Prasanna,

I had done this but still get the same error.

On 26 June 2013 16:09, Prasanna Santhanam  wrote:
> That's a spring issue. You have to tell spring to inject this manager
> you have introduced on startup. Look at examples in the
> client/tomcatconf/applicationContext.xml.in.
>
> Eg:
>
> On Wed, Jun 26, 2013 at 02:52:50PM +0100, Ian Duffy wrote:
>> Hi All,
>>
>> I was wondering if I could get some help. I have followed the
>> instructions on
>> https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+API+Development
>> to what I believe to be word for word. However I keep getting an
>> error.
>>
>> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
>> find class [com.cloud.test.TimeOfDayManagerImpl] for bean with name
>> 'timeOfDayManagerImpl' defined in class path resource
>> [applicationContext.xml]; nested exception is
>> java.lang.ClassNotFoundException: com.cloud.test.TimeOfDayManagerImpl
>>
>> TimeOfDayManagerImpl exists within
>> plugins/api/timeofday/src/com/cloud/test and is compiled when mvn -P
>> developer clean install is ran
>> I am able to see the class file in
>> plugins/api/timeofday/target/classes/com/cloud/test
>>
>> Thanks
>> Ian
>>
>> duffy at devbox in ~/projects/cloudstack/plugins/api/timeofday on ldapplugin*
>> $ pwd
>> /home/duffy/projects/cloudstack/plugins/api/timeofday
>> duffy at devbox in ~/projects/cloudstack/plugins/api/timeofday on ldapplugin*
>> $ tree
>> .
>> |-- pom.xml
>> |-- src
>> |   `-- com
>> |   `-- cloud
>> |   `-- test
>> |   |-- GetTimeOfDayCmd.java
>> |   |-- GetTimeOfDayCmdResponse.java
>> |   |-- package
>> |   |-- TimeOfDayManagerImpl.java
>> |   `-- TimeOfDayManager.java
>> |-- target
>> |   |-- classes
>> |   |   |-- com
>> |   |   |   `-- cloud
>> |   |   |   `-- test
>> |   |   |   |-- GetTimeOfDayCmd.class
>> |   |   |   |-- GetTimeOfDayCmdResponse.class
>> |   |   |   |-- TimeOfDayManager.class
>> |   |   |   `-- TimeOfDayManagerImpl.class
>> |   |   `-- META-INF
>> |   |   |-- DEPENDENCIES
>> |   |   |-- LICENSE
>> |   |   `-- NOTICE
>> |   |-- cloud-plugin-api-timeofday-4.1.0-SNAPSHOT.jar
>> |   |-- generated-sources
>> |   |   `-- annotations
>> |   |-- maven-archiver
>> |   |   `-- pom.properties
>> |   |-- maven-shared-archive-resources
>> |   |   `-- META-INF
>> |   |   |-- DEPENDENCIES
>> |   |   |-- LICENSE
>> |   |   `-- NOTICE
>> |   `-- test-classes
>> |   `-- META-INF
>> |   |-- DEPENDENCIES
>> |   |-- LICENSE
>> |   `-- NOTICE
>> `-- test
>>
>> 18 directories, 21 files
>> duffy at devbox in ~/projects/cloudstack/plugins/api/timeofday on ldapplugin*
>> $ grep timeofday ~/projects/cloudstack/plugins/pom.xml
>> api/timeofday
>> duffy at devbox in ~/projects/cloudstack/plugins/api/timeofday on ldapplugin*
>> $ grep TimeOfDayManagerImpl
>> ~/projects/cloudstack/client/tomcatconf/applicationContext.xml.in
>>   > class="com.cloud.test.TimeOfDayManagerImpl"/>
>
> --
> Prasanna.,
>
> 
> Powered by BigRock.com
>


Re: CloudStack API Development

2013-06-26 Thread Ian Duffy
Think I might of found it

According to http://www.slideshare.net/buildacloud/storage-plugins

The plugin has to be listed as a dependency in client/pom.xml.


Re: CloudStack API Development

2013-06-26 Thread Prasanna Santhanam
On Wed, Jun 26, 2013 at 04:16:18PM +0100, Ian Duffy wrote:
> Hi Prasanna,
> 
> I had done this but still get the same error.

Paste a diff of your local changes on github/gist? It's not clear what
might be happening with the TimeOfDayManager. 

-- 
Prasanna.,


Powered by BigRock.com



Re: CloudStack API Development

2013-06-26 Thread Prasanna Santhanam
On Wed, Jun 26, 2013 at 04:34:07PM +0100, Ian Duffy wrote:
> Think I might of found it
> 
> According to http://www.slideshare.net/buildacloud/storage-plugins
> 
> The plugin has to be listed as a dependency in client/pom.xml.

Ah yes. Please fix the wiki, we had this failure happen quite recently
too.

-- 
Prasanna.,


Powered by BigRock.com



Review Request 12107: Cloudstack-2150 DB table entries of phisical network is not proper.Shows Duplicate entries. Cloudstack-2980 Adding a VLAN range that overlaps with two existing ranges results in

2013-06-26 Thread bharat kumar

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

Review request for cloudstack and Abhinandan Prateek.


Bugs: Cloudstack-2150 and Cloudstack-2980


Repository: cloudstack-git


Description
---

Cloudstack-2150 DB table entries of phisical network is not proper.Shows 
Duplicate entries.
https://issues.apache.org/jira/browse/CLOUDSTACK-2980
Cloudstack-2980 Adding a VLAN range that overlaps with two existing ranges 
results in inconsistent DB entries
https://issues.apache.org/jira/browse/CLOUDSTACK-2980


Diffs
-

  engine/schema/src/com/cloud/dc/dao/DataCenterVnetDaoImpl.java e97f2c6 
  server/src/com/cloud/network/NetworkServiceImpl.java 25cd887 

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


Testing
---

tested on master.


Thanks,

bharat kumar



Review Request 12109: HAProxy maxconn is not configurable

2013-06-26 Thread bharat kumar

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

Review request for cloudstack and Abhinandan Prateek.


Bugs: Cloudstack-2997


Repository: cloudstack-git


Description
---

Cloudstack-2997 HAProxy maxconn is not configurable
https://issues.apache.org/jira/browse/CLOUDSTACK-2997


Diffs
-

  api/src/com/cloud/offering/NetworkOffering.java 5f522eb 
  api/src/org/apache/cloudstack/api/ApiConstants.java b43f06c 
  
api/src/org/apache/cloudstack/api/command/admin/network/CreateNetworkOfferingCmd.java
 febb0c3 
  
api/src/org/apache/cloudstack/api/command/admin/network/UpdateNetworkOfferingCmd.java
 ba685a9 
  core/src/com/cloud/agent/api/routing/LoadBalancerConfigCommand.java 1c1fb91 
  core/src/com/cloud/network/HAProxyConfigurator.java 29fdf4a 
  engine/schema/src/com/cloud/offerings/NetworkOfferingVO.java fae315b 
  
plugins/network-elements/elastic-loadbalancer/src/com/cloud/network/lb/ElasticLoadBalancerManagerImpl.java
 b21e8f9 
  
plugins/network-elements/internal-loadbalancer/src/org/apache/cloudstack/network/lb/InternalLoadBalancerVMManagerImpl.java
 2bdb28f 
  
plugins/network-elements/internal-loadbalancer/test/org/apache/cloudstack/internallbvmmgr/InternalLBVMManagerTest.java
 a19a82e 
  server/src/com/cloud/configuration/Config.java 2b0ffaf 
  server/src/com/cloud/configuration/ConfigurationManager.java 8db037b 
  server/src/com/cloud/configuration/ConfigurationManagerImpl.java 97f0d33 
  server/src/com/cloud/network/NetworkManagerImpl.java 8c2806a 
  server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java 
7f3a88e 
  server/test/com/cloud/vpc/MockConfigurationManagerImpl.java 21b3590 
  
server/test/org/apache/cloudstack/networkoffering/CreateNetworkOfferingTest.java
 4a2c867 
  setup/db/db/schema-410to420.sql 181f1cb 

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


Testing
---

Tested on master.


Thanks,

bharat kumar



Re: CloudStack API Development

2013-06-26 Thread Ian Duffy
> Ah yes. Please fix the wiki, we had this failure happen quite recently
> too.

Will do still testing!

On 26 June 2013 16:43, Prasanna Santhanam  wrote:
> On Wed, Jun 26, 2013 at 04:34:07PM +0100, Ian Duffy wrote:
>> Think I might of found it
>>
>> According to http://www.slideshare.net/buildacloud/storage-plugins
>>
>> The plugin has to be listed as a dependency in client/pom.xml.
>
> Ah yes. Please fix the wiki, we had this failure happen quite recently
> too.
>
> --
> Prasanna.,
>
> 
> Powered by BigRock.com
>


Review Request 12110: Cloudstack-3106 Delete all the ips except for the ip alias.

2013-06-26 Thread bharat kumar

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

Review request for cloudstack and Abhinandan Prateek.


Bugs: Cloudstack-3106


Repository: cloudstack-git


Description
---

Cloudstack-3106 Delete all the ips except for the ip alias.
https://issues.apache.org/jira/browse/CLOUDSTACK-3106


Diffs
-

  engine/schema/src/com/cloud/dc/VlanVO.java af6b5fc 
  server/src/com/cloud/configuration/ConfigurationManagerImpl.java 97f0d33 

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


Testing
---

Tested on master.


Thanks,

bharat kumar



Review Request 12111: [Multiple_IP_Ranges] Deleting guest IP range is not throwing any error message to user while the ip addresses are being used

2013-06-26 Thread bharat kumar

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

Review request for cloudstack and Abhinandan Prateek.


Bugs: Cloudstack-2732


Repository: cloudstack-git


Description
---

[Multiple_IP_Ranges] Deleting guest IP range is not throwing any error message 
to user while the ip addresses are being used
https://issues.apache.org/jira/browse/CLOUDSTACK-2732


Diffs
-

  server/src/com/cloud/configuration/ConfigurationManagerImpl.java 97f0d33 

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


Testing
---

Tested on master.


Thanks,

bharat kumar



Re: CloudStack API Development

2013-06-26 Thread Ian Duffy
Wiki updated and Plugin working!

Thanks guys!

On 26 June 2013 16:55, Ian Duffy  wrote:
>> Ah yes. Please fix the wiki, we had this failure happen quite recently
>> too.
>
> Will do still testing!
>
> On 26 June 2013 16:43, Prasanna Santhanam  wrote:
>> On Wed, Jun 26, 2013 at 04:34:07PM +0100, Ian Duffy wrote:
>>> Think I might of found it
>>>
>>> According to http://www.slideshare.net/buildacloud/storage-plugins
>>>
>>> The plugin has to be listed as a dependency in client/pom.xml.
>>
>> Ah yes. Please fix the wiki, we had this failure happen quite recently
>> too.
>>
>> --
>> Prasanna.,
>>
>> 
>> Powered by BigRock.com
>>


Re: Can Hypervisors have multiple image formats?

2013-06-26 Thread Ahmad Emneina
I would love to see multiple image formats opened up for hypervisors. Live
Wido said... KVM alone can support a myriad of image formats. Using ceph
requires an import of qcow2 and a conversion of that to RAW on every deploy
is incredibly slow/wasteful/painful to endure.


On Wed, Jun 26, 2013 at 3:06 PM, Wido den Hollander  wrote:

>
>
> On 06/26/2013 02:43 PM, Donal Lafferty wrote:
>
>> Judging by StorageManagerImpl.**getHypervisorTypeFromFormat, each format
>> can only be used by one Hypervisor type.
>>
>> The reason I ask, is that Hyper-V 2012 supports a legacy disk image type
>> called 'VHD' in addition to 'VHDX'.  It's straightforward to add VHDX to
>> the  ImageFormat enum, but less straightforward when it comes to adding a
>> VHD image type.
>>
>>
> That is odd indeed. Any insight on this would be welcome, since I know
> that slowly QCOW3 is being worked on, so at some point we will want to
> support QCOW2 and QCOW3 for KVM.
>
> Other then QCOW2, with RBD (Ceph) you have to use RAW since it's native
> RBD. So simply assuming that with KVM it will always be QCOW2 isn't a safe
> bet.
>
> Wido
>
>
>  Any guidance would be most welcome.
>>
>>
>> E.g. from StorageManagerImpl.java
>>
>>  @Override
>>  public HypervisorType getHypervisorTypeFromFormat(**ImageFormat
>> format) {
>>
>>  if (format == null) {
>>  return HypervisorType.None;
>>  }
>>
>>  if (format == ImageFormat.VHD) {
>>  return HypervisorType.XenServer;
>>  } else if (format == ImageFormat.OVA) {
>>  return HypervisorType.VMware;
>>  } else if (format == ImageFormat.QCOW2) {
>>  return HypervisorType.KVM;
>>  } else if (format == ImageFormat.RAW) {
>>  return HypervisorType.Ovm;
>>  } else {
>>  return HypervisorType.None;
>>  }
>>  }
>>
>>


Where should a system VM image be uncompressed?

2013-06-26 Thread Donal Lafferty
I noticed that the system VM template is stored in S3 as a .bz2.  E.g. as a 
.vhd.bz2 when using a Hyper-V hypervisor.

Naturally, you can't run a bz2.  Nor can you make a thin copy of it, say if 
it's a downloaded as a TEMPLATE to a primary storage pool.

Should it be uncompressed before it goes into S3, when it is copied from S3 to 
primary storage, or when a volume is created from the TEMPLATE?



Re: Where should a system VM image be uncompressed?

2013-06-26 Thread Min Chen
That is expected behavior. We will store whatever format provided by user
in registering a template to S3. Currently uncompressing is done when the
template is copied from s3 to primary storage if NFS staging is enabled.
In your case, since you are not using NFS staging, some code has to be
added to uncompress when it is copied from S3 to primary storage when NFS
caching is disabled.

Thanks
-min

On 6/26/13 10:00 AM, "Donal Lafferty"  wrote:

>I noticed that the system VM template is stored in S3 as a .bz2.  E.g. as
>a .vhd.bz2 when using a Hyper-V hypervisor.
>
>Naturally, you can't run a bz2.  Nor can you make a thin copy of it, say
>if it's a downloaded as a TEMPLATE to a primary storage pool.
>
>Should it be uncompressed before it goes into S3, when it is copied from
>S3 to primary storage, or when a volume is created from the TEMPLATE?
>



Template download fails in the latest master

2013-06-26 Thread Alena Prokharchyk
Template sync fails to download the default centos template in the latest 
master branch:

2013-06-26 09:57:09,691 DEBUG [cloud.user.AccountManagerImpl] 
(AgentConnectTaskPool-3:null) Access granted to Acct[1-system] to Domain:1/ by 
DomainChecker_EnhancerByCloudStack_4f9daf02
2013-06-26 09:57:09,702 INFO  [storage.image.TemplateServiceImpl] 
(AgentConnectTaskPool-3:null) Template Sync found routing-3 already in the 
image store
2013-06-26 09:57:09,824 DEBUG [cloud.user.AccountManagerImpl] 
(AgentConnectTaskPool-3:null) Access granted to Acct[1-system] to Domain:1/ by 
DomainChecker_EnhancerByCloudStack_4f9daf02
2013-06-26 09:57:09,842 INFO  [storage.image.TemplateServiceImpl] 
(AgentConnectTaskPool-3:null) Downloading template centos56-x86_64-xen to image 
store nfs://10.223.110.233/export/home/alena/secondary
2013-06-26 09:57:09,868 DEBUG [agent.transport.Request] (StatsCollector-2:null) 
Seq 1-1993670671: Received:  { Ans: , MgmtId: 1, via: 1, Ver: v1, Flags: 10, { 
GetHostStatsAnswer } }
2013-06-26 09:57:09,892 DEBUG [storage.download.DownloadListener] 
(AgentConnectTaskPool-3:null) Send command failed
java.lang.NullPointerException
at 
com.cloud.hypervisor.HypervisorGuruManagerImpl.getGuruProcessedCommandTargetHost(HypervisorGuruManagerImpl.java:64)
at 
org.apache.cloudstack.storage.RemoteHostEndPoint.sendMessageAsync(RemoteHostEndPoint.java:172)
at 
com.cloud.storage.download.DownloadListener.sendCommand(DownloadListener.java:187)
at 
com.cloud.storage.download.DownloadAbandonedState.onEntry(DownloadAbandonedState.java:43)
at 
com.cloud.storage.download.DownloadListener.transition(DownloadListener.java:252)
at 
com.cloud.storage.download.DownloadListener.abandon(DownloadListener.java:322)
at 
com.cloud.storage.download.DownloadMonitorImpl.initiateTemplateDownload(DownloadMonitorImpl.java:195)
at 
com.cloud.storage.download.DownloadMonitorImpl.downloadTemplateToStorage(DownloadMonitorImpl.java:215)
at 
org.apache.cloudstack.storage.image.BaseImageStoreDriverImpl.createAsync(BaseImageStoreDriverImpl.java:91)
at 
org.apache.cloudstack.storage.image.TemplateServiceImpl.createTemplateAsync(TemplateServiceImpl.java:169)
at 
org.apache.cloudstack.storage.image.TemplateServiceImpl.handleTemplateSync(TemplateServiceImpl.java:399)
at 
com.cloud.storage.download.DownloadListener.processConnect(DownloadListener.java:307)
at 
com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:586)
at 
com.cloud.agent.manager.AgentManagerImpl.handleConnectedAgent(AgentManagerImpl.java:1086)
at 
com.cloud.agent.manager.AgentManagerImpl.access$100(AgentManagerImpl.java:144)
at 
com.cloud.agent.manager.AgentManagerImpl$HandleAgentConnectTask.run(AgentManagerImpl.java:1161)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)

Can anybody familiar with the new storage code, take a look at it?

-Alena.


Re: Review Request 11067: Automation: Add testcases for Affinity/Anti-Affinity Rules

2013-06-26 Thread Girish Shilamkar

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

(Updated June 26, 2013, 5:11 p.m.)


Review request for cloudstack, Prachi Damle, sangeetha hariharan, and Prasanna 
Santhanam.


Changes
---

Latest patch for review


Bugs: CLOUDSTACK-2254


Repository: cloudstack-git


Description
---

Add testcases for Affinity/Anti-Affinity Rules


Diffs (updated)
-

  test/integration/component/test_affinity_groups.py PRE-CREATION 
  tools/marvin/marvin/integration/lib/base.py 503ed64 

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


Testing
---

The tests which are not skipped are working.


Thanks,

Girish Shilamkar



Master build problem

2013-06-26 Thread Soheil Eizadi
I merged the latest master into my branch and could not run it. I switched to 
master branch and built it but can not run it either, has anyone else seen this 
problem with sspCredentialDaoImpl?

ERROR [web.context.ContextLoader] (main:) Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'actionEventUtils': Injection of autowired dependencies failed; 
nested exception is org.springframework.beans.factory.BeanCreationException: 
Could not autowire field: com.cloud.event.dao.EventDao 
com.cloud.event.ActionEventUtils.eventDao; nested exception is 
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find 
class [com.cloud.network.dao.SspCredentialDaoImpl] for bean with name 
'sspCredentialDaoImpl' defined in class path resource [componentContext.xml]; 
nested exception is java.lang.ClassNotFoundException: 
com.cloud.network.dao.SspCredentialDaoImpl


Re: Master build problem

2013-06-26 Thread Min Chen
I got latest master and able to start MS. I think that Prasanna has fixed
that with a later checkin.

Thanks
-min

On 6/26/13 11:02 AM, "Soheil Eizadi"  wrote:

>I merged the latest master into my branch and could not run it. I
>switched to master branch and built it but can not run it either, has
>anyone else seen this problem with sspCredentialDaoImpl?
>
>ERROR [web.context.ContextLoader] (main:) Context initialization failed
>org.springframework.beans.factory.BeanCreationException: Error creating
>bean with name 'actionEventUtils': Injection of autowired dependencies
>failed; nested exception is
>org.springframework.beans.factory.BeanCreationException: Could not
>autowire field: com.cloud.event.dao.EventDao
>com.cloud.event.ActionEventUtils.eventDao; nested exception is
>org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
>find class [com.cloud.network.dao.SspCredentialDaoImpl] for bean with
>name 'sspCredentialDaoImpl' defined in class path resource
>[componentContext.xml]; nested exception is
>java.lang.ClassNotFoundException:
>com.cloud.network.dao.SspCredentialDaoImpl



Re: Review Request 12085: Add VHDX to ImageFormat enum

2013-06-26 Thread Chip Childers

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

(Updated June 26, 2013, 6:15 p.m.)


Review request for cloudstack, Alex Huang, Chip Childers, and edison su.


Changes
---

Adding the cloudstack group.


Repository: cloudstack-git


Description
---

Update ImageFormat enum to include VHDX format introduced with Hyper-V Server 
2012.


Diffs
-

  api/src/com/cloud/storage/Storage.java 
16ef0192e325af174f2b2d21137f629ddffad6ce 

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


Testing
---


Thanks,

Donal Lafferty



Re: Review Request 12106: Add Hyperv-V support to ListHypervisorsCmd API call

2013-06-26 Thread Chip Childers

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

(Updated June 26, 2013, 6:15 p.m.)


Review request for cloudstack, Alex Huang, Chip Childers, and edison su.


Changes
---

Adding the cloudstack group.


Repository: cloudstack-git


Description
---

Add Hyperv-V support to ListHypervisorsCmd API call


Diffs
-

  agent/src/com/cloud/agent/VmmAgentShell.java 
190d1168284243f9e860677a03311da9db31c745 
  api/src/com/cloud/storage/Storage.java 
9a50ffa786c9a1b516baa7b8bce04de7d3c7b2bc 
  client/tomcatconf/applicationContext.xml.in 
ac1f3e46fdb43b4a5e38f9f2b3c498a2c258a0aa 
  core/src/com/cloud/hypervisor/hyperv/resource/HypervResource.java 
725f0cc1ae214447f20f5cd51c40e7e9128f0506 
  engine/storage/integration-test/test/resource/component.xml 
5ba87e8ebe9a682b320c60caf0e0057d2eb92027 
  plugins/network-elements/dns-notifier/resources/components-example.xml 
717c5e063fe0271eeb1143215a493c6342c5811e 
  server/src/com/cloud/configuration/Config.java 
ba508495c350714fff90da0923b046783d42b1c3 
  server/src/com/cloud/hypervisor/guru/HypervGuru.java 
630080e21cbb6a501d67bda41179feb278b3d79c 
  server/src/com/cloud/hypervisor/hyperv/HypervServerDiscoverer.java 
06658b7f3e2ea5e80edf012dcaf29d980758084d 
  server/src/com/cloud/resource/ResourceManagerImpl.java 
fe91cb337d0f5901012ca45e131d9cb2f7c54cf2 
  server/src/com/cloud/storage/secondary/SecondaryStorageManagerImpl.java 
954c7e970f02e7ba0eae6e8e1616d9a08c9168b0 

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


Testing
---

Compiled using mvn clean install, used in integration test on cshv3 branch from 
github mirror.


Thanks,

Donal Lafferty



Re: Review Request 12103: Delete Old, Broken Hyper-V plugin code

2013-06-26 Thread Chip Childers

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

(Updated June 26, 2013, 6:16 p.m.)


Review request for cloudstack, Alex Huang, Chip Childers, and edison su.


Changes
---

Adding the cloudstack group.


Repository: cloudstack-git


Description
---

Remove existing Hyper-V driver, because it does not work and is dead code.
Remove references to existing Hyper-V driver from config files.


Diffs
-

  agent/src/com/cloud/agent/VmmAgentShell.java 
190d1168284243f9e860677a03311da9db31c745 
  api/src/com/cloud/storage/Storage.java 
16ef0192e325af174f2b2d21137f629ddffad6ce 
  client/tomcatconf/applicationContext.xml.in 
ac1f3e46fdb43b4a5e38f9f2b3c498a2c258a0aa 
  core/src/com/cloud/hypervisor/hyperv/resource/HypervResource.java 
725f0cc1ae214447f20f5cd51c40e7e9128f0506 
  engine/storage/integration-test/test/resource/component.xml 
5ba87e8ebe9a682b320c60caf0e0057d2eb92027 
  plugins/network-elements/dns-notifier/resources/components-example.xml 
717c5e063fe0271eeb1143215a493c6342c5811e 
  server/src/com/cloud/hypervisor/guru/HypervGuru.java 
630080e21cbb6a501d67bda41179feb278b3d79c 
  server/src/com/cloud/hypervisor/hyperv/HypervServerDiscoverer.java 
06658b7f3e2ea5e80edf012dcaf29d980758084d 

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


Testing
---

Compiled to verify that build still works.


Thanks,

Donal Lafferty



Re: Review Request 12105: Remove Hypervisor.HypervisorType.Hyperv special cases from manager code that are unused or unsupported.

2013-06-26 Thread Chip Childers

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

(Updated June 26, 2013, 6:16 p.m.)


Review request for cloudstack, Alex Huang, Chip Childers, and edison su.


Changes
---

Adding the cloudstack group.


Repository: cloudstack-git


Description
---

Remove Hypervisor.HypervisorType.Hyperv special cases from manager code that 
are unused or unsupported.
Specifically, there is no CIFS secondary storage class 
"CifsSecondaryStorageResource".  Also, the Hyper-V plugin's ServerResource is 
contacted by the management server and not the other way around.


Diffs
-

  agent/src/com/cloud/agent/VmmAgentShell.java 
190d1168284243f9e860677a03311da9db31c745 
  api/src/com/cloud/storage/Storage.java 
16ef0192e325af174f2b2d21137f629ddffad6ce 
  client/tomcatconf/applicationContext.xml.in 
ac1f3e46fdb43b4a5e38f9f2b3c498a2c258a0aa 
  core/src/com/cloud/hypervisor/hyperv/resource/HypervResource.java 
725f0cc1ae214447f20f5cd51c40e7e9128f0506 
  engine/storage/integration-test/test/resource/component.xml 
5ba87e8ebe9a682b320c60caf0e0057d2eb92027 
  plugins/network-elements/dns-notifier/resources/components-example.xml 
717c5e063fe0271eeb1143215a493c6342c5811e 
  server/src/com/cloud/hypervisor/guru/HypervGuru.java 
630080e21cbb6a501d67bda41179feb278b3d79c 
  server/src/com/cloud/hypervisor/hyperv/HypervServerDiscoverer.java 
06658b7f3e2ea5e80edf012dcaf29d980758084d 
  server/src/com/cloud/resource/ResourceManagerImpl.java 
fe91cb337d0f5901012ca45e131d9cb2f7c54cf2 
  server/src/com/cloud/storage/secondary/SecondaryStorageManagerImpl.java 
954c7e970f02e7ba0eae6e8e1616d9a08c9168b0 

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


Testing
---

Compiles properly with mvn clean install


Thanks,

Donal Lafferty



Re: Review Request 12106: Add Hyperv-V support to ListHypervisorsCmd API call

2013-06-26 Thread David Nalley

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


Despite different descriptions, 12105 and 12106 appear to be the same patch. 

- David Nalley


On June 26, 2013, 6:15 p.m., Donal Lafferty wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/12106/
> ---
> 
> (Updated June 26, 2013, 6:15 p.m.)
> 
> 
> Review request for cloudstack, Alex Huang, Chip Childers, and edison su.
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> Add Hyperv-V support to ListHypervisorsCmd API call
> 
> 
> Diffs
> -
> 
>   agent/src/com/cloud/agent/VmmAgentShell.java 
> 190d1168284243f9e860677a03311da9db31c745 
>   api/src/com/cloud/storage/Storage.java 
> 9a50ffa786c9a1b516baa7b8bce04de7d3c7b2bc 
>   client/tomcatconf/applicationContext.xml.in 
> ac1f3e46fdb43b4a5e38f9f2b3c498a2c258a0aa 
>   core/src/com/cloud/hypervisor/hyperv/resource/HypervResource.java 
> 725f0cc1ae214447f20f5cd51c40e7e9128f0506 
>   engine/storage/integration-test/test/resource/component.xml 
> 5ba87e8ebe9a682b320c60caf0e0057d2eb92027 
>   plugins/network-elements/dns-notifier/resources/components-example.xml 
> 717c5e063fe0271eeb1143215a493c6342c5811e 
>   server/src/com/cloud/configuration/Config.java 
> ba508495c350714fff90da0923b046783d42b1c3 
>   server/src/com/cloud/hypervisor/guru/HypervGuru.java 
> 630080e21cbb6a501d67bda41179feb278b3d79c 
>   server/src/com/cloud/hypervisor/hyperv/HypervServerDiscoverer.java 
> 06658b7f3e2ea5e80edf012dcaf29d980758084d 
>   server/src/com/cloud/resource/ResourceManagerImpl.java 
> fe91cb337d0f5901012ca45e131d9cb2f7c54cf2 
>   server/src/com/cloud/storage/secondary/SecondaryStorageManagerImpl.java 
> 954c7e970f02e7ba0eae6e8e1616d9a08c9168b0 
> 
> Diff: https://reviews.apache.org/r/12106/diff/
> 
> 
> Testing
> ---
> 
> Compiled using mvn clean install, used in integration test on cshv3 branch 
> from github mirror.
> 
> 
> Thanks,
> 
> Donal Lafferty
> 
>



Re: Template download fails in the latest master

2013-06-26 Thread Min Chen
Alena,

I got latest master up to commit
c214b47764be02d773d1f4ace8ea7c8600e371a7, but could not reproduce this
issue. When ssvm is successfully up, template is starting download, here
is my log:

2013-06-26 11:13:42,481 INFO  [storage.image.TemplateServiceImpl]
(AgentConnectTaskPool-1:null) Template Sync did not find routing-3 on
image store 1, may request download based on available hypervisor types
2013-06-26 11:13:42,482 INFO  [storage.image.TemplateServiceImpl]
(AgentConnectTaskPool-1:null) Removing leftover template routing-3 entry
from template store table
2013-06-26 11:13:42,486 INFO  [storage.image.TemplateServiceImpl]
(AgentConnectTaskPool-1:null) Template Sync did not find routing-8 on
image store 1, may request download based on available hypervisor types
2013-06-26 11:13:42,487 INFO  [storage.image.TemplateServiceImpl]
(AgentConnectTaskPool-1:null) Removing leftover template routing-8 entry
from template store table
2013-06-26 11:13:42,490 INFO  [storage.image.TemplateServiceImpl]
(AgentConnectTaskPool-1:null) Template Sync did not find routing-9 on
image store 1, may request download based on available hypervisor types
2013-06-26 11:13:42,490 INFO  [storage.image.TemplateServiceImpl]
(AgentConnectTaskPool-1:null) Removing leftover template routing-9 entry
from template store table
2013-06-26 11:13:42,493 INFO  [storage.image.TemplateServiceImpl]
(AgentConnectTaskPool-1:null) Template Sync did not find routing-10 on
image store 1, may request download based on available hypervisor types
2013-06-26 11:13:42,493 INFO  [storage.image.TemplateServiceImpl]
(AgentConnectTaskPool-1:null) Removing leftover template routing-10 entry
from template store table
2013-06-26 11:13:42,495 INFO  [storage.image.TemplateServiceImpl]
(AgentConnectTaskPool-1:null) Downloading template centos56-x86_64-xen to
image store nfs://10.223.110.233/export/home/min/secondary
2013-06-26 11:13:42,535 DEBUG [agent.transport.Request]
(AgentConnectTaskPool-1:null) Seq 2-2012610566: Sending  { Cmd , MgmtId:
1, via: 2, Ver: v1, Flags: 100011,
[{"org.apache.cloudstack.storage.command.DownloadCommand":{"hvm":false,"des
cription":"CentOS 5.6(64-bit) no GUI
(XenServer)","checksum":"905cec879afd9c9d22ecc8036131a180","maxDownloadSize
InBytes":53687091200,"id":5,"resourceType":"TEMPLATE","installPath":"templa
te/tmpl/1/5","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.223
.110.233/export/home/min/secondary","_role":"Image"}},"url":"http://downloa
d.cloud.com/templates/builtin/centos56-x86_64.vhd.bz2","format":"VHD","acco
untId":1,"name":"centos56-x86_64-xen","secUrl":"nfs://10.223.110.233/export
/home/min/secondary","wait":0}}] }


Thanks
-min




On 6/26/13 10:09 AM, "Alena Prokharchyk" 
wrote:

>Template sync fails to download the default centos template in the latest
>master branch:
>
>2013-06-26 09:57:09,691 DEBUG [cloud.user.AccountManagerImpl]
>(AgentConnectTaskPool-3:null) Access granted to Acct[1-system] to
>Domain:1/ by DomainChecker_EnhancerByCloudStack_4f9daf02
>2013-06-26 09:57:09,702 INFO  [storage.image.TemplateServiceImpl]
>(AgentConnectTaskPool-3:null) Template Sync found routing-3 already in
>the image store
>2013-06-26 09:57:09,824 DEBUG [cloud.user.AccountManagerImpl]
>(AgentConnectTaskPool-3:null) Access granted to Acct[1-system] to
>Domain:1/ by DomainChecker_EnhancerByCloudStack_4f9daf02
>2013-06-26 09:57:09,842 INFO  [storage.image.TemplateServiceImpl]
>(AgentConnectTaskPool-3:null) Downloading template centos56-x86_64-xen to
>image store nfs://10.223.110.233/export/home/alena/secondary
>2013-06-26 09:57:09,868 DEBUG [agent.transport.Request]
>(StatsCollector-2:null) Seq 1-1993670671: Received:  { Ans: , MgmtId: 1,
>via: 1, Ver: v1, Flags: 10, { GetHostStatsAnswer } }
>2013-06-26 09:57:09,892 DEBUG [storage.download.DownloadListener]
>(AgentConnectTaskPool-3:null) Send command failed
>java.lang.NullPointerException
>at 
>com.cloud.hypervisor.HypervisorGuruManagerImpl.getGuruProcessedCommandTarg
>etHost(HypervisorGuruManagerImpl.java:64)
>at 
>org.apache.cloudstack.storage.RemoteHostEndPoint.sendMessageAsync(RemoteHo
>stEndPoint.java:172)
>at 
>com.cloud.storage.download.DownloadListener.sendCommand(DownloadListener.j
>ava:187)
>at 
>com.cloud.storage.download.DownloadAbandonedState.onEntry(DownloadAbandone
>dState.java:43)
>at 
>com.cloud.storage.download.DownloadListener.transition(DownloadListener.ja
>va:252)
>at 
>com.cloud.storage.download.DownloadListener.abandon(DownloadListener.java:
>322)
>at 
>com.cloud.storage.download.DownloadMonitorImpl.initiateTemplateDownload(Do
>wnloadMonitorImpl.java:195)
>at 
>com.cloud.storage.download.DownloadMonitorImpl.downloadTemplateToStorage(D
>ownloadMonitorImpl.java:215)
>at 
>org.apache.cloudstack.storage.image.BaseImageStoreDriverImpl.createAsync(B
>aseImageStoreDriverImpl.java:91)
>at 
>org.apache.cloudstack.storage.image.TemplateServiceImpl.createTemplate

RE: Master build problem

2013-06-26 Thread Soheil Eizadi
I don't see a fix checked in for that, my merged branch is ahead of master. It 
looks like it is due to the SSP Plugin checkin yesterday. If I had to guess the 
component is not included in the client/pom.xml. I commented out the plugin  in 
my branch (removed it from componentContext.xml.in) and I can run the image now.
-Soheil

Administrators-MacBook-Pro-7:client seizadi$ pwd
/Users/seizadi/cloudstack/infoblox_branch/cloudstack/client

Administrators-MacBook-Pro-7:client seizadi$ fgrep "cloud-plugin-network" 
pom.xml
  cloud-plugin-network-nvp
  cloud-plugin-network-ovs
  cloud-plugin-network-elb
  cloud-plugin-network-vns
  cloud-plugin-network-midonet
  cloud-plugin-network-internallb
  cloud-plugin-network-infoblox
  cloud-plugin-network-f5
  cloud-plugin-network-netscaler
  cloud-plugin-network-srx
  cloud-plugin-network-cisco-vnmc


From: Min Chen [min.c...@citrix.com]
Sent: Wednesday, June 26, 2013 11:07 AM
To: dev@cloudstack.apache.org
Subject: Re: Master build problem

I got latest master and able to start MS. I think that Prasanna has fixed
that with a later checkin.

Thanks
-min

On 6/26/13 11:02 AM, "Soheil Eizadi"  wrote:

>I merged the latest master into my branch and could not run it. I
>switched to master branch and built it but can not run it either, has
>anyone else seen this problem with sspCredentialDaoImpl?
>
>ERROR [web.context.ContextLoader] (main:) Context initialization failed
>org.springframework.beans.factory.BeanCreationException: Error creating
>bean with name 'actionEventUtils': Injection of autowired dependencies
>failed; nested exception is
>org.springframework.beans.factory.BeanCreationException: Could not
>autowire field: com.cloud.event.dao.EventDao
>com.cloud.event.ActionEventUtils.eventDao; nested exception is
>org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
>find class [com.cloud.network.dao.SspCredentialDaoImpl] for bean with
>name 'sspCredentialDaoImpl' defined in class path resource
>[componentContext.xml]; nested exception is
>java.lang.ClassNotFoundException:
>com.cloud.network.dao.SspCredentialDaoImpl



Re: devcloud help

2013-06-26 Thread Kelven Yang
I have another devCloud issue, after starting up the management server and
trying to deploy a basic zone configuration, I got following error. It
looks that I'm missing some step that requests python module is not
generated?

By the way, I'm in vmsync branch, but it should have been sync-ed with
master recently



:incubator-cloudstack kelveny$ mvn -P developer -pl tools/devcloud
-Ddeploysvr
[INFO] Scanning for projects...
[INFO] 

[INFO] 

[INFO] Building Apache CloudStack DevCloud 4.2.0-SNAPSHOT
[INFO] 

[INFO] 
[INFO] --- maven-remote-resources-plugin:1.3:process (default) @
cloud-devcloud ---
[INFO] 
[INFO] --- maven-site-plugin:3.1:attach-descriptor (attach-descriptor) @
cloud-devcloud ---
[INFO] 
[INFO] --- exec-maven-plugin:1.2.1:exec (default) @ cloud-devcloud ---
Traceback (most recent call last):
  File "../marvin/marvin/deployDataCenter.py", line 21, in 
import cloudstackTestClient
  File 
"/Users/kelveny/cloud-javelin/incubator-cloudstack/tools/marvin/marvin/clou
dstackTestClient.py", line 18, in 
import cloudstackConnection
  File 
"/Users/kelveny/cloud-javelin/incubator-cloudstack/tools/marvin/marvin/clou
dstackConnection.py", line 18, in 
import requests

Kelven



On 6/25/13 11:09 PM, "Thomas O'Dowd"  wrote:

>Just another update to say that after shutting down the system vms and
>restarting the management server, the systemvms have started back up
>again now so this is good progress for me and answers my original
>problem that I had with devcloud setup.
>
>Tom.
>
>On Wed, 2013-06-26 at 13:57 +0900, Thomas O'Dowd wrote:
>> Thank you Prasanna. I've over this hurdle now. Those last fixes in
>> master seem to have worked the magic. I was able to start the mgmt
>> server and do a deploysvr... I'm now going to shut it down as per the
>> devcloud doc and restart and see if that works.
>> 
>> Tom.
>
>-- 
>Cloudian KK - http://www.cloudian.com/get-started.html
>Fancy 100TB of full featured S3 Storage?
>Checkout the Cloudian® Community Edition!
>



Re: CloudStack API Development

2013-06-26 Thread Sebastien Goasguen

On Jun 26, 2013, at 12:07 PM, Ian Duffy  wrote:

> Wiki updated and Plugin working!
> 
> Thanks guys!
> 

Thanks, a quick blog on this would be great.

> On 26 June 2013 16:55, Ian Duffy  wrote:
>>> Ah yes. Please fix the wiki, we had this failure happen quite recently
>>> too.
>> 
>> Will do still testing!
>> 
>> On 26 June 2013 16:43, Prasanna Santhanam  wrote:
>>> On Wed, Jun 26, 2013 at 04:34:07PM +0100, Ian Duffy wrote:
 Think I might of found it
 
 According to http://www.slideshare.net/buildacloud/storage-plugins
 
 The plugin has to be listed as a dependency in client/pom.xml.
>>> 
>>> Ah yes. Please fix the wiki, we had this failure happen quite recently
>>> too.
>>> 
>>> --
>>> Prasanna.,
>>> 
>>> 
>>> Powered by BigRock.com
>>> 



Re: devcloud help

2013-06-26 Thread Kelven Yang
I've workaround this issue by deploying a basic zone using shared storage
with Standard UI instead of python scripts (I added another NFS export for
primary storage in devCloud Xen VM), but would be nice to know why it
failed in python deployment phase.

Kelven

On 6/26/13 11:50 AM, "Kelven Yang"  wrote:

>I have another devCloud issue, after starting up the management server and
>trying to deploy a basic zone configuration, I got following error. It
>looks that I'm missing some step that requests python module is not
>generated?
>
>By the way, I'm in vmsync branch, but it should have been sync-ed with
>master recently
>
>
>
>:incubator-cloudstack kelveny$ mvn -P developer -pl tools/devcloud
>-Ddeploysvr
>[INFO] Scanning for projects...
>[INFO]
>
>[INFO] 
>
>[INFO] Building Apache CloudStack DevCloud 4.2.0-SNAPSHOT
>[INFO] 
>
>[INFO] 
>[INFO] --- maven-remote-resources-plugin:1.3:process (default) @
>cloud-devcloud ---
>[INFO] 
>[INFO] --- maven-site-plugin:3.1:attach-descriptor (attach-descriptor) @
>cloud-devcloud ---
>[INFO] 
>[INFO] --- exec-maven-plugin:1.2.1:exec (default) @ cloud-devcloud ---
>Traceback (most recent call last):
>  File "../marvin/marvin/deployDataCenter.py", line 21, in 
>import cloudstackTestClient
>  File 
>"/Users/kelveny/cloud-javelin/incubator-cloudstack/tools/marvin/marvin/clo
>u
>dstackTestClient.py", line 18, in 
>import cloudstackConnection
>  File 
>"/Users/kelveny/cloud-javelin/incubator-cloudstack/tools/marvin/marvin/clo
>u
>dstackConnection.py", line 18, in 
>import requests
>
>Kelven
>
>
>
>On 6/25/13 11:09 PM, "Thomas O'Dowd"  wrote:
>
>>Just another update to say that after shutting down the system vms and
>>restarting the management server, the systemvms have started back up
>>again now so this is good progress for me and answers my original
>>problem that I had with devcloud setup.
>>
>>Tom.
>>
>>On Wed, 2013-06-26 at 13:57 +0900, Thomas O'Dowd wrote:
>>> Thank you Prasanna. I've over this hurdle now. Those last fixes in
>>> master seem to have worked the magic. I was able to start the mgmt
>>> server and do a deploysvr... I'm now going to shut it down as per the
>>> devcloud doc and restart and see if that works.
>>> 
>>> Tom.
>>
>>-- 
>>Cloudian KK - http://www.cloudian.com/get-started.html
>>Fancy 100TB of full featured S3 Storage?
>>Checkout the Cloudian® Community Edition!
>>
>



apache libcloud

2013-06-26 Thread Sebastien Goasguen
Hi folks,

libcloud 0.13 RC is up for vote. There is much better support for CloudStack in 
it.
Check it out: 
http://buildacloud.org/blog/268-cloudstack-support-in-apache-libcloud.html

-sebastien

Re: apache libcloud

2013-06-26 Thread kel...@backbonetechnology.com
I'll take a look, I've been waiting for the improved ACS support.

Sent from my HTC

- Reply message -
From: "Sebastien Goasguen" 
To: "dev@cloudstack.apache.org" 
Subject: apache libcloud
Date: Wed, Jun 26, 2013 1:43 PM

Hi folks,

libcloud 0.13 RC is up for vote. There is much better support for CloudStack in 
it.
Check it out: 
http://buildacloud.org/blog/268-cloudstack-support-in-apache-libcloud.html

-sebastien

Re: devcloud help

2013-06-26 Thread Min Chen
Based on earlier Prasanna's email,

pip install requests


Should fix this.

Thanks
-min

On 6/26/13 12:54 PM, "Kelven Yang"  wrote:

>I've workaround this issue by deploying a basic zone using shared storage
>with Standard UI instead of python scripts (I added another NFS export for
>primary storage in devCloud Xen VM), but would be nice to know why it
>failed in python deployment phase.
>
>Kelven
>
>On 6/26/13 11:50 AM, "Kelven Yang"  wrote:
>
>>I have another devCloud issue, after starting up the management server
>>and
>>trying to deploy a basic zone configuration, I got following error. It
>>looks that I'm missing some step that requests python module is not
>>generated?
>>
>>By the way, I'm in vmsync branch, but it should have been sync-ed with
>>master recently
>>
>>
>>
>>:incubator-cloudstack kelveny$ mvn -P developer -pl tools/devcloud
>>-Ddeploysvr
>>[INFO] Scanning for projects...
>>[INFO]   
>>
>>[INFO] 
>>
>>[INFO] Building Apache CloudStack DevCloud 4.2.0-SNAPSHOT
>>[INFO] 
>>
>>[INFO] 
>>[INFO] --- maven-remote-resources-plugin:1.3:process (default) @
>>cloud-devcloud ---
>>[INFO] 
>>[INFO] --- maven-site-plugin:3.1:attach-descriptor (attach-descriptor) @
>>cloud-devcloud ---
>>[INFO] 
>>[INFO] --- exec-maven-plugin:1.2.1:exec (default) @ cloud-devcloud ---
>>Traceback (most recent call last):
>>  File "../marvin/marvin/deployDataCenter.py", line 21, in 
>>import cloudstackTestClient
>>  File 
>>"/Users/kelveny/cloud-javelin/incubator-cloudstack/tools/marvin/marvin/cl
>>o
>>u
>>dstackTestClient.py", line 18, in 
>>import cloudstackConnection
>>  File 
>>"/Users/kelveny/cloud-javelin/incubator-cloudstack/tools/marvin/marvin/cl
>>o
>>u
>>dstackConnection.py", line 18, in 
>>import requests
>>
>>Kelven
>>
>>
>>
>>On 6/25/13 11:09 PM, "Thomas O'Dowd"  wrote:
>>
>>>Just another update to say that after shutting down the system vms and
>>>restarting the management server, the systemvms have started back up
>>>again now so this is good progress for me and answers my original
>>>problem that I had with devcloud setup.
>>>
>>>Tom.
>>>
>>>On Wed, 2013-06-26 at 13:57 +0900, Thomas O'Dowd wrote:
 Thank you Prasanna. I've over this hurdle now. Those last fixes in
 master seem to have worked the magic. I was able to start the mgmt
 server and do a deploysvr... I'm now going to shut it down as per the
 devcloud doc and restart and see if that works.
 
 Tom.
>>>
>>>-- 
>>>Cloudian KK - http://www.cloudian.com/get-started.html
>>>Fancy 100TB of full featured S3 Storage?
>>>Checkout the Cloudian® Community Edition!
>>>
>>
>



[GSoC] Updates

2013-06-26 Thread Shiva Teja
Hi all,

I made a little progress with my GSoC project("Create a Bootstrap based
UI"). I made basic prototypes with angular.js and backbone.js and I would
like to continue with angular.js. A demo of the prototype with angular.js
is available at http://students.iitmandi.ac.in:2/#/ . Currently, I am
finishing up reading angular.js docs and refactoring this prototype to
separate them into different modules.

Prototype with angular.js is available at
https://github.com/shivateja/cloudstack-ui/tree/angular
and prototype with backbone.js is at
https://github.com/shivateja/cloudstack-ui/

Regards,
Shiva Teja.


Re: Review Request 12101: CLOUDSTACK-3082: System VMs are failed to start with Xen 6.2.0( Failing to create VIF's)

2013-06-26 Thread Devdeep Singh

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


Can the following test cases be also included in your tests:
1. Verify that system vms and instances are coming up on xenserver 6.1 or an 
older version
2. Confirm that besides system vms, instance creation also works on xen 6.2

- Devdeep Singh


On June 26, 2013, 7:58 a.m., Sanjay Tripathi wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/12101/
> ---
> 
> (Updated June 26, 2013, 7:58 a.m.)
> 
> 
> Review request for cloudstack, Devdeep Singh and Sateesh Chodapuneedi.
> 
> 
> Bugs: CLOUDSTACK-3082
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> CLOUDSTACK-3082: System VMs are failed to start with Xen 6.2.0( Failing to 
> create VIF's).
> 
> https://issues.apache.org/jira/browse/CLOUDSTACK-3082
> 
> 
> Diffs
> -
> 
>   
> plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
>  af640a2 
> 
> Diff: https://reviews.apache.org/r/12101/diff/
> 
> 
> Testing
> ---
> 
> Tests:
> 
> 1) setup a CS environment with XenServer 6.2
> 2) Verified that systemVMs are coming up.
> 
> 
> Thanks,
> 
> Sanjay Tripathi
> 
>



Re: Failing tests on simulator.

2013-06-26 Thread Sebastien Goasguen
Ian, I am copying Prasanna to get his attention on this.



On Jun 19, 2013, at 6:42 AM, Ian Duffy  wrote:

> Hi,
> 
> I'm attempting to run tests on the simulator as outlined in
> https://cwiki.apache.org/CLOUDSTACK/marvin-testing-with-python.html
> 
> Executing the checkin tests results in errors. Anybody got any feedback on 
> this?
> 
> $ mvn -Pdeveloper,marvin.test -Dmarvin.config=setup/dev/advanced.cfg
> -pl :cloud-marvin integration-test
> [INFO] Scanning for projects...
> [INFO]
> [INFO] 
> 
> [INFO] Building Apache CloudStack marvin 4.2.0-SNAPSHOT
> [INFO] 
> 
> [INFO]
> [INFO] --- gmaven-plugin:1.5:execute (setproperty) @ cloud-marvin ---
> [INFO]
> [INFO] --- exec-maven-plugin:1.2.1:exec (generate-sources) @ cloud-marvin ---
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.3:process (default) @
> cloud-marvin ---
> [INFO]
> [INFO] --- maven-site-plugin:3.1:attach-descriptor (attach-descriptor)
> @ cloud-marvin ---
> [INFO]
> [INFO] --- exec-maven-plugin:1.2.1:exec (integration-test) @ cloud-marvin ---
> test DeployVM in anti-affinity groups ... ok
> Test Deploy Virtual Machine ... ok
> Test userdata as GET, size > 2k ... ok
> Test userdata as POST, size > 2k ... ok
> Test to deploy vm with a first fit offering ... ok
> Test deploy VMs using user concentrated planner ... FAIL
> Test deploy VMs using user dispersion planner ... FAIL
> Test to create disk offering ... ok
> Test to update existing disk offering ... ok
> Test to delete disk offering ... ok
> test update configuration setting at zone level scope ... ok
> Test guest vlan range dedication ... ok
> Test to update a physical network and extend its vlan ... ok
> Test to acquire a provisioned public ip range ... ok
> Test to create a portable public ip range ... ok
> ERROR
> Test for create region ... ok
> Test advanced zone virtual router ... ok
> Test Deploy Virtual Machine ... ok
> 
> ==
> ERROR: test suite for  'integration.smoke.test_public_ip_range.TestDedicatePublicIPRange'>
> --
> Traceback (most recent call last):
>  File 
> "/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
> line 208, in run
>self.setUp()
>  File 
> "/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
> line 291, in setUp
>self.setupContext(ancestor)
>  File 
> "/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
> line 314, in setupContext
>try_run(context, names)
>  File 
> "/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/util.py",
> line 469, in try_run
>return func()
>  File 
> "/home/duffy/projects/clean-cloudstack/test/integration/smoke/test_public_ip_range.py",
> line 63, in setUpClass
>cls.zone = get_zone(cls.api_client, cls.services)
>  File 
> "/usr/local/lib/python2.7/site-packages/Marvin-0.1.0-py2.7.egg/marvin/integration/lib/common.py",
> line 87, in get_zone
>raise Exception("Failed to find specified zone.")
> Exception: Failed to find specified zone.
> 
> ==
> FAIL: Test deploy VMs using user concentrated planner
> --
> Traceback (most recent call last):
>  File 
> "/home/duffy/projects/clean-cloudstack/test/integration/smoke/test_deploy_vms_with_varied_deploymentplanners.py",
> line 247, in test_deployvm_userconcentrated
>msg="VMs (%s, %s) meant to be concentrated are deployed on
> different clusters (%s, %s)" % (vm1.id, vm2.id, vm1clusterid,
> vm2clusterid)
> AssertionError: VMs (aea66681-ea64-4c84-86b2-d3950057d0cd,
> 2a1d81b5-6663-4149-a5ee-d96a9197ba3c) meant to be concentrated are
> deployed on different clusters (9ed7ff64-4bd8-4aa8-aa83-a6a9b663abed,
> 664c89d3-b584-4cae-ae46-9e332ef5a969)
> 
> ==
> FAIL: Test deploy VMs using user dispersion planner
> --
> Traceback (most recent call last):
>  File 
> "/home/duffy/projects/clean-cloudstack/test/integration/smoke/test_deploy_vms_with_varied_deploymentplanners.py",
> line 186, in test_deployvm_userdispersing
>msg="VMs (%s, %s) meant to be dispersed are deployed in the same
> cluster %s" % (vm1.id, vm2.id, vm1clusterid)
> AssertionError: VMs (53a7cee4-7b8c-4e81-8b48-d4f3ee3227d8,
> 203e77d9-4110-4f2e-8891-e426e5f7aa3e) meant to be dispersed are
> deployed in the same cluster 9ed7ff64-4bd8-4aa8-aa83-a6a9b663abed
> 
> --
> Ran 18 tests in 166.670s
> 
> FAILED (errors=1, failures=2)
> [INFO] 
> -

Re: devcloud help

2013-06-26 Thread Kelven Yang
Min, Thanks.

This step needs to be updated to the devCloud wiki page. I lost tracking
of emails about this.

Kelven

On 6/26/13 2:28 PM, "Min Chen"  wrote:

>Based on earlier Prasanna's email,
>
>pip install requests
>
>
>Should fix this.
>
>Thanks
>-min
>
>On 6/26/13 12:54 PM, "Kelven Yang"  wrote:
>
>>I've workaround this issue by deploying a basic zone using shared storage
>>with Standard UI instead of python scripts (I added another NFS export
>>for
>>primary storage in devCloud Xen VM), but would be nice to know why it
>>failed in python deployment phase.
>>
>>Kelven
>>
>>On 6/26/13 11:50 AM, "Kelven Yang"  wrote:
>>
>>>I have another devCloud issue, after starting up the management server
>>>and
>>>trying to deploy a basic zone configuration, I got following error. It
>>>looks that I'm missing some step that requests python module is not
>>>generated?
>>>
>>>By the way, I'm in vmsync branch, but it should have been sync-ed with
>>>master recently
>>>
>>>
>>>
>>>:incubator-cloudstack kelveny$ mvn -P developer -pl tools/devcloud
>>>-Ddeploysvr
>>>[INFO] Scanning for projects...
>>>[INFO]  
>>>
>>>[INFO] 
>>>
>>>[INFO] Building Apache CloudStack DevCloud 4.2.0-SNAPSHOT
>>>[INFO] 
>>>
>>>[INFO] 
>>>[INFO] --- maven-remote-resources-plugin:1.3:process (default) @
>>>cloud-devcloud ---
>>>[INFO] 
>>>[INFO] --- maven-site-plugin:3.1:attach-descriptor (attach-descriptor) @
>>>cloud-devcloud ---
>>>[INFO] 
>>>[INFO] --- exec-maven-plugin:1.2.1:exec (default) @ cloud-devcloud ---
>>>Traceback (most recent call last):
>>>  File "../marvin/marvin/deployDataCenter.py", line 21, in 
>>>import cloudstackTestClient
>>>  File 
>>>"/Users/kelveny/cloud-javelin/incubator-cloudstack/tools/marvin/marvin/c
>>>l
>>>o
>>>u
>>>dstackTestClient.py", line 18, in 
>>>import cloudstackConnection
>>>  File 
>>>"/Users/kelveny/cloud-javelin/incubator-cloudstack/tools/marvin/marvin/c
>>>l
>>>o
>>>u
>>>dstackConnection.py", line 18, in 
>>>import requests
>>>
>>>Kelven
>>>
>>>
>>>
>>>On 6/25/13 11:09 PM, "Thomas O'Dowd"  wrote:
>>>
Just another update to say that after shutting down the system vms and
restarting the management server, the systemvms have started back up
again now so this is good progress for me and answers my original
problem that I had with devcloud setup.

Tom.

On Wed, 2013-06-26 at 13:57 +0900, Thomas O'Dowd wrote:
> Thank you Prasanna. I've over this hurdle now. Those last fixes in
> master seem to have worked the magic. I was able to start the mgmt
> server and do a deploysvr... I'm now going to shut it down as per the
> devcloud doc and restart and see if that works.
> 
> Tom.

-- 
Cloudian KK - http://www.cloudian.com/get-started.html
Fancy 100TB of full featured S3 Storage?
Checkout the Cloudian® Community Edition!

>>>
>>
>



[DISCUSS] Java 7, tomcat 7 and further upgrades

2013-06-26 Thread Hugo Trippaers
Hey everyone,

Back in February 2013 Oracle announced the end of public support for java 1.6 
already. Today we are still using java 1.6 as our supported platform. I've been 
looking at the next generation of linux distributions (well mainly at Fedora 
18, which will probably become RHEL 7) and those platforms ship with java 1.7 
by default.  

Next to that several core components are also upgraded with affect our 
installation. RHEL 7 will most likely use tomcat 7 as the default tomcat 
platform for example.

If we want to start shipping for those platform we will have to start testing 
with these versions of the software as well. I'm already working on some things 
that need to be done, like replacing the existing init scripts with systemd 
versions and adapting the spec file for the new OS, but there is more to it 
than that.

I'm wondering what we need to do on the source side of things. My proposal 
would be to at least configure maven to set the source version to 1.7. This 
requires developers to use the java 7 versions of the jdk. We can leave the 
target to 1.6 for the time being to ensure that the packages could still run on 
a 1.6 jdk.

However at a certain point we should start to advice people to run CloudStack 
on java 1.7 as there are no more public security updates to java 1.6.

So summarized proposal, make 4.2 the last version to support 1.6 and switch 
maven source version to 1.7 after we cut the release branch for 4.2. The new 
reference platform for the next release would be jdk 1.7 and tomcat7 (meaning 
packaging will be tested on those platforms). 

So what do you all think of this? If we are ok to do this i would like to start 
with this right after the release branch cut. This constitutes a major 
architecture change so i would want this to be in as early as possible in the 
release cycle.

And as a side note, are there any other version updates we would like to see in 
that release. We depend on several ancient libraries if i'm looking through the 
pom files. Maybe we should consider upgrading a few dependencies to more recent 
versions?

Cheers,

Hugo




Re: [GSoC] Updates

2013-06-26 Thread Rohit Yadav
Good work Shiva. Couple of suggestions;
- Topbar nav. was not smooth for me, I'm bit used to sidebar nav, but
that's just UX part, I maybe wrong.
- Have search features right from beginning of your work. For ex. implement
something to search all fields on a table, make the head of the table
sortable. Have Lucene integration, which would be awesome to do searching.
A typical Cloud can have hundreds or thousands of instances etc.
- Use bootstrap labels/badges to tag states, for. example states of VM,
zones etc.
- I see its responsive, maybe have implement mobile site differently which
bootrap allows you to do using custom css/js. So, same page looks different
on bigger screens and smaller ones and it adapts. For ex. it's
not necessary to show all fields on a mobile device.

Looking forward to more of it.

Cheers.

On Thu, Jun 27, 2013 at 3:24 AM, Shiva Teja  wrote:

> Hi all,
>
> I made a little progress with my GSoC project("Create a Bootstrap based
> UI"). I made basic prototypes with angular.js and backbone.js and I would
> like to continue with angular.js. A demo of the prototype with angular.js
> is available at http://students.iitmandi.ac.in:2/#/ . Currently, I am
> finishing up reading angular.js docs and refactoring this prototype to
> separate them into different modules.
>
> Prototype with angular.js is available at
> https://github.com/shivateja/cloudstack-ui/tree/angular
> and prototype with backbone.js is at
> https://github.com/shivateja/cloudstack-ui/
>
> Regards,
> Shiva Teja.
>


Re: [DISCUSS] Java 7, tomcat 7 and further upgrades

2013-06-26 Thread Rohit Yadav
On Thu, Jun 27, 2013 at 4:06 AM, Hugo Trippaers  wrote:

> Hey everyone,
>
> Back in February 2013 Oracle announced the end of public support for java
> 1.6 already. Today we are still using java 1.6 as our supported platform.
> I've been looking at the next generation of linux distributions (well
> mainly at Fedora 18, which will probably become RHEL 7) and those platforms
> ship with java 1.7 by default.
>
> Next to that several core components are also upgraded with affect our
> installation. RHEL 7 will most likely use tomcat 7 as the default tomcat
> platform for example.
>
> If we want to start shipping for those platform we will have to start
> testing with these versions of the software as well. I'm already working on
> some things that need to be done, like replacing the existing init scripts
> with systemd versions and adapting the spec file for the new OS, but there
> is more to it than that.
>
> I'm wondering what we need to do on the source side of things. My proposal
> would be to at least configure maven to set the source version to 1.7.


+1 Let's do it!


> This requires developers to use the java 7 versions of the jdk. We can
> leave the target to 1.6 for the time being to ensure that the packages
> could still run on a 1.6 jdk.
>
> However at a certain point we should start to advice people to run
> CloudStack on java 1.7 as there are no more public security updates to java
> 1.6.
>
> So summarized proposal, make 4.2 the last version to support 1.6 and
> switch maven source version to 1.7 after we cut the release branch for 4.2.
> The new reference platform for the next release would be jdk 1.7 and
> tomcat7 (meaning packaging will be tested on those platforms).
>

+1


> So what do you all think of this? If we are ok to do this i would like to
> start with this right after the release branch cut. This constitutes a
> major architecture change so i would want this to be in as early as
> possible in the release cycle.
>

We should do it, we don't have much choice I guess if 1.6 will go away, it
makes sense to adapt and build on the latest.

And as a side note, are there any other version updates we would like to
> see in that release. We depend on several ancient libraries if i'm looking
> through the pom files. Maybe we should consider upgrading a few
> dependencies to more recent versions?
>

Few of the dependencies have issues, so upgrading few of them can actually
break stuff, for example in cloudstack-awsapi. But, yes we should upgrade
the rest of the dependencies, have the latest/stable ones.

Cheers.


Re: event bus details

2013-06-26 Thread Ryan Dietrich
Hi, I'm doing some work in the event bus.  My requirements are pretty 
straightforward.

1. Let me know when a command is executed.
2. Let me know the UUID of the element being modified when that command is 
executed. (i.e.: If we're updating a virtual machine, the UUID should be the 
one for that particular VM).
3. When an async command is executed, let me know when it's started, and every 
state change for that job until it is completed, and then let me know what the 
status of the job is.
4. I'd like to see the human readable username and domain of the user that is 
executing the command. (I understand this one isn't as important to many of 
you, a configuration option would suffice).
5. Lastly, I'd like to get state changes of the various components should be 
sent to the event bus, again with the user/domanin/uuid.  

ActionEvent seems driven either directly, or via annotation 
(api/src/com/cloud/event/ActionEvent.java), and relies on overrides to get the 
actual description (not sure why there is a description there at all actually).
The other "StateListener" / "StateEvent" systems seem totally unrelated, yet 
encompass an alternative approach to writing messages to the event bus (and 
have a bit more meta-data that I need).

Are the things I'm looking to do the actual desired use case for the event bus? 
 Human readable descriptions aren't enough for me, I really need machine 
consumable consistent messaging (currently it seems every message being pushed 
out to RabbitMQ follows a different format).  Is there any documentation or 
plan for this system going forward?

I need this working, now-ish, so I'm willing to get in and get it done, but 
again, I'd rather work with the flow, and not against it :-)

Cheers,

-Ryan Dietrich

On Jun 26, 2013, at 8:14 AM, Murali Reddy  wrote:

> 
> Yeah its a bug. Fixed CLOUDSTACK-3213 for both 4.2 and 4.1.1. Thanks for
> bringing it out.
> 
> On 25/06/13 9:27 PM, "Marcus Sorensen"  wrote:
> 
>> Thanks for the response. So am I to assume that the VM start/stop
>> showing up under EntityType Network is also a bug?
>> 



RE: [MERGE] Merge VMSync improvement branch into master

2013-06-26 Thread Alex Huang
Hi All,

Kelven had an emergency so I'm submitting the changes on vmsync for him.  The 
patch are on 
https://reviews.apache.org/r/12126.

Hugo took a look and already had some questions on why so many files were 
changed and added/deleted,  So I like to explain a bit in this email.

As part of the vmsync change, we try to move the files that were relevant to vm 
orchestration into the right places so that others can properly view the 
different jars and understand the relationship between the jars.  This process 
is ongoing and will continue in other changes.

- Work related to jobs management have been put under cloud-framework-jobs as 
handling jobs is not really part of our server but is a library.  By doing it 
this way, changes in it can be properly reviewed and there's a good separation 
from things that utilizes jobs and jobs itself.
- VirtualMachine orchestration has been moved from cloud-server to 
cloud-engine-orchestration.  Cloud-engine-orchestration then only depends on 
cloud-engine-schema and cloud-api.  This creates a clear compilation boundary 
between the self-service server implementation and orchestration 
implementation. 

As part of these changes, then we surfaced many problems because we setup the 
proper compilation boundaries and fixed all of these problems.  For example, 
HostAllocator interface is something people can write plugins for but it was 
buried inside cloud-server package.  We've moved a majority of these changes to 
cloud-api.  There's quite a bit of file movements based on this change.  For 
vmsync changes itself, the changes are centered around 
VirtualMachineManagerImpl.java so you can review that file instead.

Thanks.

--Alex


> -Original Message-
> From: Kelven Yang [mailto:kelven.y...@citrix.com]
> Sent: Tuesday, June 18, 2013 3:38 PM
> To: dev@cloudstack.apache.org
> Subject: Re: [MERGE] Merge VMSync improvement branch into master
> 
> 
> 
> On 6/17/13 7:43 PM, "Mice Xia"  wrote:
> 
> >Kelven,
> >
> >After the refactoring, will CS still restart HA enabled VM when it is
> >power off externally (e.g. using xencenter) or internally (user
> >initiated shutdown or crash)?
> 
> 
> If HA functionality is provided by external manager (i.e., vCenter), CS won't
> try to restart it, but if HA is provided by CloudStack, we will restore the 
> legacy
> logic. The hook up with old HA manager (between
> HighAvailabilityManager/VirtualMachineManager) is in the wrap-up process
> 
> 
> >
> >Is seems the method HighAvailabilityManagerImpl .scheduleRestart() is
> >not called when VM's actual state is stopped while expected state is
> running.
> >
> >
> >Regards
> >Mice
> >
> >-Original Message-
> >From: Kelven Yang [mailto:kelven.y...@citrix.com]
> >Sent: Tuesday, June 18, 2013 5:21 AM
> >To: dev@cloudstack.apache.org
> >Subject: Re: [MERGE] Merge VMSync improvement branch into master
> >
> >Haven't created a patch yet, will do it soon after some last wrap-ups.
> >
> >Kelven
> >
> >On 6/17/13 12:03 PM, "John Burwell"  wrote:
> >
> >>Kelven,
> >>
> >>Did this patch get pushed to Review Board?  If so, what is the URL?
> >>
> >>Thanks.
> >>-John
> >>
> >>On Jun 17, 2013, at 1:40 PM, Kelven Yang  wrote:
> >>
> >>> Low level classes were tested in unit tests(MessageBus, Job
> >>>framework, Job  dispatchers etc), interface layer changes are guarded
> >>>through matching the  old semantics, but changes are tested manually,
> >>>we are planning to get  this part of testing through BVT system after
> >>>we have re-based the latest  master.
> >>>
> >>> Kelven
> >>>
> >>> On 6/17/13 10:01 AM, "Chip Childers" 
> wrote:
> >>>
>  On Mon, Jun 17, 2013 at 04:59:00PM +, Kelven Yang wrote:
> > I'd like to kick off the official merge process. We will start the
> >merge  process after the branch has passed necessary tests
> >
> > Kelven
> 
>  Can you share what testing is being run against the branch?
> >>>
> >>
> >



RE: Where should a system VM image be uncompressed?

2013-06-26 Thread Edison Su


> -Original Message-
> From: Donal Lafferty [mailto:donal.laffe...@citrix.com]
> Sent: Wednesday, June 26, 2013 10:01 AM
> To: dev@cloudstack.apache.org
> Subject: Where should a system VM image be uncompressed?
> 
> I noticed that the system VM template is stored in S3 as a .bz2.  E.g. as
> a .vhd.bz2 when using a Hyper-V hypervisor.
> 
> Naturally, you can't run a bz2.  Nor can you make a thin copy of it, say if 
> it's a
> downloaded as a TEMPLATE to a primary storage pool.
> 
> Should it be uncompressed before it goes into S3, when it is copied from S3
> to primary storage, or when a volume is created from the TEMPLATE?
There are two options:
1. Put an uncompressed template url into cloudstack db for HyperV system vm 
template, and disable register compressed template/ISO into S3, if the zone is 
for hyperV. If there is no staging area between S3 and primary storage, there 
is no place to unzip template.
2. Add a file system supported by hyperV as staging area, so that we can copy 
compressed template from S3 into that staging area, then unzip, and import into 
hyperV. Currently, we can add NFS as staging area, possible you can add CIFS as 
staging area also.



Re: Does anyone know how to get the token of the vm console login url?

2013-06-26 Thread Daan Hoogland
Is some console proxy guru helping this guy/girl out. I would really like
to see the way to go about that ;)

Regards,
Op 25 jun. 2013 15:12 schreef "WXR" <474745...@qq.com> het volgende:

> When we click the "view console" button of a sertain vm,a webbrower window
> will pop up and we can view the console of the vm.
>
> If we view the html source code of the window,we can find a https url like
> this:
>
>
> https://192-168-30-102.realhostip.com/ajax?token=mD_rIFSUJkT7PrE6r5Q576WmdQMpDi9cOmi5ClE5J8tiMzJIxwg8p8CWDQtdDOst_irHE4D1S_5geEkcFvwoIGcvoc7LbK8MydwVFvtyCcPi1crfLe82_4ZbetnfEaG1GdEu3rntUkUJ5b00_1KuW3DAb0F1b_16be_WG9IT9Uck32IFPmdf3MS4RSKVGo9C27z978LoA8oVLd3wTe-EDa2K-dOjPclKql9uhFMgBoSEifsLPoo6ZAD5Lahu15oq7QdtYp9zg-ujst8Oya7kOg
>
> I  want to know how to get the token value.I need to make this url by
>  myself,not by clicking the button on cloudstack UI,but I'm not familiar
> with JAVA.It's too difficult for me to find the algorithm from the
> cloudstack source code directly,so I hope some people or documents can help
> me to get it.


Re: [MERGE] Merge VMSync improvement branch into master

2013-06-26 Thread Hugo Trippaers
Hey Alex, Kelven,

I've been looking though the code and thanks for the very insightfull 
conversation and follow-up email. With merges of this magnitude it's essential 
to help people understand what is going on.

Purely technical this is a merge i'm really pleased with. It will for sure 
improve our handling of virtual machines.

However the timing of the merge request is not ideal. We are very close to the 
end of the already extended feature freeze. We have a consensus within the dev 
community to do large architectural changes in the beginning of the cycle and 
not at the very end. This not only means a lot of extra testing effort and 
other developers will have to get used to the changes introduced right at the 
moment when everybody should be focussed on bug fixing, documentation and 
stability. Without wanting to rip open old wounds, i can imagine we all want to 
avoid a javelin incident.

I respect the work going into this and the effort it will take to keep this up 
to date with the current speed of master, but still i'm going to veto this with 
a -1 for inclusion before we cut of the 4.2 branch.

Cheers,

Hugo

On Jun 26, 2013, at 5:32 PM, Alex Huang  wrote:

> Hi All,
> 
> Kelven had an emergency so I'm submitting the changes on vmsync for him.  The 
> patch are on 
> https://reviews.apache.org/r/12126.
> 
> Hugo took a look and already had some questions on why so many files were 
> changed and added/deleted,  So I like to explain a bit in this email.
> 
> As part of the vmsync change, we try to move the files that were relevant to 
> vm orchestration into the right places so that others can properly view the 
> different jars and understand the relationship between the jars.  This 
> process is ongoing and will continue in other changes.
> 
> - Work related to jobs management have been put under cloud-framework-jobs as 
> handling jobs is not really part of our server but is a library.  By doing it 
> this way, changes in it can be properly reviewed and there's a good 
> separation from things that utilizes jobs and jobs itself.
> - VirtualMachine orchestration has been moved from cloud-server to 
> cloud-engine-orchestration.  Cloud-engine-orchestration then only depends on 
> cloud-engine-schema and cloud-api.  This creates a clear compilation boundary 
> between the self-service server implementation and orchestration 
> implementation. 
> 
> As part of these changes, then we surfaced many problems because we setup the 
> proper compilation boundaries and fixed all of these problems.  For example, 
> HostAllocator interface is something people can write plugins for but it was 
> buried inside cloud-server package.  We've moved a majority of these changes 
> to cloud-api.  There's quite a bit of file movements based on this change.  
> For vmsync changes itself, the changes are centered around 
> VirtualMachineManagerImpl.java so you can review that file instead.
> 
> Thanks.
> 
> --Alex
> 
> 
>> -Original Message-
>> From: Kelven Yang [mailto:kelven.y...@citrix.com]
>> Sent: Tuesday, June 18, 2013 3:38 PM
>> To: dev@cloudstack.apache.org
>> Subject: Re: [MERGE] Merge VMSync improvement branch into master
>> 
>> 
>> 
>> On 6/17/13 7:43 PM, "Mice Xia"  wrote:
>> 
>>> Kelven,
>>> 
>>> After the refactoring, will CS still restart HA enabled VM when it is
>>> power off externally (e.g. using xencenter) or internally (user
>>> initiated shutdown or crash)?
>> 
>> 
>> If HA functionality is provided by external manager (i.e., vCenter), CS won't
>> try to restart it, but if HA is provided by CloudStack, we will restore the 
>> legacy
>> logic. The hook up with old HA manager (between
>> HighAvailabilityManager/VirtualMachineManager) is in the wrap-up process
>> 
>> 
>>> 
>>> Is seems the method HighAvailabilityManagerImpl .scheduleRestart() is
>>> not called when VM's actual state is stopped while expected state is
>> running.
>>> 
>>> 
>>> Regards
>>> Mice
>>> 
>>> -Original Message-
>>> From: Kelven Yang [mailto:kelven.y...@citrix.com]
>>> Sent: Tuesday, June 18, 2013 5:21 AM
>>> To: dev@cloudstack.apache.org
>>> Subject: Re: [MERGE] Merge VMSync improvement branch into master
>>> 
>>> Haven't created a patch yet, will do it soon after some last wrap-ups.
>>> 
>>> Kelven
>>> 
>>> On 6/17/13 12:03 PM, "John Burwell"  wrote:
>>> 
 Kelven,
 
 Did this patch get pushed to Review Board?  If so, what is the URL?
 
 Thanks.
 -John
 
 On Jun 17, 2013, at 1:40 PM, Kelven Yang  wrote:
 
> Low level classes were tested in unit tests(MessageBus, Job
> framework, Job  dispatchers etc), interface layer changes are guarded
> through matching the  old semantics, but changes are tested manually,
> we are planning to get  this part of testing through BVT system after
> we have re-based the latest  master.
> 
> Kelven
> 
> On 6/17/13 10:01 AM, "Chip Childers" 
>> wrote:
> 
>> On Mon, Jun 17, 2013 at 04:59:00PM +, Ke

Re: [DISCUSS] Java 7, tomcat 7 and further upgrades

2013-06-26 Thread Joe Brockmeier
On Wed, Jun 26, 2013, at 05:36 PM, Hugo Trippaers wrote:
> However at a certain point we should start to advice people to run
> CloudStack on java 1.7 as there are no more public security updates to
> java 1.6.

Previously: http://markmail.org/thread/s2dzo5ib7ox46l4f

> So summarized proposal, make 4.2 the last version to support 1.6 and
> switch maven source version to 1.7 after we cut the release branch for
> 4.2. The new reference platform for the next release would be jdk 1.7 and
> tomcat7 (meaning packaging will be tested on those platforms). 
> 
> So what do you all think of this? If we are ok to do this i would like to
> start with this right after the release branch cut. This constitutes a
> major architecture change so i would want this to be in as early as
> possible in the release cycle.

I'm in favor of this.

Best,

jzb
-- 
Joe Brockmeier
j...@zonker.net
Twitter: @jzb
http://www.dissociatedpress.net/


Re: [DISCUSS] Java 7, tomcat 7 and further upgrades

2013-06-26 Thread Mike Tutkowski
+1 Sounds like a good idea to move forward to 1.7.


On Wed, Jun 26, 2013 at 7:22 PM, Joe Brockmeier  wrote:

> On Wed, Jun 26, 2013, at 05:36 PM, Hugo Trippaers wrote:
> > However at a certain point we should start to advice people to run
> > CloudStack on java 1.7 as there are no more public security updates to
> > java 1.6.
>
> Previously: http://markmail.org/thread/s2dzo5ib7ox46l4f
>
> > So summarized proposal, make 4.2 the last version to support 1.6 and
> > switch maven source version to 1.7 after we cut the release branch for
> > 4.2. The new reference platform for the next release would be jdk 1.7 and
> > tomcat7 (meaning packaging will be tested on those platforms).
> >
> > So what do you all think of this? If we are ok to do this i would like to
> > start with this right after the release branch cut. This constitutes a
> > major architecture change so i would want this to be in as early as
> > possible in the release cycle.
>
> I'm in favor of this.
>
> Best,
>
> jzb
> --
> Joe Brockmeier
> j...@zonker.net
> Twitter: @jzb
> http://www.dissociatedpress.net/
>



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


[ACS42] Release Status Update

2013-06-26 Thread Animesh Chaturvedi
Folks

The status for features or improvement is depicted in table below

|-+---+---|
| New Features / Improvements | This Week | TwoWeekAgo|
|-+---+---|
| Closed  | 8 | 7 |
| Resolved|56 |52 |
| In Progress |13 |17 |
| Reopened| 1 | 2 |
| Ready To Review | 2 | 2 |
| Open|22 |23 |
|-+---+---|
| Total   |   102 |   103 |
|-+---+---|

We are now just two days away from feature freeze, but still there are many 
open tickets. If the feature or improvement is unlikely to be wrapped up by 
6/28 it should be moved out of 4.2



As for bugs here is a summary for this week: 

  Bugs| This Week| Two Week Ago 
   
 
-+---+--+---+---+---+--+---+---
  |   Blocker   Critical   Major   Total |   Blocker   Critical 
  Major   Total  
 
-+---+--+---+---+---+--+---+---
  Incoming| 4 19  37  68 | 8 20 
 29  60
  Outgoing|19 42  34 102 |18 10 
 42  76
  Open Unassigned | 4 27 116 184 | 7 35 
 93 166  
  Open Total  |17 62 223 365 |19 74 
192 345 



The outgoing defect fix rate is much higher than incoming defects which is a 
good sign but we still have large number of open defects. We have a large 
number of unassigned open defects and it is increasing every week. If you are 
interested in helping out on defects please check the release dashboard  
http://s.apache.org/M5k   

The resolved but not verified /closed has gone up now to 458 and needs to be 
contained. If you reported a issues and fixed it yourself but did not close it 
please take a moment to close the defect after verification.

I also wanted to call out that there are large number of patches on review 
board. If you are reviewer please attend to your reviews. If you are a 
submitter and want your contribution to be included in 4.2 please follow 
through with your reviewers.


Comments/feedback on this release status update are appreciated. You can always 
visit the 4.2 Release dashboard http://s.apache.org/M5k for the current status. 


Thanks
Animesh


Re: [ACS42] Release Status Update

2013-06-26 Thread Mike Tutkowski
Hey John,

I know you were at a CloudStack Meetup today, but any thoughts on when we
are going to get Storage QoS (the SolidFire plug-in) merged into master?

Thanks!


On Wed, Jun 26, 2013 at 9:37 PM, Animesh Chaturvedi <
animesh.chaturv...@citrix.com> wrote:

> Folks
>
> The status for features or improvement is depicted in table below
>
> |-+---+---|
> | New Features / Improvements | This Week | TwoWeekAgo|
> |-+---+---|
> | Closed  | 8 | 7 |
> | Resolved|56 |52 |
> | In Progress |13 |17 |
> | Reopened| 1 | 2 |
> | Ready To Review | 2 | 2 |
> | Open|22 |23 |
> |-+---+---|
> | Total   |   102 |   103 |
> |-+---+---|
>
> We are now just two days away from feature freeze, but still there are
> many open tickets. If the feature or improvement is unlikely to be wrapped
> up by 6/28 it should be moved out of 4.2
>
>
>
> As for bugs here is a summary for this week:
>
>   Bugs| This Week| Two Week Ago
>
>  
> -+---+--+---+---+---+--+---+---
>   |   Blocker   Critical   Major   Total |   Blocker
> Critical   Major   Total
>
>  
> -+---+--+---+---+---+--+---+---
>   Incoming| 4 19  37  68 | 8
>   20  29  60
>   Outgoing|19 42  34 102 |18
>   10  42  76
>   Open Unassigned | 4 27 116 184 | 7
>   35  93 166
>   Open Total  |17 62 223 365 |19
>   74 192 345
>
>
>
> The outgoing defect fix rate is much higher than incoming defects which is
> a good sign but we still have large number of open defects. We have a large
> number of unassigned open defects and it is increasing every week. If you
> are interested in helping out on defects please check the release dashboard
>  http://s.apache.org/M5k
>
> The resolved but not verified /closed has gone up now to 458 and needs to
> be contained. If you reported a issues and fixed it yourself but did not
> close it please take a moment to close the defect after verification.
>
> I also wanted to call out that there are large number of patches on review
> board. If you are reviewer please attend to your reviews. If you are a
> submitter and want your contribution to be included in 4.2 please follow
> through with your reviewers.
>
>
> Comments/feedback on this release status update are appreciated. You can
> always visit the 4.2 Release dashboard http://s.apache.org/M5k for the
> current status.
>
>
> Thanks
> Animesh
>



-- 
*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: Review Request 11067: Automation: Add testcases for Affinity/Anti-Affinity Rules

2013-06-26 Thread Prasanna Santhanam

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

Ship it!


3c0c6cb

- Prasanna Santhanam


On June 26, 2013, 5:11 p.m., Girish Shilamkar wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/11067/
> ---
> 
> (Updated June 26, 2013, 5:11 p.m.)
> 
> 
> Review request for cloudstack, Prachi Damle, sangeetha hariharan, and 
> Prasanna Santhanam.
> 
> 
> Bugs: CLOUDSTACK-2254
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> Add testcases for Affinity/Anti-Affinity Rules
> 
> 
> Diffs
> -
> 
>   test/integration/component/test_affinity_groups.py PRE-CREATION 
>   tools/marvin/marvin/integration/lib/base.py 503ed64 
> 
> Diff: https://reviews.apache.org/r/11067/diff/
> 
> 
> Testing
> ---
> 
> The tests which are not skipped are working.
> 
> 
> Thanks,
> 
> Girish Shilamkar
> 
>



Re: Failing tests on simulator.

2013-06-26 Thread Prasanna Santhanam
Hey Ian,

Sorry I missed this email.

The checkin tests for user-concentration and user-dispersing planners
are best fit efforts for a VM deployed on the physical resources. For
concentration we ensure that the VMs are deployed on the same pod and
for dispersion we ensure the VMs deploy on different clusters.

Since the planning is only the best effort sometimes the tests fail
although the VM deploys successfully. Because of the indeterministic
nature I think I will remove those from the checkin test group for
now.

But the simulator is broken at the moment and there's a bunch of
spring changes I'm trying to comprehend and fix.

Thanks,

-- 
Prasanna.,

On Wed, Jun 26, 2013 at 06:00:49PM -0400, Sebastien Goasguen wrote:
> Ian, I am copying Prasanna to get his attention on this.
> 
> 
> 
> On Jun 19, 2013, at 6:42 AM, Ian Duffy  wrote:
> 
> > Hi,
> > 
> > I'm attempting to run tests on the simulator as outlined in
> > https://cwiki.apache.org/CLOUDSTACK/marvin-testing-with-python.html
> > 
> > Executing the checkin tests results in errors. Anybody got any feedback on 
> > this?
> > 
> > $ mvn -Pdeveloper,marvin.test -Dmarvin.config=setup/dev/advanced.cfg
> > -pl :cloud-marvin integration-test
> > [INFO] Scanning for projects...
> > [INFO]
> > [INFO] 
> > 
> > [INFO] Building Apache CloudStack marvin 4.2.0-SNAPSHOT
> > [INFO] 
> > 
> > [INFO]
> > [INFO] --- gmaven-plugin:1.5:execute (setproperty) @ cloud-marvin ---
> > [INFO]
> > [INFO] --- exec-maven-plugin:1.2.1:exec (generate-sources) @ cloud-marvin 
> > ---
> > [INFO]
> > [INFO] --- maven-remote-resources-plugin:1.3:process (default) @
> > cloud-marvin ---
> > [INFO]
> > [INFO] --- maven-site-plugin:3.1:attach-descriptor (attach-descriptor)
> > @ cloud-marvin ---
> > [INFO]
> > [INFO] --- exec-maven-plugin:1.2.1:exec (integration-test) @ cloud-marvin 
> > ---
> > test DeployVM in anti-affinity groups ... ok
> > Test Deploy Virtual Machine ... ok
> > Test userdata as GET, size > 2k ... ok
> > Test userdata as POST, size > 2k ... ok
> > Test to deploy vm with a first fit offering ... ok
> > Test deploy VMs using user concentrated planner ... FAIL
> > Test deploy VMs using user dispersion planner ... FAIL
> > Test to create disk offering ... ok
> > Test to update existing disk offering ... ok
> > Test to delete disk offering ... ok
> > test update configuration setting at zone level scope ... ok
> > Test guest vlan range dedication ... ok
> > Test to update a physical network and extend its vlan ... ok
> > Test to acquire a provisioned public ip range ... ok
> > Test to create a portable public ip range ... ok
> > ERROR
> > Test for create region ... ok
> > Test advanced zone virtual router ... ok
> > Test Deploy Virtual Machine ... ok
> > 
> > ==
> > ERROR: test suite for  > 'integration.smoke.test_public_ip_range.TestDedicatePublicIPRange'>
> > --
> > Traceback (most recent call last):
> >  File 
> > "/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
> > line 208, in run
> >self.setUp()
> >  File 
> > "/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
> > line 291, in setUp
> >self.setupContext(ancestor)
> >  File 
> > "/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
> > line 314, in setupContext
> >try_run(context, names)
> >  File 
> > "/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/util.py",
> > line 469, in try_run
> >return func()
> >  File 
> > "/home/duffy/projects/clean-cloudstack/test/integration/smoke/test_public_ip_range.py",
> > line 63, in setUpClass
> >cls.zone = get_zone(cls.api_client, cls.services)
> >  File 
> > "/usr/local/lib/python2.7/site-packages/Marvin-0.1.0-py2.7.egg/marvin/integration/lib/common.py",
> > line 87, in get_zone
> >raise Exception("Failed to find specified zone.")
> > Exception: Failed to find specified zone.
> > 
> > ==
> > FAIL: Test deploy VMs using user concentrated planner
> > --
> > Traceback (most recent call last):
> >  File 
> > "/home/duffy/projects/clean-cloudstack/test/integration/smoke/test_deploy_vms_with_varied_deploymentplanners.py",
> > line 247, in test_deployvm_userconcentrated
> >msg="VMs (%s, %s) meant to be concentrated are deployed on
> > different clusters (%s, %s)" % (vm1.id, vm2.id, vm1clusterid,
> > vm2clusterid)
> > AssertionError: VMs (aea66681-ea64-4c84-86b2-d3950057d0cd,
> > 2a1d81b5-6663-4149-a5ee-d96a9197ba3c) meant to be concentrated are
> > deployed on different clusters (9ed7ff64-4bd8-4aa8-aa83-a6a9b663abed,
> > 664c89d3-b584-4cae-ae46-9e332ef5a969)

Re: devcloud help

2013-06-26 Thread Prasanna Santhanam
Fixed the wiki. 

We need to work on a new DevCloud2 image with some new features like
s3 store backed by Riak [1] thrown in. Also built atop veewee+vagrant and
a standard basebox like Rohit did earlier. May be even deploy it on a
basebox that can be spun up on a CloudStack deployment. Would ease a
lot of testing.

[1] https://github.com/basho/vagrant-riak-cs-cluster

On Wed, Jun 26, 2013 at 10:03:18PM +, Kelven Yang wrote:
> Min, Thanks.
> 
> This step needs to be updated to the devCloud wiki page. I lost tracking
> of emails about this.
> 
> Kelven
> 
> On 6/26/13 2:28 PM, "Min Chen"  wrote:
> 
> >Based on earlier Prasanna's email,
> >
> >pip install requests
> >
> >
> >Should fix this.
> >
> >Thanks
> >-min
> >
> >On 6/26/13 12:54 PM, "Kelven Yang"  wrote:
> >
> >>I've workaround this issue by deploying a basic zone using shared storage
> >>with Standard UI instead of python scripts (I added another NFS export
> >>for
> >>primary storage in devCloud Xen VM), but would be nice to know why it
> >>failed in python deployment phase.
> >>
> >>Kelven
> >>
> >>On 6/26/13 11:50 AM, "Kelven Yang"  wrote:
> >>
> >>>I have another devCloud issue, after starting up the management server
> >>>and
> >>>trying to deploy a basic zone configuration, I got following error. It
> >>>looks that I'm missing some step that requests python module is not
> >>>generated?
> >>>
> >>>By the way, I'm in vmsync branch, but it should have been sync-ed with
> >>>master recently
> >>>
> >>>
> >>>
> >>>:incubator-cloudstack kelveny$ mvn -P developer -pl tools/devcloud
> >>>-Ddeploysvr
> >>>[INFO] Scanning for projects...
> >>>[INFO]  
> >>>
> >>>[INFO] 
> >>>
> >>>[INFO] Building Apache CloudStack DevCloud 4.2.0-SNAPSHOT
> >>>[INFO] 
> >>>
> >>>[INFO] 
> >>>[INFO] --- maven-remote-resources-plugin:1.3:process (default) @
> >>>cloud-devcloud ---
> >>>[INFO] 
> >>>[INFO] --- maven-site-plugin:3.1:attach-descriptor (attach-descriptor) @
> >>>cloud-devcloud ---
> >>>[INFO] 
> >>>[INFO] --- exec-maven-plugin:1.2.1:exec (default) @ cloud-devcloud ---
> >>>Traceback (most recent call last):
> >>>  File "../marvin/marvin/deployDataCenter.py", line 21, in 
> >>>import cloudstackTestClient
> >>>  File 
> >>>"/Users/kelveny/cloud-javelin/incubator-cloudstack/tools/marvin/marvin/c
> >>>l
> >>>o
> >>>u
> >>>dstackTestClient.py", line 18, in 
> >>>import cloudstackConnection
> >>>  File 
> >>>"/Users/kelveny/cloud-javelin/incubator-cloudstack/tools/marvin/marvin/c
> >>>l
> >>>o
> >>>u
> >>>dstackConnection.py", line 18, in 
> >>>import requests
> >>>
> >>>Kelven
> >>>
> >>>
> >>>
> >>>On 6/25/13 11:09 PM, "Thomas O'Dowd"  wrote:
> >>>
> Just another update to say that after shutting down the system vms and
> restarting the management server, the systemvms have started back up
> again now so this is good progress for me and answers my original
> problem that I had with devcloud setup.
> 
> Tom.
> 
> On Wed, 2013-06-26 at 13:57 +0900, Thomas O'Dowd wrote:
> > Thank you Prasanna. I've over this hurdle now. Those last fixes in
> > master seem to have worked the magic. I was able to start the mgmt
> > server and do a deploysvr... I'm now going to shut it down as per the
> > devcloud doc and restart and see if that works.
> > 
> > Tom.
> 
> -- 
> Cloudian KK - http://www.cloudian.com/get-started.html
> Fancy 100TB of full featured S3 Storage?
> Checkout the Cloudian? Community Edition!
> 
> >>>
> >>
> >

-- 
Prasanna.,


Powered by BigRock.com



Re: Does anyone know how to get the token of the vm console login url?

2013-06-26 Thread Prasanna Santhanam
Need Kelven's help on this one.

On Thu, Jun 27, 2013 at 02:45:08AM +0200, Daan Hoogland wrote:
> Is some console proxy guru helping this guy/girl out. I would really like
> to see the way to go about that ;)
> 
> Regards,
> Op 25 jun. 2013 15:12 schreef "WXR" <474745...@qq.com> het volgende:
> 
> > When we click the "view console" button of a sertain vm,a webbrower window
> > will pop up and we can view the console of the vm.
> >
> > If we view the html source code of the window,we can find a https url like
> > this:
> >
> >
> > https://192-168-30-102.realhostip.com/ajax?token=mD_rIFSUJkT7PrE6r5Q576WmdQMpDi9cOmi5ClE5J8tiMzJIxwg8p8CWDQtdDOst_irHE4D1S_5geEkcFvwoIGcvoc7LbK8MydwVFvtyCcPi1crfLe82_4ZbetnfEaG1GdEu3rntUkUJ5b00_1KuW3DAb0F1b_16be_WG9IT9Uck32IFPmdf3MS4RSKVGo9C27z978LoA8oVLd3wTe-EDa2K-dOjPclKql9uhFMgBoSEifsLPoo6ZAD5Lahu15oq7QdtYp9zg-ujst8Oya7kOg
> >
> > I  want to know how to get the token value.I need to make this url by
> >  myself,not by clicking the button on cloudstack UI,but I'm not familiar
> > with JAVA.It's too difficult for me to find the algorithm from the
> > cloudstack source code directly,so I hope some people or documents can help
> > me to get it.

-- 
Prasanna.,


Powered by BigRock.com



Re: Master build problem

2013-06-26 Thread Prasanna Santhanam
Hiroaki fixed this with 39ef9240e87234afc2d4ddb37beaa63fe3240e4a. Do
you have that commit SHA in your branch?

On Wed, Jun 26, 2013 at 06:45:20PM +, Soheil Eizadi wrote:
> I don't see a fix checked in for that, my merged branch is ahead of master. 
> It looks like it is due to the SSP Plugin checkin yesterday. If I had to 
> guess the component is not included in the client/pom.xml. I commented out 
> the plugin  in my branch (removed it from componentContext.xml.in) and I can 
> run the image now.
> -Soheil
> 
> Administrators-MacBook-Pro-7:client seizadi$ pwd
> /Users/seizadi/cloudstack/infoblox_branch/cloudstack/client
> 
> Administrators-MacBook-Pro-7:client seizadi$ fgrep "cloud-plugin-network" 
> pom.xml
>   cloud-plugin-network-nvp
>   cloud-plugin-network-ovs
>   cloud-plugin-network-elb
>   cloud-plugin-network-vns
>   cloud-plugin-network-midonet
>   cloud-plugin-network-internallb
>   cloud-plugin-network-infoblox
>   cloud-plugin-network-f5
>   cloud-plugin-network-netscaler
>   cloud-plugin-network-srx
>   cloud-plugin-network-cisco-vnmc
> 
> 
> From: Min Chen [min.c...@citrix.com]
> Sent: Wednesday, June 26, 2013 11:07 AM
> To: dev@cloudstack.apache.org
> Subject: Re: Master build problem
> 
> I got latest master and able to start MS. I think that Prasanna has fixed
> that with a later checkin.
> 
> Thanks
> -min
> 
> On 6/26/13 11:02 AM, "Soheil Eizadi"  wrote:
> 
> >I merged the latest master into my branch and could not run it. I
> >switched to master branch and built it but can not run it either, has
> >anyone else seen this problem with sspCredentialDaoImpl?
> >
> >ERROR [web.context.ContextLoader] (main:) Context initialization failed
> >org.springframework.beans.factory.BeanCreationException: Error creating
> >bean with name 'actionEventUtils': Injection of autowired dependencies
> >failed; nested exception is
> >org.springframework.beans.factory.BeanCreationException: Could not
> >autowire field: com.cloud.event.dao.EventDao
> >com.cloud.event.ActionEventUtils.eventDao; nested exception is
> >org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
> >find class [com.cloud.network.dao.SspCredentialDaoImpl] for bean with
> >name 'sspCredentialDaoImpl' defined in class path resource
> >[componentContext.xml]; nested exception is
> >java.lang.ClassNotFoundException:
> >com.cloud.network.dao.SspCredentialDaoImpl
> 

-- 
Prasanna.,


Powered by BigRock.com



Re: apache libcloud

2013-06-26 Thread Prasanna Santhanam
On Wed, Jun 26, 2013 at 04:43:05PM -0400, Sebastien Goasguen wrote:
> Hi folks,
> 
> libcloud 0.13 RC is up for vote. There is much better support for CloudStack 
> in it.
> Check it out: 
> http://buildacloud.org/blog/268-cloudstack-support-in-apache-libcloud.html
> 

Awesome! great work Sebastien!


-- 
Prasanna.,


Powered by BigRock.com



Re: [GSoC] Updates

2013-06-26 Thread Shiva Teja
Hi Rohit,

On Thu, Jun 27, 2013 at 4:42 AM, Rohit Yadav  wrote:

> - Have search features right from beginning of your work. For ex. implement
> something to search all fields on a table, make the head of the table
> sortable. Have Lucene integration, which would be awesome to do searching.
> A typical Cloud can have hundreds or thousands of instances etc.
>

Not sure if Lucene is needed here. It could done on the client side. It is
a couple of minutes task to add a search feature with angular's filter
directive. Here's an example from their tutorials(
http://docs.angularjs.org/tutorial/step_03). Maybe this could just be
enough. I am not sure about the performance with thousands of instances.
Will look into it.

I am yet to design the mockups for the final UI. I'll keep all other
suggestions in mind.

Thanks!
Shiva Teja.


Re: Failing tests on simulator.

2013-06-26 Thread Ian Duffy
>  I am copying Prasanna to get his attention on this.

Thanks. :-)


> Sorry I missed this email.

No worries!

> Since the planning is only the best effort sometimes the tests fail
> although the VM deploys successfully. Because of the indeterministic
> nature I think I will remove those from the checkin test group for
> now.

I had removed them from my tests, assumed it was a simulator error.
Most of them work, will supply exact information when back on my work
machine.

> But the simulator is broken at the moment and there's a bunch of
> spring changes I'm trying to comprehend and fix.

No worries. I'm on an older commit where it was working, if there's
anything I could attempt to help with just shout.

Thanks again!

On 27 June 2013 05:34, Prasanna Santhanam  wrote:
> Hey Ian,
>
> Sorry I missed this email.
>
> The checkin tests for user-concentration and user-dispersing planners
> are best fit efforts for a VM deployed on the physical resources. For
> concentration we ensure that the VMs are deployed on the same pod and
> for dispersion we ensure the VMs deploy on different clusters.
>
> Since the planning is only the best effort sometimes the tests fail
> although the VM deploys successfully. Because of the indeterministic
> nature I think I will remove those from the checkin test group for
> now.
>
> But the simulator is broken at the moment and there's a bunch of
> spring changes I'm trying to comprehend and fix.
>
> Thanks,
>
> --
> Prasanna.,
>
> On Wed, Jun 26, 2013 at 06:00:49PM -0400, Sebastien Goasguen wrote:
>> Ian, I am copying Prasanna to get his attention on this.
>>
>>
>>
>> On Jun 19, 2013, at 6:42 AM, Ian Duffy  wrote:
>>
>> > Hi,
>> >
>> > I'm attempting to run tests on the simulator as outlined in
>> > https://cwiki.apache.org/CLOUDSTACK/marvin-testing-with-python.html
>> >
>> > Executing the checkin tests results in errors. Anybody got any feedback on 
>> > this?
>> >
>> > $ mvn -Pdeveloper,marvin.test -Dmarvin.config=setup/dev/advanced.cfg
>> > -pl :cloud-marvin integration-test
>> > [INFO] Scanning for projects...
>> > [INFO]
>> > [INFO] 
>> > 
>> > [INFO] Building Apache CloudStack marvin 4.2.0-SNAPSHOT
>> > [INFO] 
>> > 
>> > [INFO]
>> > [INFO] --- gmaven-plugin:1.5:execute (setproperty) @ cloud-marvin ---
>> > [INFO]
>> > [INFO] --- exec-maven-plugin:1.2.1:exec (generate-sources) @ cloud-marvin 
>> > ---
>> > [INFO]
>> > [INFO] --- maven-remote-resources-plugin:1.3:process (default) @
>> > cloud-marvin ---
>> > [INFO]
>> > [INFO] --- maven-site-plugin:3.1:attach-descriptor (attach-descriptor)
>> > @ cloud-marvin ---
>> > [INFO]
>> > [INFO] --- exec-maven-plugin:1.2.1:exec (integration-test) @ cloud-marvin 
>> > ---
>> > test DeployVM in anti-affinity groups ... ok
>> > Test Deploy Virtual Machine ... ok
>> > Test userdata as GET, size > 2k ... ok
>> > Test userdata as POST, size > 2k ... ok
>> > Test to deploy vm with a first fit offering ... ok
>> > Test deploy VMs using user concentrated planner ... FAIL
>> > Test deploy VMs using user dispersion planner ... FAIL
>> > Test to create disk offering ... ok
>> > Test to update existing disk offering ... ok
>> > Test to delete disk offering ... ok
>> > test update configuration setting at zone level scope ... ok
>> > Test guest vlan range dedication ... ok
>> > Test to update a physical network and extend its vlan ... ok
>> > Test to acquire a provisioned public ip range ... ok
>> > Test to create a portable public ip range ... ok
>> > ERROR
>> > Test for create region ... ok
>> > Test advanced zone virtual router ... ok
>> > Test Deploy Virtual Machine ... ok
>> >
>> > ==
>> > ERROR: test suite for > > 'integration.smoke.test_public_ip_range.TestDedicatePublicIPRange'>
>> > --
>> > Traceback (most recent call last):
>> >  File 
>> > "/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
>> > line 208, in run
>> >self.setUp()
>> >  File 
>> > "/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
>> > line 291, in setUp
>> >self.setupContext(ancestor)
>> >  File 
>> > "/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
>> > line 314, in setupContext
>> >try_run(context, names)
>> >  File 
>> > "/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/util.py",
>> > line 469, in try_run
>> >return func()
>> >  File 
>> > "/home/duffy/projects/clean-cloudstack/test/integration/smoke/test_public_ip_range.py",
>> > line 63, in setUpClass
>> >cls.zone = get_zone(cls.api_client, cls.services)
>> >  File 
>> > "/usr/local/lib/python2.7/site-packages/Marvin-0.1.0-py2.7.egg/marvin/integration/lib/common.py",
>> > line 87, in get_zone
>> >raise Exception("Failed to 

Re: Cloud Usage and API

2013-06-26 Thread Jessica Tomechak
On query #5 : there is a section called "Working With Usage" in the
Developer's Guide and another similarly named section in the
Administrator's Guide. These contain details relevant for the audience of
each guide. Why not see whether this contains the information you need. If
not, it's always possible to file a Doc enhancement bug!

http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html-single/Developers_Guide/index.html#working-with-usage-data

http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html-single/Admin_Guide/index.html#work-with-usage

Jessica T.

On Mon, Jun 17, 2013 at 1:06 AM, Wei ZHOU  wrote:

> 1. No. APIs are for users, not for cloudstack. There is a thread running at
> the scheduled time.
> 2. No, generateUsageRecords  API adds an usage job in database
> cloud_usage.usage_job.
> 3. There is a thread named Heartbeat in usage server which running every
> minute. It checks the database and generates the usage records from last
> usage job.
> 4. see 3.
> 5. I do not know.
>
> -Wei
>
>
> 2013/6/16 CK 
>
> > Can anyone help with my queries...?
> >
> >
> > On 10 June 2013 09:21, CK  wrote:
> >
> > > Can someone please provide further information on what the API call:
> > > generateUsageRecords actually does?
> > >
> > > I know it generates usage records, but:
> > >
> > > 1. Does the Usage Server service call the generateUsageRecords API when
> > > it runs at the scheduled time(=usage.stats.job.exec.time) or does the
> > > service do more than that?
> > >
> > > 2. Does the generateUsageRecords API execute the Usage Server service
> on
> > > demand to generate the usage records?
> > >
> > > 3. For what period does it generate the usage records eg.
> > > i. from the last time this API function was called
> > > ii. from the last time the usage server ran
> > >
> > > 4. If I create a VM and the corresponding ACS events are created in the
> > > Cloud DB, if I then run generateUsageRecords soon after will the usage
> > > records be generated for up to that point?
> > >
> > > 5. Are there any other documented details available on this API command
> > > other than the API document?
> > >
> >
>


Re: Upgrade failure. 2.2.14 to 4.1.0

2013-06-26 Thread Jessica Tomechak
Glen,
Thanks for sharing your experience. I'm sorry it has been frustrating.

When you encounter documentation errors, please do feel free to file this
as a bug. In this case, I have added your comments to a very similar bug
that was filed recently, as I have a feeling all the upgrade instruction
errors could be fixed at one time.

https://issues.apache.org/jira/browse/CLOUDSTACK-3138

Jessica T.



On Mon, Jun 17, 2013 at 12:42 AM, Wei ZHOU  wrote:

> The fix for Bug CLOUDSTACK-3005 may help you.
>
> -Wei
>
>
> 2013/6/16 Glen Baars 
>
> > Hello Cloudstack dev,
> >
> > Just wanted to share my experiences on upgrading 2.2.14 to 4.1.0 with 6
> > Xenserver 5.6SP2 hosts.
> >
> > The documentation doesn't work, so many errors. I ended up restoring
> after
> > 25 hours back to 2.2.14.
> >
> > I am willing to edit the docs when I get the upgrade to work.
> >
> > I would suggest the following changes:
> >
> > 1.
> > Automatically take a mysqldump prior to the database upgrade.
> > If it fails, revert to the dump and log.
> >
> > This would be faster to diag / fix and leave the db in a usable state. I
> > know you should take a db backup first anyway, but this would be cleaner.
> >
> > 2.
> > The vhd-util download isn't on the upgrade guides.
> >
> > 3.
> > The upgrade guide for 4.1.0 incorrectly list the repos in the examples
> and
> > 4.0
> >
> > 4.
> > The upgrade guide gets cloud and Cloudstack folders wrong all the time
> >
> > 5.
> > I had an issue with a SR-BACKEND failure that ended up being a corrupt
> > vhd. This was throwing all kinds of errors with the solution. I know this
> > is a Xenserver issue, just might help others with SR-BACKEND failures.
> >
> > 6.
> > 4.0.2 Ubuntu repo install is missing the cloud-setup-encryption binaries.
> >
> > 7.
> > Can't upgrade from 2.2.14 to 4.0.2 due to a know bug that is listed as
> > solved due to 4.1.0 being released. This doesn't help when you can't get
> > 4.1.0 to work. ( bug is for the database conversion missing 4.02 schema
> > files ). If the upgrades don't work, can we put that on the upgrade
> guide /
> > release notes?
> >
> > This brings me to the issue that I am having.
> >
> > After the upgrade, I can't deploy any VDI's into the SR's. The secondary
> > storage is not getting mounted on the xenservers.
> >
> > The errors creating the secondary storage VM is below.
> >
> > http://pastebin.com/H4jZutuP
> >
> > Any ideas? I put the vhd-util in the correct location and set the
> > permissions.
> >
> > Just to confirm my upgrade steps
> >
> > 1. Upgrade my single Ubuntu 12.04LTS management server from 2.2.14 to
> > 4.1.0 2. rolling pool upgrade to Xenserver 5.6SP2 to 6.1 3. run the
> script
> > to reboot all virtual routers and system vm's
> >
> > I got to step three and no routers came back up :( due the to secondary
> > storage / SR issues.
> >
> > I have been looking for a way to contribute, maybe I can do Xenserver
> > upgrade testing. I am setting up a test lab for this issue currently.
> >
> > Regards,
> >
> > Glen Baars
> >
> >
>


Re: Failing tests on simulator.

2013-06-26 Thread Prasanna Santhanam
On Thu, Jun 27, 2013 at 06:06:22AM +0100, Ian Duffy wrote:
> > But the simulator is broken at the moment and there's a bunch of
> > spring changes I'm trying to comprehend and fix.
> 
> No worries. I'm on an older commit where it was working, if there's
> anything I could attempt to help with just shout.
> 
> Thanks again!

Thanks! I'm trying to figure out how to inject my dependencies using
Spring without having to introduce boiler-plate getters-setters
everywhere. I adapted the simulator to most of the new storage code
and pushed my changes to the simulator-storage-fixes branch. Spring
isn't easily comprehensible for me, so I'm just reading the docs at
the moment.

-- 
Prasanna.,


Re: Review Request 11627: CLOUDSTACK-1012:Encrypt system.vm.password for 4.0 to 4.1 upgrades

2013-06-26 Thread Kishan Kavala

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



server/src/com/cloud/upgrade/dao/Upgrade410to411.java


table name should be 'cloud'.'configuration', same for other queries


- Kishan Kavala


On June 24, 2013, 5:36 p.m., Saksham Srivastava wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/11627/
> ---
> 
> (Updated June 24, 2013, 5:36 p.m.)
> 
> 
> Review request for cloudstack and Kishan Kavala.
> 
> 
> Bugs: CLOUDSTACK-1012
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> Encrypt system.vm.password and make the configuration as Secure.
> 
> 
> Diffs
> -
> 
>   server/src/com/cloud/upgrade/dao/Upgrade410to411.java 5b25620 
> 
> Diff: https://reviews.apache.org/r/11627/diff/
> 
> 
> Testing
> ---
> 
> Tested on local setup.
> Build successful.
> 
> 
> Thanks,
> 
> Saksham Srivastava
> 
>



Re: CloudStack API Development

2013-06-26 Thread Ian Duffy
> Thanks, a quick blog on this would be great.

Will hopefully get this done later today. Need to document it for my
own reference purposes as well. Those slides I linked above by
solidfire were great!


Re: Review Request 11980: FileUtil simplified

2013-06-26 Thread Laszlo Hornyak

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

(Updated June 27, 2013, 6:30 a.m.)


Review request for cloudstack.


Changes
---

added Assume to avoid failing the test on non-linux OS's


Repository: cloudstack-git


Description
---

- writeToFile removed since no references to it
- readFileAsString replaced with FileUtils.readFileToString
- minor code duplication removed in dependent method getNicStats
- unit test added


Diffs (updated)
-

  
plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
 b1bc99d 
  
plugins/hypervisors/kvm/test/com/cloud/hypervisor/kvm/resource/LibvirtComputingResourceTest.java
 c82c31f 
  utils/src/com/cloud/utils/FileUtil.java 74f4088 

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


Testing
---

test included


Thanks,

Laszlo Hornyak



Re: Review Request 11980: FileUtil simplified

2013-06-26 Thread Prasanna Santhanam

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


LGTM

- Prasanna Santhanam


On June 27, 2013, 6:30 a.m., Laszlo Hornyak wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/11980/
> ---
> 
> (Updated June 27, 2013, 6:30 a.m.)
> 
> 
> Review request for cloudstack.
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> - writeToFile removed since no references to it
> - readFileAsString replaced with FileUtils.readFileToString
> - minor code duplication removed in dependent method getNicStats
> - unit test added
> 
> 
> Diffs
> -
> 
>   
> plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
>  b1bc99d 
>   
> plugins/hypervisors/kvm/test/com/cloud/hypervisor/kvm/resource/LibvirtComputingResourceTest.java
>  c82c31f 
>   utils/src/com/cloud/utils/FileUtil.java 74f4088 
> 
> Diff: https://reviews.apache.org/r/11980/diff/
> 
> 
> Testing
> ---
> 
> test included
> 
> 
> Thanks,
> 
> Laszlo Hornyak
> 
>



Identifying Volumes

2013-06-26 Thread Maurice Lawler
Greetings,

I have goofed up, I am hoping someone will be kind enough to help hopefully 
resolve my issue. I have removed a host from my CS UI, however; I did not 
realize my other host had failed, with that said the message I got was if I 
were to remove this host I would cause database issues and the guest VM’s would 
not longer be usable. 

However, here is what is present in my /storage/primary: 

-rwxr--r--  1 root   root   256K Jun 26 22:25 
0da0acad-a5e4-48a9-8fd4-63caffa96084
-rwxr--r--  1 nobody nobody  66M Jun 26 22:43 
16dd6507-46dd-414b-be76-bcb8e6ee23c5
-rwxr--r--  1 nobody nobody 256K Jun 26 22:38 
4c40fbad-8731-4d6a-afc7-49fd3af52762
-rwxr--r--  1 nobody nobody 6.5M Jun 26 22:42 
5c2fb845-619e-46b8-9aad-64dc94a5f2ea
-rwxr--r--  1 nobody nobody 216M Jun 26 22:32 
61589156-83d6-43cd-9d3e-ec7128fd69b9
-rwxr--r--  1 nobody nobody 873M Apr 25 22:36 
62c543da-2b78-4e9b-a1a8-a2e941309b14
-rwxr--r--  1 nobody nobody  25G Jun 26 21:06 
6a69c5e4-c6ee-4c8f-80d8-c1ecc648ac63
-rwxr--r--  1 nobody nobody 693M Apr 25 20:46 
90a88149-4cf3-4687-837c-3160af8d5f4a
-rwxr--r--  1 nobody nobody  22G Jun 26 21:24 
bad06d82-87c6-47f9-87ae-338c6da8c935
-rwxr--r--  1 nobody nobody 3.7G Jun 26 21:39 
c718ad4c-2e14-4f73-9a1d-7d9710005629
-rwxr--r--  1 nobody nobody  12G Jun 26 21:41 
d7916e51-d981-4cd8-9492-16977cdf01fa
-rwxr--r--  1 nobody nobody  63G Jun 26 21:38 
e98be185-fc62-43d7-a513-ae64ba09d9c2
-rwxr--r--  1 nobody nobody 256K Apr 29 20:08 
ea0900be-8ac8-4e08-b6c7-f000874c0ac1
-rwxr--r--  1 nobody nobody  27G Jun 26 21:41 
f1e26194-64eb-4ed4-8fb7-5f5f0a3da43b
-rwxr--r--  1 nobody nobody 218M Jun 26 21:36 
f59a1c03-c51a-4674-b7ff-9d32eb4b3b6c
drwxr-xr-x  2 root   root   4.0K Jun 26 21:24 KVMHA
-rwxr--r--  1 nobody nobody  10M Jun 26 22:37 r-4-VM-patchdisk
-rwxr--r--  1 root   root10M Apr 25 20:48 s-1-VM-patchdisk
-rwxr--r--  1 nobody nobody  10M Jun  7 22:33 s-32-VM-patchdisk
-rwxr--r--  1 nobody nobody  10M Jun 26 22:30 v-2-VM-patchdisk

Then this is what I have in my /storage/secondary/volumes:

-rwxr--r-- 1 root root 2.5G Jun 10 16:12 
7e450b5f-c09a-4727-8435-d2eb28761bee.qcow2

My question is this, in my /storage/primary, are those UUID’s referencing 
either the volume and/or the actual instance. If so, could I download these and 
covert them to a image that I can later import once I reload; or could would it 
just be easier to reload and forget about obtaining the existing instances.

Your help would be greatly appreciated! 

- maurice