I was having a similar issue last night. I have been running 4.1 without issue 
with both Xen and Vmware.  I installed 4.2 in the lab to do some testing before 
a full upgrade.  Below are the issues I have found so far and the workarounds I 
found. I am using Ubuntu 12.04 for the MS and building the nonoss code from 
source. 

1. System VM's will not provison. (NFS FAILURE) apparently after building the 
deb packages and installing them the correct permissions are not being set on 
/var/lib/cloud and the nfs mounts are failing due to to permissions for the 
cloud user.  (chown -R cloud.cloud /var/lib/cloud). This has corrected the 
issue. 

--Log Snip--
2013-10-03 23:22:38,931 INFO  [storage.resource.VmwareStorageProcessor] 
(DirectAgent-72:esx02.lab.zimcom.net) Executing 
copyTemplateFromSecondaryToPrimary. secondaryStorage: 
nfs://nfs01.us.east.leb.lab.zimcom.net/US_EAST_Z1_SEC, 
templatePathAtSecondaryStorage: template/tmpl/1/8/, templateName: routing-8
2013-10-03 23:22:38,931 ERROR [vmware.manager.VmwareManagerImpl] 
(DirectAgent-72:esx02.lab.zimcom.net) Unable to create mount: 
/var/lib/cloud/mnt/VM/345049822399.60d4f8d1
2013-10-03 23:22:38,932 ERROR [vmware.manager.VmwareManagerImpl] 
(DirectAgent-72:esx02.lab.zimcom.net) Unable to create mount: 
/var/lib/cloud/mnt/VM/345049822399.fe168a8
2013-10-03 23:22:38,932 ERROR
--Log Snip--

2. System VM's will provision and pass connectivity tests but templates will 
never begin downloading from cloud.com.  To make a long story short I 
pre-populated my secondary storage with all of the system images for 
KVM,VmWare, Xen, and LXC. The problem seems to be an issue with the SSVM 
enumerating the value of the LXC template from the secondary storage and 
returning "Number Format Exception".  Below is a log I pulled from the SSVM 
running on vmware that caused the issue.  I removed the LXC template and the 
KVM template from the secondary storage and restarted the SSVM, the template 
download then succeeded. Below is a log snip from the SSVM that was causing the 
error.  Hope this helps. 

-- Log Snip-- 

2013-10-04 04:41:04,465 INFO  [storage.template.DownloadManagerImpl] 
(agentRequest-Handler-5:null) found 4 
templates[/mnt/SecStorage/4ebc642c-eb94-3a8a-81b8-d5971132beb3/template/tmpl/1/1/b3ac9ed6-cba1-41f3-
8965-f7c89f0772d8.vhd, 
/mnt/SecStorage/4ebc642c-eb94-3a8a-81b8-d5971132beb3/template/tmpl/1/8/79f0d6b5-22c8-4561-86d5-150260f4e2ce.ova,
 /mnt/SecStorage/4ebc642c-eb94-3a8a-81b8-d5971132beb3/template/tmpl/1/NU
LL/475e0e89-5bff-4e23-8f2c-ba9b56fc6472.qcow2, 
/mnt/SecStorage/4ebc642c-eb94-3a8a-81b8-d5971132beb3/template/tmpl/1/3/1220decc-ecdd-4794-8408-fc8836806f72.qcow2]
2013-10-04 04:41:04,477 WARN  [cloud.agent.Agent] (agentRequest-Handler-5:null) 
Caught: 
java.lang.NumberFormatException: For input string: "NULL"
        at 
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
        at java.lang.Long.parseLong(Long.java:410)
        at java.lang.Long.parseLong(Long.java:468)
        at 
com.cloud.storage.template.TemplateLocation.getTemplateInfo(TemplateLocation.java:161)
        at 
org.apache.cloudstack.storage.template.DownloadManagerImpl.gatherTemplateInfo(DownloadManagerImpl.java:840)
        at 
org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.execute(NfsSecondaryStorageResource.java:1467)
        at 
org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.executeRequest(NfsSecondaryStorageResource.java:194)
        at 
com.cloud.storage.resource.PremiumSecondaryStorageResource.defaultAction(PremiumSecondaryStorageResource.java:63)
        at 
com.cloud.storage.resource.PremiumSecondaryStorageResource.executeRequest(PremiumSecondaryStorageResource.java:59)
        at com.cloud.agent.Agent.processRequest(Agent.java:525)
        at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:852)
        at com.cloud.utils.nio.Task.run(Task.java:83)
        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:662)
2013-10-04 04:41:04,480 DEBUG [cloud.agent.Agent] (agentRequest-Handler-5:null) 
Seq 8-1237778437:  { Ans: , MgmtId: 345049822399, via: 8, Ver: v1, Flags: 110,

--Log Snip-- 


Steve Searles
Director, Network Operations
Zimcom Internet Solutions, Inc.
http://www.zimcom.net
Phone. (513)231-9500
Fax. (513)624-3909
Toll Free. (888)624-3910

-----Original Message-----
From: Shanker Balan [mailto:shanker.ba...@shapeblue.com] 
Sent: Friday, October 04, 2013 1:20 PM
To: <users@cloudstack.apache.org>
Subject: Re: cloudstack 4.2 xenserver 6.2 template not downloading

On 04-Oct-2013, at 10:05 PM, Dean Kamali <dean.kam...@gmail.com> wrote:

> Hi Shanker
>
> Are you using Ubuntu or CentOS to run CS Management station?
>
> It is very strange that system vms boots up correctly and check 
> scripts pass all tests.
>


Am on CentOS 6.4


> Please let me know
>
> Thanks
>
>
> On Fri, Oct 4, 2013 at 12:08 PM, Shanker Balan
> <shanker.ba...@shapeblue.com>wrote:
>
>> On 04-Oct-2013, at 8:09 PM, Dean Kamali <dean.kam...@gmail.com> wrote:
>>
>>> Hello everyone
>>>
>>> I did a fresh install of CS 4.2, and I'm using xenserver 6.2 for my 
>>> hypervisors, I have added hosts, and system vms are booting fine, 
>>> yet, I'm not able to register any ISO or template.
>>
>> Hi Dean,
>>
>> My local xenserver 6.2 and CS 4.2.0 is working correctly. No issues so far.
>>
>>
>>>
>>> every time I try and register, it doesn't show any progress , here 
>>> is
>> what
>>> I see in the logs
>>>
>>> 2013-10-04 10:22:41,409 DEBUG [agent.transport.Request] 
>>> (Timer-11:null)
>> Seq
>>> 8-1364983880: Sending  { Cmd , MgmtId: 2839826851498, via: 8, Ver: 
>>> v1,
>>> Flags: 100011,
>>>
>> [{"org.apache.cloudstack.storage.command.DownloadProgressCommand":{"j
>> obId":"bc01b7a0-816c-4ee5-a995-af6f5307e996","request":"GET_STATUS","
>> hvm":true,"description":"centos5","maxDownloadSizeInBytes":5368709120
>> 0,"id":208,"resourceType":"TEMPLATE","installPath":"template/tmpl/2/2
>> 08","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://
>>> 172.16.16.10/data/vol2","_role":"Image"}},"url":"
>>> http://download.cloud.com/templates/builtin/centos56-x86_64.vhd.bz2
>>>
>> ","format":"VHD","accountId":2,"name":"208-2-208845e9-fb06-378f-aced-
>> 024455fb2bff","secUrl":"nfs://
>>> 172.16.16.10/data/vol2","wait":0}}] }
>>> 2013-10-04 10:22:41,415 DEBUG [agent.transport.Request]
>>> (AgentManager-Handler-15:null) Seq 8-1364983880: Processing:  { Ans: 
>>> ,
>>> MgmtId: 2839826851498, via: 8, Ver: v1, Flags: 10,
>>>
>> [{"com.cloud.agent.api.storage.DownloadAnswer":{"jobId":"bc01b7a0-816c-4ee5-a995-af6f5307e996","downloadPct":0,"errorString":"
>>>
>> ","downloadStatus":"NOT_DOWNLOADED","downloadPath":"/mnt/SecStorage/5d2b6999-a3ea-3953-839c-72e39cc520b4/template/tmpl/2/208/dnld4425529190918652935tmp_","installPath":"template/tmpl/2/208","templateSize":0,"templatePhySicalSize":0,"result":true,"details":"
>>> ","wait":0}}] }
>>>
>>>
>>>
>>> I have run sysvmcheck script on ssvm and all checks passed without
>> showing
>>> any sign of warning or errors.
>>>
>>
>> Can you share the output of ssvm-check.sh?
>>
>>
>>> Please advise
>>>
>>> Thank you
>>
>> --
>> @shankerbalan
>>
>> M: +91 98860 60539 | O: +91 (80) 67935867 shanker.ba...@shapeblue.com 
>> | www.shapeblue.com | Twitter:@shapeblue ShapeBlue Services India 
>> LLP, 22nd floor, Unit 2201A, World Trade Centre, Bangalore - 560 055
>>
>> CloudStack Bootcamp Training on 27/28 November, Bangalore 
>> http://www.shapeblue.com/cloudstack-training/
>>
>>
>>
>>
>> This email and any attachments to it may be confidential and are 
>> intended solely for the use of the individual to whom it is 
>> addressed. Any views or opinions expressed are solely those of the 
>> author and do not necessarily represent those of Shape Blue Ltd or 
>> related companies. If you are not the intended recipient of this 
>> email, you must neither take any action based upon its contents, nor 
>> copy or show it to anyone. Please contact the sender if you believe 
>> you have received this email in error. Shape Blue Ltd is a company 
>> incorporated in England & Wales. ShapeBlue Services India LLP is a 
>> company incorporated in India and is operated under license from 
>> Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company 
>> incorporated in Brasil and is operated under license from Shape Blue Ltd. 
>> ShapeBlue is a registered trademark.
>>

--
@shankerbalan

M: +91 98860 60539 | O: +91 (80) 67935867 shanker.ba...@shapeblue.com | 
www.shapeblue.com | Twitter:@shapeblue ShapeBlue Services India LLP, 22nd 
floor, Unit 2201A, World Trade Centre, Bangalore - 560 055

CloudStack Bootcamp Training on 27/28 November, Bangalore 
http://www.shapeblue.com/cloudstack-training/




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

Reply via email to