Rayees Namathponnan created CLOUDSTACK-1764:
-----------------------------------------------
Summary: ListTemplateCommand failed with
java.lang.NumberFormatException and failed to create default template
Key: CLOUDSTACK-1764
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1764
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Components: Template
Affects Versions: 4.1.0
Environment: 4.1 build.
Faced this issue with KVM setup, not tested with other hypervisors
Reporter: Rayees Namathponnan
Priority: Blocker
Fix For: 4.1.0
Steps to reproduce
Step 1 : Create new build from 4.1 build
Step 2 : Install and configure advanced zone in KVM
Actual result
System vm are created, but default templates not downloaded
Please see the MS log
2013-03-21 04:40:07,975 DEBUG [agent.transport.Request]
(AgentConnectTaskPool-4:null) Seq 5-190185476: Sending { Cmd , MgmtId:
73187150500751, via: 5, Ver: v1, Flags: 100111,
[{"storage.ListTemplateCommand":{"secUrl":"nfs://10.223.110.232:/export/home/automation/SC_QA_AUTO5/secondary1","wait":0}}]
}
2013-03-21 04:40:08,130 DEBUG [agent.transport.Request]
(AgentManager-Handler-10:null) Seq 5-190185476: Processing: { Ans: , MgmtId:
73187150500751, via: 5, Ver: v1, Flags: 110,
[{"Answer":{"result":false,"details":"java.lang.NumberFormatException: For
input string: \"NULL\"\n\tat
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)\n\tat
java.lang.Long.parseLong(Long.java:410)\n\tat
java.lang.Long.parseLong(Long.java:468)\n\tat
com.cloud.storage.template.TemplateLocation.getTemplateInfo(TemplateLocation.java:161)\n\tat
com.cloud.storage.template.DownloadManagerImpl.gatherTemplateInfo(DownloadManagerImpl.java:744)\n\tat
com.cloud.storage.resource.NfsSecondaryStorageResource.execute(NfsSecondaryStorageResource.java:1118)\n\tat
com.cloud.storage.resource.NfsSecondaryStorageResource.executeRequest(NfsSecondaryStorageResource.java:191)\n\tat
com.cloud.agent.Agent.processRequest(Agent.java:525)\n\tat
com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:852)\n\tat
com.cloud.utils.nio.Task.run(Task.java:83)\n\tat
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)\n\tat
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)\n\tat
java.lang.Thread.run(Thread.java:662)\n","wait":0}}] }
2013-03-21 04:40:08,130 DEBUG [agent.manager.AgentAttache]
(AgentManager-Handler-10:null) Seq 5-190185476: No more commands found
2013-03-21 04:40:08,130 DEBUG [agent.transport.Request]
(AgentConnectTaskPool-4:null) Seq 5-190185476: Received: { Ans: , MgmtId:
73187150500751, via: 5, Ver: v1, Flags: 110, { Answer } }
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(TemplateLocation.java:161)
at
com.cloud.storage.template.DownloadManagerImpl.gatherTemplateInfo(DownloadManagerImpl.java:744)
at
com.cloud.storage.resource.NfsSecondaryStorageResource.execute(NfsSecondaryStorageResource.java:1118)
at
com.cloud.storage.resource.NfsSecondaryStorageResource.executeRequest(NfsSecondaryStorageResource.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)
2013-03-21 04:40:08,130 DEBUG [storage.download.DownloadMonitorImpl]
(AgentConnectTaskPool-4:null) can not list template for secondary storage host
3
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira