cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Min Chen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-1764) ListTemplateCommand failed with java.lang.NumberFormatException and failed to create default template
Date Thu, 21 Mar 2013 22:07:16 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-1764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13609571#comment-13609571
] 

Min Chen commented on CLOUDSTACK-1764:
--------------------------------------

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.
                
> 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
>            Assignee: Min Chen
>            Priority: Blocker
>             Fix For: 4.1.0
>
>         Attachments: apilog.log, management-server.log
>
>
> Steps to reproduce 
> Step 1 : Create new build from 4.1 build
> Step 2 : Install and configure basic 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

Mime
View raw message