Re: password enabled templates

2013-07-04 Thread ramnivas indani
Hi,

i have already embedded password script in template, i want to ask like for
which user it generates new password.

Thanks,
Ramnivas


On Wed, Jul 3, 2013 at 6:10 PM, Jayapal Reddy Uradi <
jayapalreddy.ur...@citrix.com> wrote:

> Hi,
>
> getVMPassword returns the encrypted password.
> Is your template has cloud-set-guest-password script ?
>
> Copy the cloud-set-guest-password script into guest vm and create template
> from it.
> Set password enable in this template and deploy vm with it.
>
>
> http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html/Admin_Guide/add-password-management-to-templates.html
>
>
> https://github.com/shankerbalan/cloudstack-scripts/blob/master/cloud-set-guest-password-sles
>
> Thanks,
> Jayapal
>
>
> On 03-Jul-2013, at 12:46 PM, ramnivas indani  wrote:
>
> > Hi all,
> >
> > i have created a new template using sshkey pair, when i use same template
> > in deployVirtualMachine and get job status using queryAsyncJobStatus i
> get
> > password in password field of response and also get password in
> > getVMPassword but both are different and i am not able to login to vm
> using
> > any of these ?
> >
> > can anyone point me to right direction ?
> >
> > Thanks & Regards,
> > Ramnivas
>
>


Re: password enabled templates

2013-07-04 Thread Ahmad Emneina
should be the root user if its centos or rhel.


On Thu, Jul 4, 2013 at 1:43 AM, ramnivas indani
wrote:

> Hi,
>
> i have already embedded password script in template, i want to ask like for
> which user it generates new password.
>
> Thanks,
> Ramnivas
>
>
> On Wed, Jul 3, 2013 at 6:10 PM, Jayapal Reddy Uradi <
> jayapalreddy.ur...@citrix.com> wrote:
>
> > Hi,
> >
> > getVMPassword returns the encrypted password.
> > Is your template has cloud-set-guest-password script ?
> >
> > Copy the cloud-set-guest-password script into guest vm and create
> template
> > from it.
> > Set password enable in this template and deploy vm with it.
> >
> >
> >
> http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html/Admin_Guide/add-password-management-to-templates.html
> >
> >
> >
> https://github.com/shankerbalan/cloudstack-scripts/blob/master/cloud-set-guest-password-sles
> >
> > Thanks,
> > Jayapal
> >
> >
> > On 03-Jul-2013, at 12:46 PM, ramnivas indani  wrote:
> >
> > > Hi all,
> > >
> > > i have created a new template using sshkey pair, when i use same
> template
> > > in deployVirtualMachine and get job status using queryAsyncJobStatus i
> > get
> > > password in password field of response and also get password in
> > > getVMPassword but both are different and i am not able to login to vm
> > using
> > > any of these ?
> > >
> > > can anyone point me to right direction ?
> > >
> > > Thanks & Regards,
> > > Ramnivas
> >
> >
>


RE: password enabled templates

2013-07-04 Thread Geoff Higginbottom
As Ahmad says, by default its root for Linux, and Administrator for Windows.

It's also easy to modify the script to change the account it maps to.

Regards

Geoff Higginbottom

D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581

geoff.higginbot...@shapeblue.com

-Original Message-
From: Ahmad Emneina [mailto:aemne...@gmail.com]
Sent: 04 July 2013 10:01
To: Cloudstack users mailing list
Subject: Re: password enabled templates

should be the root user if its centos or rhel.


On Thu, Jul 4, 2013 at 1:43 AM, ramnivas indani
wrote:

> Hi,
>
> i have already embedded password script in template, i want to ask
> like for which user it generates new password.
>
> Thanks,
> Ramnivas
>
>
> On Wed, Jul 3, 2013 at 6:10 PM, Jayapal Reddy Uradi <
> jayapalreddy.ur...@citrix.com> wrote:
>
> > Hi,
> >
> > getVMPassword returns the encrypted password.
> > Is your template has cloud-set-guest-password script ?
> >
> > Copy the cloud-set-guest-password script into guest vm and create
> template
> > from it.
> > Set password enable in this template and deploy vm with it.
> >
> >
> >
> http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html/A
> dmin_Guide/add-password-management-to-templates.html
> >
> >
> >
> https://github.com/shankerbalan/cloudstack-scripts/blob/master/cloud-s
> et-guest-password-sles
> >
> > Thanks,
> > Jayapal
> >
> >
> > On 03-Jul-2013, at 12:46 PM, ramnivas indani  wrote:
> >
> > > Hi all,
> > >
> > > i have created a new template using sshkey pair, when i use same
> template
> > > in deployVirtualMachine and get job status using
> > > queryAsyncJobStatus i
> > get
> > > password in password field of response and also get password in
> > > getVMPassword but both are different and i am not able to login to
> > > vm
> > using
> > > any of these ?
> > >
> > > can anyone point me to right direction ?
> > >
> > > Thanks & Regards,
> > > Ramnivas
> >
> >
>
This email and any attachments to it may be confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of Shape Blue Ltd or related companies. If you are not the 
intended recipient of this email, you must neither take any action based upon 
its contents, nor copy or show it to anyone. Please contact the sender if you 
believe you have received this email in error. Shape Blue Ltd is a company 
incorporated in England & Wales. ShapeBlue Services India LLP is operated under 
license from Shape Blue Ltd. ShapeBlue is a registered trademark.



How many vms per primary storage can offer best performance?

2013-07-04 Thread WXR
I use NFS share as primary storage,the NFS share is on a 8 SATA HDDs RAID10 
volume.
The network link is gigabit ethernet.The switch is dell powerconnect.

When I just create 15-20 vm instances and start them(not run any software on 
them),I find the disk IO performance of the vm is very low.
If a file copy job on a pc needs 10 minutes , the same job on the vm needs 
20minutes.

I don't know if it is normal,and I want to know the correct configuration of 
the primary storage,I need your suggests with enough experience.

Re: How many vms per primary storage can offer best performance?

2013-07-04 Thread Ahmad Emneina
I would google NFS tuning and atomically test changes. Changes vary from
the kernel level up through the switches (sizing frames) as well as
introducing bonding. YMMV here NFS tuning is a huge part trial and error.


On Thu, Jul 4, 2013 at 5:26 AM, WXR <1485739...@qq.com> wrote:

> I use NFS share as primary storage,the NFS share is on a 8 SATA HDDs
> RAID10 volume.
> The network link is gigabit ethernet.The switch is dell powerconnect.
>
> When I just create 15-20 vm instances and start them(not run any software
> on them),I find the disk IO performance of the vm is very low.
> If a file copy job on a pc needs 10 minutes , the same job on the vm needs
> 20minutes.
>
> I don't know if it is normal,and I want to know the correct configuration
> of the primary storage,I need your suggests with enough experience.


Can't delete template for CloudStack

2013-07-04 Thread Aslan Lin
Hi everyone:
    I made a mistake when register template, I select wrong OS type for my 
template (windows xp instand of Ubuntu). Then I can't delete the template and 
the message is "Please specify a template that is not currently being 
downloaded."
    Following with the log from the management server:

