Andrew,

 A system template in secondary storage shouldn't get expunged at all.

The command to download the template also creates a template.properties files 
which lives with the system vm template;
/usr/lib64/cloud/common/scripts/storage/secondary/cloud-install-sys-tmplt -m 
/mnt/secondary -u 
http://download.cloud.com/templates/acton/acton-systemvm-02062012.qcow2.bz2 -h 
kvm -F

The template ends up in SECSTORAGESERVERIP:/SECSTORAGEPATH/template/tmpl/1/3

When the CS tries to start the SSVMs is copies the templates across from 
secondary storage to the primary storage in the cluster the VM will start on.

Are your primary and secondary storage shares mixed maybe?



Regards,

Paul Angus
S: +44 20 3603 0540 | M: +447711418784
paul.an...@shapeblue.com

-----Original Message-----
From: Andrew Eng [mailto:andrewc...@gmail.com]
Sent: 20 January 2013 14:05
To: cloudstack-users@incubator.apache.org
Subject: Re: Cloudstack - not able to add KVM host

Rajesh,

i manually mounted it before (using the GUID directory it created).  i also 
verified I was able to read / write "new" files in the nfs share.
 As a precaution, after downloading the template I chmod -R 777 * on everything 
in the share.  But after the VM expunges, it deletes the system template.  Then 
I get these errors.

Thanks.

Andrew

