On Thu, Mar 21, 2013 at 03:03:43PM -0700, Min Chen wrote: > This is not an issue with code, template.properties in QA secondary > storage folder is incorrect, see below: > > [root@nfs2 3]# more template.properties > filename=c0c94bfc-15c2-4e7f-9a2e-aec541df4cc1.qcow2 > description=SystemVM Template > checksum= > hvm=false > size=741212160 > qcow2=true > id=NULL > public=true > qcow2.filename=c0c94bfc-15c2-4e7f-9a2e-aec541df4cc1.qcow2 > uniquename=routing-NULL > qcow2.virtualsize=741212160 > virtualsize=741212160 > qcow2.size=741212160 > > > Here, we cannot have id=NULL in template.properties. That is why we throw > NumberFormatException. I will mark this bug "Not a Bug".
I like those types of bugs! They are easier to resolve... Thanks Min! > > Thanks > -min > > > > On 3/21/13 1:25 PM, "Chip Childers" <chip.child...@sungard.com> wrote: > > >Hi all, > > > >KVM agent dev folks - We need someone to take on CLOUDSTACK-1764 please! > > > >Summary: > > > >ListTemplateCommand failed with java.lang.NumberFormatException and > >failed to create default template > > > >The relevant part of the log seems to show that it's in the agent: > > > >2013-03-21 04:40:08,130 DEBUG [agent.manager.AgentManagerImpl] > >(AgentConnectTaskPool-4:null) Details from executing class > >com.cloud.agent.api.storage.ListTemplateCommand: > >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(TemplateLocati > >on.java:161) > >at > >com.cloud.storage.template.DownloadManagerImpl.gatherTemplateInfo(Download > >ManagerImpl.java:744) > >at > >com.cloud.storage.resource.NfsSecondaryStorageResource.execute(NfsSecondar > >yStorageResource.java:1118) > >at > >com.cloud.storage.resource.NfsSecondaryStorageResource.executeRequest(NfsS > >econdaryStorageResource.java:191) > >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) > > > > > >Anyone can assign the bug to themselves! > > > >-chip > >