2013-07-04 21:22:43,029 DEBUG [storage.download.DownloadListener] 
(Timer-3:null) Scheduling timeout at 3 ms, template=Windows XP at host 
nfs://172.24.1.18/secondaryStorage
2013-07-04 21:22:43,392 DEBUG [agent.transport.Request] (Timer-3:null) Seq 
4-2010846143: Sending  { Cmd , MgmtId: 159090355256435, via: 4, Ver: v1, Flags: 
100011, 
[{"storage.DownloadProgressCommand":{"jobId":"e67e76dd-2cb0-4fa8-96d2-a5ad9f55606a","request":"GET_STATUS","hvm":true,"description":"32bit","maxDownloadSizeInBytes":53687091200,"id":203,"resourceType":"TEMPLATE","url":"http://xxx.xxx.xxx.229:443/
mytemplate.qcow2","format":"QCOW2","accountId":2,"name":"203-2-ae9cbb73-21a4-32ba-a9f5-977ef4cea343","secUrl":"nfs://172.24.1.18/secondaryStorage","wait":0}}]
 }
2013-07-04 21:22:43,441 DEBUG [agent.transport.Request] 
(AgentManager-Handler-15:null) Seq 4-2010846143: Processing:  { Ans: , MgmtId: 
159090355256435, via: 4, Ver: v1, Flags: 10, 
[{"storage.DownloadAnswer":{"jobId":"e67e76dd-2cb0-4fa8-96d2-a5ad9f55606a","downloadPct":100,"errorString":"Download
 success, starting install 
","downloadStatus":"DOWNLOAD_IN_PROGRESS","downloadPath":"/mnt/SecStorage/6446e243-2bfa-34c0-b21d-f42e1f65aa9f/template/tmpl/2/203/dnld874128138275112587tmp_","installPath":"template/tmpl//2/203","templateSize":0,"templatePhySicalSize":0,"result":false,"details":"Download
 success, starting install ","wait":0}}] }
2013-07-04 21:22:53,444 DEBUG [agent.transport.Request] (Timer-3:null) Seq 
4-2010846144: Sending  { Cmd , MgmtId: 159090355256435, via: 4, Ver: v1, Flags: 
100011, 
[{"storage.DownloadProgressCommand":{"jobId":"e67e76dd-2cb0-4fa8-96d2-a5ad9f55606a","request":"GET_STATUS","hvm":true,"description":"32bit","maxDownloadSizeInBytes":53687091200,"id":203,"resourceType":"TEMPLATE","url":"http://xxx.xxx.xxx.229:443/
mytemplate.qcow2","format":"QCOW2","accountId":2,"name":"203-2-ae9cbb73-21a4-32ba-a9f5-977ef4cea343","secUrl":"nfs://172.24.1.18/secondaryStorage","wait":0}}]
 }
2013-07-04 21:22:53,494 DEBUG [agent.transport.Request] 
(AgentManager-Handler-8:null) Seq 4-2010846144: Processing:  { Ans: , MgmtId: 
159090355256435, via: 4, Ver: v1, Flags: 10, 
[{"storage.DownloadAnswer":{"jobId":"e67e76dd-2cb0-4fa8-96d2-a5ad9f55606a","downloadPct":100,"errorString":"Download
 success, starting install 
","downloadStatus":"DOWNLOAD_IN_PROGRESS","downloadPath":"/mnt/SecStorage/6446e243-2bfa-34c0-b21d-f42e1f65aa9f/template/tmpl/2/203/dnld874128138275112587tmp_","installPath":"template/tmpl//2/203","templateSize":0,"templatePhySicalSize":0,"result":false,"details":"Download
 success, starting install ","wait":0}}] }2013-07-04 21:23:03,496 DEBUG 
[agent.transport.Request] (Timer-3:null) Seq 4-2010846145: Sending  { Cmd , 
MgmtId: 159090355256435, via: 4, Ver: v1, Flags: 100011,
 
[{"storage.DownloadProgressCommand":{"jobId":"e67e76dd-2cb0-4fa8-96d2-a5ad9f55606a","request":"GET_STATUS","hvm":true,"description":"32bit","maxDownloadSizeInBytes":53687091200,"id":203,"resourceType":"TEMPLATE","url":"http://xxx.xxx.xxx.229:443/
mytemplate.qcow2","format":"QCOW2","accountId":2,"name":"203-2-ae9cbb73-21a4-32ba-a9f5-977ef4cea343","secUrl":"nfs://172.24.1.18/secondaryStorage","wait":0}}]
 }2013-07-04 21:23:03,545 DEBUG [agent.transport.Request] 
(AgentManager-Handler-1:null) Seq 4-2010846145: Processing:  { Ans: , MgmtId: 
159090355256435, via: 4, Ver: v1, Flags: 10, 
[{"storage.DownloadAnswer":{"jobId":"e67e76dd-2cb0-4fa8-96d2-a5ad9f55606a","downloadPct":100,"errorString":"Download
 success, starting install 
","downloadStatus":"DOWNLOAD_IN_PROGRESS","downloadPath":"/mnt/SecStorage/6446e243-2bfa-34c0-b21d-f42e1f65aa9f/template/tmpl/2/203/dnld874128138275112587tmp_","installPath":"template/tmpl//2/203","templateSize":0,"templatePhySicalSize":0,"result":false,"details":"Download
 success, starting install ","wait":0}}] }

   I don't know how to fix it. Please help me, thank.

RE: Can't delete template for CloudStack

2013-07-04 Thread Sanjay Tripathi
Wait till the template gets downloaded completely, once it gets done you'll get 
an option to delete it in the template detailView window. 

--Sanjay

> -Original Message-
> From: Aslan Lin [mailto:technologymess...@yahoo.cn]
> Sent: Thursday, July 04, 2013 7:08 PM
> To: cloudstackEnglish
> Subject: Can't delete template for CloudStack
> 
> Hi everyone:
>     I made a mistake when register template, I select wrong OS type for my
> template (windows xp instand of Ubuntu). Then I can't delete the template
> and the message is "Please specify a template that is not currently being
> downloaded."
>     Following with the log from the management server:
> 
> 2013-07-04 21:22:43,029 DEBUG [storage.download.DownloadListener]
> (Timer-3:null) Scheduling timeout at 3 ms, template=Windows XP at host
> nfs://172.24.1.18/secondaryStorage
> 2013-07-04 21:22:43,392 DEBUG [agent.transport.Request] (Timer-3:null) Seq
> 4-2010846143: Sending  { Cmd , MgmtId: 159090355256435, via: 4, Ver: v1,
> Flags: 100011, [{"storage.DownloadProgressCommand":{"jobId":"e67e76dd-
> 2cb0-4fa8-96d2-
> a5ad9f55606a","request":"GET_STATUS","hvm":true,"description":"32bit","
> maxDownloadSizeInBytes":53687091200,"id":203,"resourceType":"TEMPLAT
> E","url":"http://xxx.xxx.xxx.229:443/
> mytemplate.qcow2","format":"QCOW2","accountId":2,"name":"203-2-
> ae9cbb73-21a4-32ba-a9f5-
> 977ef4cea343","secUrl":"nfs://172.24.1.18/secondaryStorage","wait":0}}] }
> 2013-07-04 21:22:43,441 DEBUG [agent.transport.Request] (AgentManager-
> Handler-15:null) Seq 4-2010846143: Processing:  { Ans: , MgmtId:
> 159090355256435, via: 4, Ver: v1, Flags: 10,
> [{"storage.DownloadAnswer":{"jobId":"e67e76dd-2cb0-4fa8-96d2-
> a5ad9f55606a","downloadPct":100,"errorString":"Download success, starting
> install
> ","downloadStatus":"DOWNLOAD_IN_PROGRESS","downloadPath":"/mnt/S
> ecStorage/6446e243-2bfa-34c0-b21d-
> f42e1f65aa9f/template/tmpl/2/203/dnld874128138275112587tmp_","installP
> ath":"template/tmpl//2/203","templateSize":0,"templatePhySicalSize":0,"res
> ult":false,"details":"Download success, starting install ","wait":0}}] }
> 2013-07-04 21:22:53,444 DEBUG [agent.transport.Request] (Timer-3:null) Seq
> 4-2010846144: Sending  { Cmd , MgmtId: 159090355256435, via: 4, Ver: v1,
> Flags: 100011, [{"storage.DownloadProgressCommand":{"jobId":"e67e76dd-
> 2cb0-4fa8-96d2-
> a5ad9f55606a","request":"GET_STATUS","hvm":true,"description":"32bit","
> maxDownloadSizeInBytes":53687091200,"id":203,"resourceType":"TEMPLAT
> E","url":"http://xxx.xxx.xxx.229:443/
> mytemplate.qcow2","format":"QCOW2","accountId":2,"name":"203-2-
> ae9cbb73-21a4-32ba-a9f5-
> 977ef4cea343","secUrl":"nfs://172.24.1.18/secondaryStorage","wait":0}}] }
> 2013-07-04 21:22:53,494 DEBUG [agent.transport.Request] (AgentManager-
> Handler-8:null) Seq 4-2010846144: Processing:  { Ans: , MgmtId:
> 159090355256435, via: 4, Ver: v1, Flags: 10,
> [{"storage.DownloadAnswer":{"jobId":"e67e76dd-2cb0-4fa8-96d2-
> a5ad9f55606a","downloadPct":100,"errorString":"Download success, starting
> install
> ","downloadStatus":"DOWNLOAD_IN_PROGRESS","downloadPath":"/mnt/S
> ecStorage/6446e243-2bfa-34c0-b21d-
> f42e1f65aa9f/template/tmpl/2/203/dnld874128138275112587tmp_","installP
> ath":"template/tmpl//2/203","templateSize":0,"templatePhySicalSize":0,"res
> ult":false,"details":"Download success, starting install ","wait":0}}] 
> }2013-07-
> 04 21:23:03,496 DEBUG [agent.transport.Request] (Timer-3:null) Seq 4-
> 2010846145: Sending  { Cmd , MgmtId: 159090355256435, via: 4, Ver: v1, Flags:
> 100011,  [{"storage.DownloadProgressCommand":{"jobId":"e67e76dd-2cb0-
> 4fa8-96d2-
> a5ad9f55606a","request":"GET_STATUS","hvm":true,"description":"32bit","
> maxDownloadSizeInBytes":53687091200,"id":203,"resourceType":"TEMPLAT
> E","url":"http://xxx.xxx.xxx.229:443/
> mytemplate.qcow2","format":"QCOW2","accountId":2,"name":"203-2-
> ae9cbb73-21a4-32ba-a9f5-
> 977ef4cea343","secUrl":"nfs://172.24.1.18/secondaryStorage","wait":0}}]
> }2013-07-04 21:23:03,545 DEBUG [agent.transport.Request] (AgentManager-
> Handler-1:null) Seq 4-2010846145: Processing:  { Ans: , MgmtId:
> 159090355256435, via: 4, Ver: v1, Flags: 10,
> [{"storage.DownloadAnswer":{"jobId":"e67e76dd-2cb0-4fa8-96d2-
> a5ad9f55606a","downloadPct":100,"errorString":"Download success, starting
> install
> ","downloadStatus":"DOWNLOAD_IN_PROGRESS","downloadPath":"/mnt/S
> ecStorage/6446e243-2bfa-34c0-b21d-
> f42e1f65aa9f/template/tmpl/2/203/dnld874128138275112587tmp_","installP
> ath":"template/tmpl//2/203","templateSize":0,"templatePhySicalSize":0,"res
> ult":false,"details":"Download success, starting install ","wait":0}}] }
> 
>    I don't know how to fix it. Please help me, thank.


Re: Primary storage failure

2013-07-04 Thread France

I've submitted a bug:
https://issues.apache.org/jira/browse/CLOUDSTACK-3367

On 3/7/13 8:39 PM, David Nalley wrote:

This warrants a bug IMO.

--David

On Wed, Jul 3, 2013 at 2:38 PM, Geoff Higginbottom
 wrote:

Dean,

I am guessing you are using NFS for your Primary Storage.

This is actually 'by design'.  The logic is that if the storage goes offline, 
then all VMs must have also failed, and a 'forced' reboot of the Host 'might' 
automatically fix things.

This is great if you only have one Primary Storage, but typically you have more 
than one, so whilst the reboot might fix the failed storage, it will also kill 
off all the perfectly good VMs which were still happily running.

The fix for XenServer Hosts is to:

1. Modify /opt/xensource/bin/xenheartbeat.sh on all your Hosts, commenting out the two 
entries which have "reboot -f"

2. Identify the PID of the script  - pidof -x xenheartbeat.sh

3. Restart the Script  - kill 

4. Force reconnect Host from the UI,  the script will then re-launch on 
reconnect

If you running KVM, I'm guessing there is a similar script, but I have not 
tried this yet for anything other than XenSever (it does not apply to ESXi)

Regards

Geoff Higginbottom

D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581

geoff.higginbot...@shapeblue.com


-Original Message-
From: Dean Kamali [mailto:dean.kam...@gmail.com]
Sent: 03 July 2013 19:14
To: users@cloudstack.apache.org
Subject: Primary storage failure

Hello everyone

I'm testing failure scenarios, and I have noticed that as soon as the primary 
storage gets offline.

cloudstack management server seems to think that the hypervisor is not 
responding and it will reboot the node, if you have number of of nodes it will 
eventually reboot all of them. (losing everything  .. fun! )

What if I have multiple primary storage and one of them failed? it will reboot 
all of my hypervisors? it doesn't seems right to me.

Is there is a way to control this behavior?

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





回复: Can't delete template for CloudStack

2013-07-04 Thread Aslan Lin
But the “installing template” state has been for a few hours.



 发件人: Sanjay Tripathi 
收件人: "users@cloudstack.apache.org" ; Aslan Lin 
 
发送日期: 2013年7月4日, 星期四, 11:19 下午
主题: RE: Can't delete template for CloudStack
 

Wait till the template gets downloaded completely, once it gets done you'll get 
an option to delete it in the template detailView window. 

--Sanjay

> -Original Message-
> From: Aslan Lin [mailto:technologymess...@yahoo.cn]
> Sent: Thursday, July 04, 2013 7:08 PM
> To: cloudstackEnglish
> Subject: Can't delete template for CloudStack
> 
> Hi everyone:
>     I made a mistake when register template, I select wrong OS type for my
> template (windows xp instand of Ubuntu). Then I can't delete the template
> and the message is "Please specify a template that is not currently being
> downloaded."
>     Following with the log from the management server:
> 
> 2013-07-04 21:22:43,029 DEBUG [storage.download.DownloadListener]
> (Timer-3:null) Scheduling timeout at 3 ms, template=Windows XP at host
> nfs://172.24.1.18/secondaryStorage
> 2013-07-04 21:22:43,392 DEBUG [agent.transport.Request] (Timer-3:null) Seq
> 4-2010846143: Sending  { Cmd , MgmtId: 159090355256435, via: 4, Ver: v1,
> Flags: 100011, [{"storage.DownloadProgressCommand":{"jobId":"e67e76dd-
> 2cb0-4fa8-96d2-
> a5ad9f55606a","request":"GET_STATUS","hvm":true,"description":"32bit","
> maxDownloadSizeInBytes":53687091200,"id":203,"resourceType":"TEMPLAT
> E","url":"http://xxx.xxx.xxx.229:443/
> mytemplate.qcow2","format":"QCOW2","accountId":2,"name":"203-2-
> ae9cbb73-21a4-32ba-a9f5-
> 977ef4cea343","secUrl":"nfs://172.24.1.18/secondaryStorage","wait":0}}] }
> 2013-07-04 21:22:43,441 DEBUG [agent.transport.Request] (AgentManager-
> Handler-15:null) Seq 4-2010846143: Processing:  { Ans: , MgmtId:
> 159090355256435, via: 4, Ver: v1, Flags: 10,
> [{"storage.DownloadAnswer":{"jobId":"e67e76dd-2cb0-4fa8-96d2-
> a5ad9f55606a","downloadPct":100,"errorString":"Download success, starting
> install
> ","downloadStatus":"DOWNLOAD_IN_PROGRESS","downloadPath":"/mnt/S
> ecStorage/6446e243-2bfa-34c0-b21d-
> f42e1f65aa9f/template/tmpl/2/203/dnld874128138275112587tmp_","installP
> ath":"template/tmpl//2/203","templateSize":0,"templatePhySicalSize":0,"res
> ult":false,"details":"Download success, starting install ","wait":0}}] }
> 2013-07-04 21:22:53,444 DEBUG [agent.transport.Request] (Timer-3:null) Seq
> 4-2010846144: Sending  { Cmd , MgmtId: 159090355256435, via: 4, Ver: v1,
> Flags: 100011, [{"storage.DownloadProgressCommand":{"jobId":"e67e76dd-
> 2cb0-4fa8-96d2-
> a5ad9f55606a","request":"GET_STATUS","hvm":true,"description":"32bit","
> maxDownloadSizeInBytes":53687091200,"id":203,"resourceType":"TEMPLAT
> E","url":"http://xxx.xxx.xxx.229:443/
> mytemplate.qcow2","format":"QCOW2","accountId":2,"name":"203-2-
> ae9cbb73-21a4-32ba-a9f5-
> 977ef4cea343","secUrl":"nfs://172.24.1.18/secondaryStorage","wait":0}}] }
> 2013-07-04 21:22:53,494 DEBUG [agent.transport.Request] (AgentManager-
> Handler-8:null) Seq 4-2010846144: Processing:  { Ans: , MgmtId:
> 159090355256435, via: 4, Ver: v1, Flags: 10,
> [{"storage.DownloadAnswer":{"jobId":"e67e76dd-2cb0-4fa8-96d2-
> a5ad9f55606a","downloadPct":100,"errorString":"Download success, starting
> install
> ","downloadStatus":"DOWNLOAD_IN_PROGRESS","downloadPath":"/mnt/S
> ecStorage/6446e243-2bfa-34c0-b21d-
> f42e1f65aa9f/template/tmpl/2/203/dnld874128138275112587tmp_","installP
> ath":"template/tmpl//2/203","templateSize":0,"templatePhySicalSize":0,"res
> ult":false,"details":"Download success, starting install ","wait":0}}] 
> }2013-07-
> 04 21:23:03,496 DEBUG [agent.transport.Request] (Timer-3:null) Seq 4-
> 2010846145: Sending  { Cmd , MgmtId: 159090355256435, via: 4, Ver: v1, Flags:
> 100011,  [{"storage.DownloadProgressCommand":{"jobId":"e67e76dd-2cb0-
> 4fa8-96d2-
> a5ad9f55606a","request":"GET_STATUS","hvm":true,"description":"32bit","
> maxDownloadSizeInBytes":53687091200,"id":203,"resourceType":"TEMPLAT
> E","url":"http://xxx.xxx.xxx.229:443/
> mytemplate.qcow2","format":"QCOW2","accountId":2,"name":"203-2-
> ae9cbb73-21a4-32ba-a9f5-
> 977ef4cea343","secUrl":"nfs://172.24.1.18/secondaryStorage","wait":0}}]
> }2013-07-04 21:23:03,545 DEBUG [agent.transport.Request] (AgentManager-
> Handler-1:null) Seq 4-2010846145: Processing:  { Ans: , MgmtId:
> 159090355256435, via: 4, Ver: v1, Flags: 10,
> [{"storage.DownloadAnswer":{"jobId":"e67e76dd-2cb0-4fa8-96d2-
> a5ad9f55606a","downloadPct":100,"errorString":"Download success, starting
> install
> ","downloadStatus":"DOWNLOAD_IN_PROGRESS","downloadPath":"/mnt/S
> ecStorage/6446e243-2bfa-34c0-b21d-
> f42e1f65aa9f/template/tmpl/2/203/dnld874128138275112587tmp_","installP
> ath":"template/tmpl//2/203","templateSize":0,"templatePhySicalSize":0,"res
> ult":false,"details":"Download success, starting install ","wait":0}}] }
> 
>    I don't know how to fix it. Please help me, thank.

RE: 回复: Can't delete template for CloudStack

2013-07-04 Thread Sanjay Tripathi
Can you check the "Status" field in the template details, it will tell you 
about the downloaded percentage.

--Sanjay

> -Original Message-
> From: Aslan Lin [mailto:technologymess...@yahoo.cn]
> Sent: Thursday, July 04, 2013 9:04 PM
> To: users@cloudstack.apache.org
> Subject: 回复: Can't delete template for CloudStack
> 
> But the “installing template” state has been for a few hours.
> 
> 
> 
>  发件人: Sanjay Tripathi 
> 收件人: "users@cloudstack.apache.org" ;
> Aslan Lin 
> 发送日期: 2013年7月4日, 星期四, 11:19 下午
> 主题: RE: Can't delete template for CloudStack
> 
> 
> Wait till the template gets downloaded completely, once it gets done you'll
> get an option to delete it in the template detailView window.
> 
> --Sanjay
> 
> > -Original Message-
> > From: Aslan Lin [mailto:technologymess...@yahoo.cn]
> > Sent: Thursday, July 04, 2013 7:08 PM
> > To: cloudstackEnglish
> > Subject: Can't delete template for CloudStack
> >
> > Hi everyone:
> >     I made a mistake when register template, I select wrong OS type for my
> > template (windows xp instand of Ubuntu). Then I can't delete the template
> > and the message is "Please specify a template that is not currently being
> > downloaded."
> >     Following with the log from the management server:
> >
> > 2013-07-04 21:22:43,029 DEBUG [storage.download.DownloadListener]
> > (Timer-3:null) Scheduling timeout at 3 ms, template=Windows XP at
> host
> > nfs://172.24.1.18/secondaryStorage
> > 2013-07-04 21:22:43,392 DEBUG [agent.transport.Request] (Timer-3:null)
> Seq
> > 4-2010846143: Sending  { Cmd , MgmtId: 159090355256435, via: 4, Ver: v1,
> > Flags: 100011,
> [{"storage.DownloadProgressCommand":{"jobId":"e67e76dd-
> > 2cb0-4fa8-96d2-
> >
> a5ad9f55606a","request":"GET_STATUS","hvm":true,"description":"32bit","
> >
> maxDownloadSizeInBytes":53687091200,"id":203,"resourceType":"TEMPLAT
> > E","url":"http://xxx.xxx.xxx.229:443/
> > mytemplate.qcow2","format":"QCOW2","accountId":2,"name":"203-2-
> > ae9cbb73-21a4-32ba-a9f5-
> > 977ef4cea343","secUrl":"nfs://172.24.1.18/secondaryStorage","wait":0}}] }
> > 2013-07-04 21:22:43,441 DEBUG [agent.transport.Request]
> (AgentManager-
> > Handler-15:null) Seq 4-2010846143: Processing:  { Ans: , MgmtId:
> > 159090355256435, via: 4, Ver: v1, Flags: 10,
> > [{"storage.DownloadAnswer":{"jobId":"e67e76dd-2cb0-4fa8-96d2-
> > a5ad9f55606a","downloadPct":100,"errorString":"Download success,
> starting
> > install
> >
> ","downloadStatus":"DOWNLOAD_IN_PROGRESS","downloadPath":"/mnt/S
> > ecStorage/6446e243-2bfa-34c0-b21d-
> >
> f42e1f65aa9f/template/tmpl/2/203/dnld874128138275112587tmp_","installP
> >
> ath":"template/tmpl//2/203","templateSize":0,"templatePhySicalSize":0,"res
> > ult":false,"details":"Download success, starting install ","wait":0}}] }
> > 2013-07-04 21:22:53,444 DEBUG [agent.transport.Request] (Timer-3:null)
> Seq
> > 4-2010846144: Sending  { Cmd , MgmtId: 159090355256435, via: 4, Ver: v1,
> > Flags: 100011,
> [{"storage.DownloadProgressCommand":{"jobId":"e67e76dd-
> > 2cb0-4fa8-96d2-
> >
> a5ad9f55606a","request":"GET_STATUS","hvm":true,"description":"32bit","
> >
> maxDownloadSizeInBytes":53687091200,"id":203,"resourceType":"TEMPLAT
> > E","url":"http://xxx.xxx.xxx.229:443/
> > mytemplate.qcow2","format":"QCOW2","accountId":2,"name":"203-2-
> > ae9cbb73-21a4-32ba-a9f5-
> > 977ef4cea343","secUrl":"nfs://172.24.1.18/secondaryStorage","wait":0}}] }
> > 2013-07-04 21:22:53,494 DEBUG [agent.transport.Request]
> (AgentManager-
> > Handler-8:null) Seq 4-2010846144: Processing:  { Ans: , MgmtId:
> > 159090355256435, via: 4, Ver: v1, Flags: 10,
> > [{"storage.DownloadAnswer":{"jobId":"e67e76dd-2cb0-4fa8-96d2-
> > a5ad9f55606a","downloadPct":100,"errorString":"Download success,
> starting
> > install
> >
> ","downloadStatus":"DOWNLOAD_IN_PROGRESS","downloadPath":"/mnt/S
> > ecStorage/6446e243-2bfa-34c0-b21d-
> >
> f42e1f65aa9f/template/tmpl/2/203/dnld874128138275112587tmp_","installP
> >
> ath":"template/tmpl//2/203","templateSize":0,"templatePhySicalSize":0,"res
> > ult":false,"details":"Download success, starting install ","wait":0}}] 
> > }2013-
> 07-
> > 04 21:23:03,496 DEBUG [agent.transport.Request] (Timer-3:null) Seq 4-
> > 2010846145: Sending  { Cmd , MgmtId: 159090355256435, via: 4, Ver: v1,
> Flags:
> > 100011,  [{"storage.DownloadProgressCommand":{"jobId":"e67e76dd-
> 2cb0-
> > 4fa8-96d2-
> >
> a5ad9f55606a","request":"GET_STATUS","hvm":true,"description":"32bit","
> >
> maxDownloadSizeInBytes":53687091200,"id":203,"resourceType":"TEMPLAT
> > E","url":"http://xxx.xxx.xxx.229:443/
> > mytemplate.qcow2","format":"QCOW2","accountId":2,"name":"203-2-
> > ae9cbb73-21a4-32ba-a9f5-
> > 977ef4cea343","secUrl":"nfs://172.24.1.18/secondaryStorage","wait":0}}]
> > }2013-07-04 21:23:03,545 DEBUG [agent.transport.Request]
> (AgentManager-
> > Handler-1:null) Seq 4-2010846145: Processing:  { Ans: , MgmtId:
> > 159090355256435, via: 4, Ver: v1, Flags: 10,
> > [{"storage.DownloadAnswer":{"jo

Re: How many vms per primary storage can offer best performance?

2013-07-04 Thread Conrad Geiger
I would also say that 8 spindles for 15-20 VMs is low.  You are going to run 
out of iops.


Sent from my Verizon Wireless 4G LTE Smartphone



 Original message 
From: Ahmad Emneina 
Date: 07/04/2013 9:10 AM (GMT-05:00)
To: Cloudstack users mailing list 
Subject: Re: How many vms per primary storage can offer best performance?


I would google NFS tuning and atomically test changes. Changes vary from
the kernel level up through the switches (sizing frames) as well as
introducing bonding. YMMV here NFS tuning is a huge part trial and error.


On Thu, Jul 4, 2013 at 5:26 AM, WXR <1485739...@qq.com> wrote:

> I use NFS share as primary storage,the NFS share is on a 8 SATA HDDs
> RAID10 volume.
> The network link is gigabit ethernet.The switch is dell powerconnect.
>
> When I just create 15-20 vm instances and start them(not run any software
> on them),I find the disk IO performance of the vm is very low.
> If a file copy job on a pc needs 10 minutes , the same job on the vm needs
> 20minutes.
>
> I don't know if it is normal,and I want to know the correct configuration
> of the primary storage,I need your suggests with enough experience.


Snapshot not removed

2013-07-04 Thread Leeno Jose.P.A
Hi All,

I ma using Xenserver 6.0.2 with Clodstack 4.1

While deleting snapshots manually, it's getting removed from MS but not
from nfs secondary storage.

I see following logs in SSVM,

2013-07-04 13:09:32,570 DEBUG [cloud.agent.Agent] (agentRequest-Handler-3:)
Processing command: com.cloud.agent.api.GetStorageStatsCommand
2013-07-04 13:09:32,572 DEBUG
[storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-3:)
Executing: mount
2013-07-04 13:09:32,575 DEBUG
[storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-3:)
Execution is successful.
2013-07-04 13:09:37,003 DEBUG [cloud.agent.Agent] (agentRequest-Handler-4:)
Request:Seq 50-1124270094: { Cmd , MgmtId: 130602634328, via: 50, Ver: v1,
Flags: 100011,
[{"DeleteSnapshotBackupCommand":{"all":false,"primaryStoragePoolNameLabel":"be695799-ec7e-390b-b600-09ad8f8db048","primaryPool":{"id":210,"uuid":"be695799-ec7e-390b-b600-09ad8f8db048","host":"192.168.10.251","path":"/cstagzb-pds01","port":2049,"type":"NetworkFilesystem"},"snapshotUuid":"127ea7ae-c7c0-4ee9-938d-80ea23f67e51","secondaryStorageUrl":"
nfs://192.168.12.251/cstagzb-sds01","dcId":9,"accountId":2,"volumeId":1297,"wait":0}}]
}
2013-07-04 13:09:37,003 DEBUG [cloud.agent.Agent] (agentRequest-Handler-4:)
Processing command: com.cloud.agent.api.DeleteSnapshotBackupCommand
2013-07-04 13:09:37,004 DEBUG
[storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-4:)
Executing: mount
2013-07-04 13:09:37,008 DEBUG
[storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-4:)
Execution is successful.
2013-07-04 13:09:37,011 DEBUG
[storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-4:)
Executing: /bin/bash -c rm -f
/mnt/SecStorage/71d74169-8641-39ec-aa9a-f2b6045ecdc8:snapshots:2:1297:*127ea7ae-c7c0-4ee9-938d-80ea23f67e51*
2013-07-04 13:09:37,015 DEBUG
[storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-4:)
Execution is successful.
2013-07-04 13:09:37,016 DEBUG [cloud.agent.Agent] (agentRequest-Handler-4:)
Seq 50-1124270094: { Ans: , MgmtId: 130602634328, via: 50, Ver: v1, Flags:
10, [{"Answer":{"result":true,"details":"success","wait":0}}] }
2013-07-04 13:09:52,935 DEBUG [cloud.agent.Agent] (UgentTask-5:) Sending
ping: Seq 50-7: { Cmd , MgmtId: -1, via: 50, Ver: v1, Flags: 11,
[{"PingStorageCommand":{"changes":{},"hostType":"Storage","hostId":50,"wait":0}}]
}
2013-07-04 13:09:52,978 DEBUG [cloud.agent.Agent] (Agent-Handler-2:)
Received response: Seq 50-7: { Ans: , MgmtId: 130602634328, via: 50, Ver:
v1, Flags: 100010,
[{"PingAnswer":{"_command":{"hostType":"Storage","hostId":50,"wait":0},"result":true,"wait":0}}]
}


But it's not removing snapshot. The path shown with 'rm' command is
/mnt/SecStorage/71d74169-8641-39ec-aa9a-f2b6045ecdc8:snapshots:2:1297:*127ea7ae-c7c0-4ee9-938d-80ea23f67e51*.
There it is seems directories are separated using ":". Is this correct?
Shouldn't be "/"?

--
Leeno

-- 
Leeno Jose .P.A


Re: Snapshot not removed

2013-07-04 Thread Ahmad Emneina
they wont be removed from the backend until the actual cleanup happens.
what is set for your storage.cleanup.interval, and storage.cleanup.enabled
values in the global settings?


On Thu, Jul 4, 2013 at 9:30 AM, Leeno Jose.P.A  wrote:

> Hi All,
>
> I ma using Xenserver 6.0.2 with Clodstack 4.1
>
> While deleting snapshots manually, it's getting removed from MS but not
> from nfs secondary storage.
>
> I see following logs in SSVM,
>
> 2013-07-04 13:09:32,570 DEBUG [cloud.agent.Agent] (agentRequest-Handler-3:)
> Processing command: com.cloud.agent.api.GetStorageStatsCommand
> 2013-07-04 13:09:32,572 DEBUG
> [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-3:)
> Executing: mount
> 2013-07-04 13:09:32,575 DEBUG
> [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-3:)
> Execution is successful.
> 2013-07-04 13:09:37,003 DEBUG [cloud.agent.Agent] (agentRequest-Handler-4:)
> Request:Seq 50-1124270094: { Cmd , MgmtId: 130602634328, via: 50, Ver: v1,
> Flags: 100011,
>
> [{"DeleteSnapshotBackupCommand":{"all":false,"primaryStoragePoolNameLabel":"be695799-ec7e-390b-b600-09ad8f8db048","primaryPool":{"id":210,"uuid":"be695799-ec7e-390b-b600-09ad8f8db048","host":"192.168.10.251","path":"/cstagzb-pds01","port":2049,"type":"NetworkFilesystem"},"snapshotUuid":"127ea7ae-c7c0-4ee9-938d-80ea23f67e51","secondaryStorageUrl":"
> nfs://192.168.12.251/cstagzb-sds01
> ","dcId":9,"accountId":2,"volumeId":1297,"wait":0}}]
> }
> 2013-07-04 13:09:37,003 DEBUG [cloud.agent.Agent] (agentRequest-Handler-4:)
> Processing command: com.cloud.agent.api.DeleteSnapshotBackupCommand
> 2013-07-04 13:09:37,004 DEBUG
> [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-4:)
> Executing: mount
> 2013-07-04 13:09:37,008 DEBUG
> [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-4:)
> Execution is successful.
> 2013-07-04 13:09:37,011 DEBUG
> [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-4:)
> Executing: /bin/bash -c rm -f
>
> /mnt/SecStorage/71d74169-8641-39ec-aa9a-f2b6045ecdc8:snapshots:2:1297:*127ea7ae-c7c0-4ee9-938d-80ea23f67e51*
> 2013-07-04 13:09:37,015 DEBUG
> [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-4:)
> Execution is successful.
> 2013-07-04 13:09:37,016 DEBUG [cloud.agent.Agent] (agentRequest-Handler-4:)
> Seq 50-1124270094: { Ans: , MgmtId: 130602634328, via: 50, Ver: v1, Flags:
> 10, [{"Answer":{"result":true,"details":"success","wait":0}}] }
> 2013-07-04 13:09:52,935 DEBUG [cloud.agent.Agent] (UgentTask-5:) Sending
> ping: Seq 50-7: { Cmd , MgmtId: -1, via: 50, Ver: v1, Flags: 11,
>
> [{"PingStorageCommand":{"changes":{},"hostType":"Storage","hostId":50,"wait":0}}]
> }
> 2013-07-04 13:09:52,978 DEBUG [cloud.agent.Agent] (Agent-Handler-2:)
> Received response: Seq 50-7: { Ans: , MgmtId: 130602634328, via: 50, Ver:
> v1, Flags: 100010,
>
> [{"PingAnswer":{"_command":{"hostType":"Storage","hostId":50,"wait":0},"result":true,"wait":0}}]
> }
>
>
> But it's not removing snapshot. The path shown with 'rm' command is
>
> /mnt/SecStorage/71d74169-8641-39ec-aa9a-f2b6045ecdc8:snapshots:2:1297:*127ea7ae-c7c0-4ee9-938d-80ea23f67e51*.
> There it is seems directories are separated using ":". Is this correct?
> Shouldn't be "/"?
>
> --
> Leeno
>
> --
> Leeno Jose .P.A
>


Re: Snapshot not removed

2013-07-04 Thread Leeno Jose.P.A
Thanks Ahmad.

I set interval to 300 for testing. But still snapshots are not deleted. In
management.log i see,

2013-07-04 13:18:09,202 DEBUG [agent.manager.DirectAgentAttache]
(DirectAgent-65:null) Seq 47-153092120: Executing request
2013-07-04 13:18:09,614 DEBUG [cloud.storage.StorageManagerImpl]
(StorageManager-Scavenger-1:null) Storage pool garbage collector found 0
templates to clean up in storage pool: cstagzb-pds01
2013-07-04 13:18:09,616 DEBUG [cloud.storage.StorageManagerImpl]
(StorageManager-Scavenger-1:null) Secondary storage garbage collector found
0 templates to cleanup on secondary storage host: nfs://
192.168.12.251/cstagzb-sds01
2013-07-04 13:18:09,617 WARN  [cloud.storage.StorageManagerImpl]
(StorageManager-Scavenger-1:null) problem cleaning up snapshots in
secondary storage Host[-40-SecondaryStorage]
java.lang.NullPointerException
at
com.cloud.storage.StorageManagerImpl.cleanupSecondaryStorage(StorageManagerImpl.java:2531)
at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at
com.cloud.storage.StorageManagerImpl.cleanupStorage(StorageManagerImpl.java:2403)
at
com.cloud.storage.StorageManagerImpl$StorageGarbageCollector.run(StorageManagerImpl.java:3757)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
2013-07-04 13:18:09,622 DEBUG [agent.transport.Request]
(StorageManager-Scavenger-1:null) Seq 50-1192034327: Sending  { Cmd ,
MgmtId: 130602634328, via: 50, Ver: v1, Flags: 100011, [{"CleanupSnapsh
otBackupCommand":{"secondaryStoragePoolURL":"nfs://
192.168.12.251/cstagzb-sds01","dcId":9,"accountId":2,"volumeId":1226,"validBackupUUIDs":[],"wait":0}}]
}
2013-07-04 13:18:09,679 DEBUG [agent.transport.Request]
(AgentManager-Handler-12:null) Seq 50-1192034327: Processing:  { Ans: ,
MgmtId: 130602634328, via: 50, Ver: v1, Flags: 10, [{"Answer":{"resul
t":true,"wait":0}}] }


--
Leeno


On Thu, Jul 4, 2013 at 10:15 PM, Ahmad Emneina  wrote:

> they wont be removed from the backend until the actual cleanup happens.
> what is set for your storage.cleanup.interval, and storage.cleanup.enabled
> values in the global settings?
>
>
> On Thu, Jul 4, 2013 at 9:30 AM, Leeno Jose.P.A  wrote:
>
> > Hi All,
> >
> > I ma using Xenserver 6.0.2 with Clodstack 4.1
> >
> > While deleting snapshots manually, it's getting removed from MS but not
> > from nfs secondary storage.
> >
> > I see following logs in SSVM,
> >
> > 2013-07-04 13:09:32,570 DEBUG [cloud.agent.Agent]
> (agentRequest-Handler-3:)
> > Processing command: com.cloud.agent.api.GetStorageStatsCommand
> > 2013-07-04 13:09:32,572 DEBUG
> > [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-3:)
> > Executing: mount
> > 2013-07-04 13:09:32,575 DEBUG
> > [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-3:)
> > Execution is successful.
> > 2013-07-04 13:09:37,003 DEBUG [cloud.agent.Agent]
> (agentRequest-Handler-4:)
> > Request:Seq 50-1124270094: { Cmd , MgmtId: 130602634328, via: 50, Ver:
> v1,
> > Flags: 100011,
> >
> >
> [{"DeleteSnapshotBackupCommand":{"all":false,"primaryStoragePoolNameLabel":"be695799-ec7e-390b-b600-09ad8f8db048","primaryPool":{"id":210,"uuid":"be695799-ec7e-390b-b600-09ad8f8db048","host":"192.168.10.251","path":"/cstagzb-pds01","port":2049,"type":"NetworkFilesystem"},"snapshotUuid":"127ea7ae-c7c0-4ee9-938d-80ea23f67e51","secondaryStorageUrl":"
> > nfs://192.168.12.251/cstagzb-sds01
> > ","dcId":9,"accountId":2,"volumeId":1297,"wait":0}}]
> > }
> > 2013-07-04 13:09:37,003 DEBUG [cloud.agent.Agent]
> (agentRequest-Handler-4:)
> > Processing command: com.cloud.agent.api.DeleteSnapshotBackupCommand
> > 2013-07-04 13:09:37,004 DEBUG
> > [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-4:)
> > Executing: mount
> > 2013-07-04 13:09:37,008 DEBUG
> > [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-4:)
> > Execution is successful.
> > 2013-07-04 13:09:37,011 DEBUG
> > [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-4:)
> > Executing: /bin/bash -c rm -f
> >
> >
> /mnt/SecStorage/71d74169-8641-39ec-aa9a-f2b6045ecdc8:snapshots:2:1297:*127ea7ae-c7c0-4ee9-938d-80ea23f67e51*
> > 2013-07-04 13:09:37,015 DEBUG
> > [storage.resource.NfsSecondaryStorageResource] (agentR

Re: Snapshot not removed

2013-07-04 Thread Leeno Jose.P.A
Ah.. it worked now, removing snapshots even if CS is throwing above error
in log. But it's not removing destroyed vm's snapshots.

--
Leeno


On Thu, Jul 4, 2013 at 11:01 PM, Leeno Jose.P.A  wrote:

> Thanks Ahmad.
>
> I set interval to 300 for testing. But still snapshots are not deleted. In
> management.log i see,
>
> 2013-07-04 13:18:09,202 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-65:null) Seq 47-153092120: Executing request
> 2013-07-04 13:18:09,614 DEBUG [cloud.storage.StorageManagerImpl]
> (StorageManager-Scavenger-1:null) Storage pool garbage collector found 0
> templates to clean up in storage pool: cstagzb-pds01
> 2013-07-04 13:18:09,616 DEBUG [cloud.storage.StorageManagerImpl]
> (StorageManager-Scavenger-1:null) Secondary storage garbage collector found
> 0 templates to cleanup on secondary storage host: nfs://
> 192.168.12.251/cstagzb-sds01
> 2013-07-04 13:18:09,617 WARN  [cloud.storage.StorageManagerImpl]
> (StorageManager-Scavenger-1:null) problem cleaning up snapshots in
> secondary storage Host[-40-SecondaryStorage]
> java.lang.NullPointerException
> at
> com.cloud.storage.StorageManagerImpl.cleanupSecondaryStorage(StorageManagerImpl.java:2531)
> at
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> at
> com.cloud.storage.StorageManagerImpl.cleanupStorage(StorageManagerImpl.java:2403)
> at
> com.cloud.storage.StorageManagerImpl$StorageGarbageCollector.run(StorageManagerImpl.java:3757)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:679)
> 2013-07-04 13:18:09,622 DEBUG [agent.transport.Request]
> (StorageManager-Scavenger-1:null) Seq 50-1192034327: Sending  { Cmd ,
> MgmtId: 130602634328, via: 50, Ver: v1, Flags: 100011, [{"CleanupSnapsh
> otBackupCommand":{"secondaryStoragePoolURL":"nfs://
> 192.168.12.251/cstagzb-sds01","dcId":9,"accountId":2,"volumeId":1226,"validBackupUUIDs":[],"wait":0}}]
> }
> 2013-07-04 13:18:09,679 DEBUG [agent.transport.Request]
> (AgentManager-Handler-12:null) Seq 50-1192034327: Processing:  { Ans: ,
> MgmtId: 130602634328, via: 50, Ver: v1, Flags: 10, [{"Answer":{"resul
> t":true,"wait":0}}] }
>
>
> --
> Leeno
>
>
> On Thu, Jul 4, 2013 at 10:15 PM, Ahmad Emneina  wrote:
>
>> they wont be removed from the backend until the actual cleanup happens.
>> what is set for your storage.cleanup.interval, and storage.cleanup.enabled
>> values in the global settings?
>>
>>
>> On Thu, Jul 4, 2013 at 9:30 AM, Leeno Jose.P.A 
>> wrote:
>>
>> > Hi All,
>> >
>> > I ma using Xenserver 6.0.2 with Clodstack 4.1
>> >
>> > While deleting snapshots manually, it's getting removed from MS but not
>> > from nfs secondary storage.
>> >
>> > I see following logs in SSVM,
>> >
>> > 2013-07-04 13:09:32,570 DEBUG [cloud.agent.Agent]
>> (agentRequest-Handler-3:)
>> > Processing command: com.cloud.agent.api.GetStorageStatsCommand
>> > 2013-07-04 13:09:32,572 DEBUG
>> > [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-3:)
>> > Executing: mount
>> > 2013-07-04 13:09:32,575 DEBUG
>> > [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-3:)
>> > Execution is successful.
>> > 2013-07-04 13:09:37,003 DEBUG [cloud.agent.Agent]
>> (agentRequest-Handler-4:)
>> > Request:Seq 50-1124270094: { Cmd , MgmtId: 130602634328, via: 50, Ver:
>> v1,
>> > Flags: 100011,
>> >
>> >
>> [{"DeleteSnapshotBackupCommand":{"all":false,"primaryStoragePoolNameLabel":"be695799-ec7e-390b-b600-09ad8f8db048","primaryPool":{"id":210,"uuid":"be695799-ec7e-390b-b600-09ad8f8db048","host":"192.168.10.251","path":"/cstagzb-pds01","port":2049,"type":"NetworkFilesystem"},"snapshotUuid":"127ea7ae-c7c0-4ee9-938d-80ea23f67e51","secondaryStorageUrl":"
>> > nfs://192.168.12.251/cstagzb-sds01
>> > ","dcId":9,"accountId":2,"volumeId":1297,"wait":0}}]
>> > }
>> > 2013-07-04 13:09:37,003 DEBUG [cloud.agent.Agent]
>> (agentRequest-Handler-4:)
>> > Processing command: com.cloud.agent.api.DeleteSnapshotBackupCommand
>> > 2013-07-04 13:09:37,004 DEBUG
>> > [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-4:)
>> > Executing: mount
>> > 2013-07-04 13:09:37,008 DEBUG
>> > [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-4:)
>> > Execution is successful.

any feedback of upgrading cloudstack from 3.0.2 to 4.1 with xenserver 6.0.2 hosts

2013-07-04 Thread William Jiang
Hi,
We have a plan to upgrade  cloudstack 3.0.2 to 4.1, we use xenserver 6.0.2 as 
host servers.
Did anyone have run the same upgrade path? Any  issues or comments will be 
great appreciated.

For xenserver 6.0.2(with XS602E001 and XS602E002 updates), can we keep this 
version or it's better  upgrade to xenserver 6.1.

Thanks,
William
This e-mail may be privileged and/or confidential, and the sender does not 
waive any related rights and obligations. Any distribution, use or copying of 
this e-mail or the information it contains by other than an intended recipient 
is unauthorized. If you received this e-mail in error, please advise me (by 
return e-mail or otherwise) immediately. Ce courrier électronique est 
confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations 
qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des 
renseignements qu'il contient par une personne autre que le (les) 
destinataire(s) désigné(s) est interdite. Si vous recevez ce courrier 
électronique par erreur, veuillez m'en aviser immédiatement, par retour de 
courrier électronique ou par un autre moyen.


Re: password enabled templates

2013-07-04 Thread ramnivas indani
thanks for helping me


On Thu, Jul 4, 2013 at 2:50 PM, Geoff Higginbottom <
geoff.higginbot...@shapeblue.com> wrote:

> As Ahmad says, by default its root for Linux, and Administrator for
> Windows.
>
> It's also easy to modify the script to change the account it maps to.
>
> Regards
>
> Geoff Higginbottom
>
> D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
>
> geoff.higginbot...@shapeblue.com
>
> -Original Message-
> From: Ahmad Emneina [mailto:aemne...@gmail.com]
> Sent: 04 July 2013 10:01
> To: Cloudstack users mailing list
> Subject: Re: password enabled templates
>
> should be the root user if its centos or rhel.
>
>
> On Thu, Jul 4, 2013 at 1:43 AM, ramnivas indani
> wrote:
>
> > Hi,
> >
> > i have already embedded password script in template, i want to ask
> > like for which user it generates new password.
> >
> > Thanks,
> > Ramnivas
> >
> >
> > On Wed, Jul 3, 2013 at 6:10 PM, Jayapal Reddy Uradi <
> > jayapalreddy.ur...@citrix.com> wrote:
> >
> > > Hi,
> > >
> > > getVMPassword returns the encrypted password.
> > > Is your template has cloud-set-guest-password script ?
> > >
> > > Copy the cloud-set-guest-password script into guest vm and create
> > template
> > > from it.
> > > Set password enable in this template and deploy vm with it.
> > >
> > >
> > >
> > http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html/A
> > dmin_Guide/add-password-management-to-templates.html
> > >
> > >
> > >
> > https://github.com/shankerbalan/cloudstack-scripts/blob/master/cloud-s
> > et-guest-password-sles
> > >
> > > Thanks,
> > > Jayapal
> > >
> > >
> > > On 03-Jul-2013, at 12:46 PM, ramnivas indani 
> wrote:
> > >
> > > > Hi all,
> > > >
> > > > i have created a new template using sshkey pair, when i use same
> > template
> > > > in deployVirtualMachine and get job status using
> > > > queryAsyncJobStatus i
> > > get
> > > > password in password field of response and also get password in
> > > > getVMPassword but both are different and i am not able to login to
> > > > vm
> > > using
> > > > any of these ?
> > > >
> > > > can anyone point me to right direction ?
> > > >
> > > > Thanks & Regards,
> > > > Ramnivas
> > >
> > >
> >
> This email and any attachments to it may be confidential and are intended
> solely for the use of the individual to whom it is addressed. Any views or
> opinions expressed are solely those of the author and do not necessarily
> represent those of Shape Blue Ltd or related companies. If you are not the
> intended recipient of this email, you must neither take any action based
> upon its contents, nor copy or show it to anyone. Please contact the sender
> if you believe you have received this email in error. Shape Blue Ltd is a
> company incorporated in England & Wales. ShapeBlue Services India LLP is
> operated under license from Shape Blue Ltd. ShapeBlue is a registered
> trademark.
>
>


Re: CY13-Q2 Community Analysis — OpenStack vs OpenNebula vs Eucalyptus vs CloudStack

2013-07-04 Thread Rohit Yadav
Thanks, URL: http://www.qyjohn.net/?p=3321

Regards.

On Thu, Jul 4, 2013 at 6:42 AM, Qingye Jiang (John) <
qingye.ji...@eucalyptus.com> wrote:

> Hi all,
>
> The "CY13-Q2 Community Analysis -- OpenStack vs OpenNebula vs Eucalyptus
> vs CloudStack" is now available. This is the 7th edition of this quarterly
> community analysis.
>
> English Version:
> CY13-Q2 Community Analysis ― OpenStack vs OpenNebula vs Eucalyptus vs
> CloudStack
>
> Chinese Version:
> CY13-Q2 OpenStack, OpenNebula,Eucalyptus,CloudStack社区活跃度比较
>
> Best regards,
>
> Qingye Jiang (John)


Re: How many vms per primary storage can offer best performance?

2013-07-04 Thread Ignazio Cassano
Hi, I think nfs is not a good solution.
Try clvm over iscsi or fc.
Regards
Il giorno 04/lug/2013 18:26, "Conrad Geiger"  ha
scritto:

> I would also say that 8 spindles for 15-20 VMs is low.  You are going to
> run out of iops.
>
>
> Sent from my Verizon Wireless 4G LTE Smartphone
>
>
>
>  Original message 
> From: Ahmad Emneina 
> Date: 07/04/2013 9:10 AM (GMT-05:00)
> To: Cloudstack users mailing list 
> Subject: Re: How many vms per primary storage can offer best performance?
>
>
> I would google NFS tuning and atomically test changes. Changes vary from
> the kernel level up through the switches (sizing frames) as well as
> introducing bonding. YMMV here NFS tuning is a huge part trial and error.
>
>
> On Thu, Jul 4, 2013 at 5:26 AM, WXR <1485739...@qq.com> wrote:
>
> > I use NFS share as primary storage,the NFS share is on a 8 SATA HDDs
> > RAID10 volume.
> > The network link is gigabit ethernet.The switch is dell powerconnect.
> >
> > When I just create 15-20 vm instances and start them(not run any software
> > on them),I find the disk IO performance of the vm is very low.
> > If a file copy job on a pc needs 10 minutes , the same job on the vm
> needs
> > 20minutes.
> >
> > I don't know if it is normal,and I want to know the correct configuration
> > of the primary storage,I need your suggests with enough experience.
>