On Sun, Jan 20, 2013 at 10:54 PM, Rajesh Battala <rajesh.batt...@citrix.com> 
wrote:
> Look like mount command issue. Check whether manual mount with the same 
> values is getting executed without error not.
>
> -----Original Message-----
> From: Andrew Eng [mailto:andrewc...@gmail.com]
> Sent: Sunday, January 20, 2013 6:24 PM
> To: cloudstack-users@incubator.apache.org
> Subject: Re: Cloudstack - not able to add KVM host
>
> Thanks - I resolved the adding the host - but now there's a problem with 
> adding the secondary storage - it keeps failing...
>
> agent.log I got is:
>
> ERROR [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-5:null) org.libvirt.LibvirtException: internal
> error Child process (/bin/mount <IP>:/mnt/template/template/tmpl/1/3
> /mnt/e5ea7b4b-2966-3857-952e-e6981a1e020c) status unexpected: exit
> status 32
> 2013-01-20 21:51:40,718 WARN  [cloud.agent.Agent]
> (agentRequest-Handler-5:null) Caught:
>
> I downloaded the system vm template and placed it in the secondary storage 
> but it keeps getting expunged.....
>
> Any ideas?
>
> On Sun, Jan 20, 2013 at 5:45 PM, Paul Angus <paul.an...@shapeblue.com> wrote:
>> Hi Andrew,
>>
>> I assume you mean that you can't add the host into the cluster at all.
>>
>> Check
>>
>> /var/log/cloud/agent/agent.log
>> And
>> /var/log/libvirt/libvirtd.log
>>
>> On the host itself.
>>
>> There are two issues I've seen lately - one relates to cgroups not getting  
>> configured on CentOS 6.3 KVM and the other to the KVM 'default' storage 
>> conflicting with the CloudStack 'default' storage.
>>
>> Regards,
>>
>> Paul Angus
>> S: +44 20 3603 0540 | M: +447711418784 paul.an...@shapeblue.com
>>
>> -----Original Message-----
>> From: Andrew Eng [mailto:andrewc...@gmail.com]
>> Sent: 20 January 2013 08:04
>> To: cloudstack-users@incubator.apache.org
>> Subject: Cloudstack - not able to add KVM host
>>
>> On Sun, Jan 20, 2013 at 5:02 PM, Andrew Eng <andrewc...@gmail.com> wrote:
>>> I just installed cloudstack on a single server following the CS 4.0
>>> install guide.  I can't seem to add my KVM host on centos 6.3 in the
>>> advance zone...  I did download the kvm system vm template in my
>>> secondary nfs mounts - yet nothing.  Logs don't really give me much
>>> - on the CS GUI I see the system VMs trying to create, but when
>>> checking the host using virt-manager, I see nothing...
>>>
>>> Any ideas?
>>>
>>> 2013-01-20 16:55:07,266 DEBUG [cloud.server.StatsCollector]
>>> (StatsCollector-2:null) There is no secondary storage VM for
>>> secondary storage host nfs://xxxxxxxxxxxx/mnt/template
>>> 2013-01-20 16:55:23,072 DEBUG
>>> [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
>>> Zone 2 is not ready to launch secondary storage VM yet
>>> 2013-01-20 16:55:23,373 DEBUG
>>> [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null)
>>> Zone 2 is not ready to launch console proxy yet
>>> 2013-01-20 16:55:25,368 DEBUG
>>> [network.router.VirtualNetworkApplianceManagerImpl]
>>> (RouterStatusMonitor-1:null) Found 0 routers.
>>> 2013-01-20 16:55:53,080 DEBUG
>>> [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
>>> Zone 2 is not ready to launch secondary storage VM yet
>>> 2013-01-20 16:55:53,367 DEBUG
>>> [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null)
>>> Zone 2 is not ready to launch console proxy yet
>>> 2013-01-20 16:55:55,370 DEBUG
>>> [network.router.VirtualNetworkApplianceManagerImpl]
>>> (RouterStatusMonitor-1:null) Found 0 routers.
>>> 2013-01-20 16:56:07,083 DEBUG [cloud.server.StatsCollector]
>>> (StatsCollector-2:null) VmStatsCollector is running...
>>> 2013-01-20 16:56:07,107 DEBUG [cloud.server.StatsCollector]
>>> (StatsCollector-3:null) HostStatsCollector is running...
>>> 2013-01-20 16:56:07,272 DEBUG [cloud.server.StatsCollector]
>>> (StatsCollector-1:null) StorageCollector is running...
>>> 2013-01-20 16:56:07,286 DEBUG [cloud.server.StatsCollector]
>>> (StatsCollector-1:null) There is no secondary storage VM for
>>> secondary storage host nfs://xxxxxxxxxxxxx/mnt/template
>>> 2013-01-20 16:56:23,084 DEBUG
>>> [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
>>> Zone 2 is not ready to launch secondary storage VM yet
>>> 2013-01-20 16:56:23,381 DEBUG
>>> [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null)
>>> Zone 2 is not ready to launch console proxy yet
>>> 2013-01-20 16:56:25,369 DEBUG
>>> [network.router.VirtualNetworkApplianceManagerImpl]
>>> (RouterStatusMonitor-1:null) Found 0 routers.
>>> 2013-01-20 16:56:53,104 DEBUG
>>> [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
>>> Zone 2 is not ready to launch secondary storage VM yet
>>> 2013-01-20 16:56:53,380 DEBUG
>>> [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null)
>>> Zone 2 is not ready to launch console proxy yet
>>> 2013-01-20 16:56:55,369 DEBUG
>>> [network.router.VirtualNetworkApplianceManagerImpl]
>>> (RouterStatusMonitor-1:null) Found 0 routers.
>>> 2013-01-20 16:57:07,086 DEBUG [cloud.server.StatsCollector]
>>> (StatsCollector-3:null) VmStatsCollector is running...
>>> 2013-01-20 16:57:07,112 DEBUG [cloud.server.StatsCollector]
>>> (StatsCollector-2:null) HostStatsCollector is running...
>>> 2013-01-20 16:57:07,301 DEBUG [cloud.server.StatsCollector]
>>> (StatsCollector-1:null) StorageCollector is running...
>>> 2013-01-20 16:57:07,308 DEBUG [cloud.server.StatsCollector]
>>> (StatsCollector-1:null) There is no secondary storage VM for
>>> secondary storage host nfs://xxxxxxxxxxxx/mnt/template
>>> 2013-01-20 16:57:23,076 DEBUG
>>> [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
>>> Zone 2 is not ready to launch secondary storage VM yet
>>> 2013-01-20 16:57:23,379 DEBUG
>>> [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null)
>>> Zone 2 is not ready to launch console proxy yet
>>> 2013-01-20 16:57:25,369 DEBUG
>>> [network.router.VirtualNetworkApplianceManagerImpl]
>>> (RouterStatusMonitor-1:null) Found 0 routers.
>>>
>>>
>>> --
>>> Andrew
>>
>>
>>
>> --
>> Andrew
>>
>> ShapeBlue provides a range of strategic and technical consulting and 
>> implementation services to help IT Service Providers and Enterprises to 
>> build a true IaaS compute cloud. ShapeBlue's expertise, combined with 
>> CloudStack technology, allows IT Service Providers and Enterprises to 
>> deliver true, utility based, IaaS to the customer or end-user.
>>
>> ________________________________
>>
>> 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. 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.
>
>
>
> --
> Andrew



--
Andrew

ShapeBlue provides a range of strategic and technical consulting and 
implementation services to help IT Service Providers and Enterprises to build a 
true IaaS compute cloud. ShapeBlue’s expertise, combined with CloudStack 
technology, allows IT Service Providers and Enterprises to deliver true, 
utility based, IaaS to the customer or end-user.

________________________________

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. 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.

Reply via email to