Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 25407FA4D for ; Thu, 21 Mar 2013 22:07:17 +0000 (UTC) Received: (qmail 63679 invoked by uid 500); 21 Mar 2013 22:07:17 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 63622 invoked by uid 500); 21 Mar 2013 22:07:16 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 63611 invoked by uid 500); 21 Mar 2013 22:07:16 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 63608 invoked by uid 99); 21 Mar 2013 22:07:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Mar 2013 22:07:16 +0000 Date: Thu, 21 Mar 2013 22:07:16 +0000 (UTC) From: "Min Chen (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-1764) ListTemplateCommand failed with java.lang.NumberFormatException and failed to create default template MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-1764?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D13609571#comment-13609571 ]=20 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=3Dc0c94bfc-15c2-4e7f-9a2e-aec541df4cc1.qcow2 description=3DSystemVM Template checksum=3D hvm=3Dfalse size=3D741212160 qcow2=3Dtrue id=3DNULL public=3Dtrue qcow2.filename=3Dc0c94bfc-15c2-4e7f-9a2e-aec541df4cc1.qcow2 uniquename=3Drouting-NULL qcow2.virtualsize=3D741212160 virtualsize=3D741212160 qcow2.size=3D741212160 Here, we cannot have id=3DNULL in template.properties. That is why we throw NumberFormatException. =20 > ListTemplateCommand failed with java.lang.NumberFormatException and faile= d to create default template=20 > -------------------------------------------------------------------------= ----------------------------- > > Key: CLOUDSTACK-1764 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-176= 4 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Components: Template > Affects Versions: 4.1.0 > Environment: 4.1 build. > Faced this issue with KVM setup, not tested with other hypervisors=20 > Reporter: Rayees Namathponnan > Assignee: Min Chen > Priority: Blocker > Fix For: 4.1.0 > > Attachments: apilog.log, management-server.log > > > Steps to reproduce=20 > Step 1 : Create new build from 4.1 build > Step 2 : Install and configure basic zone in KVM=20 > Actual result=20 > System vm are created, but default templates not downloaded=20 > Please see the MS log > 2013-03-21 04:40:07,975 DEBUG [agent.transport.Request] (AgentConnectTask= Pool-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-Han= dler-10:null) Seq 5-190185476: Processing: { Ans: , MgmtId: 73187150500751= , via: 5, Ver: v1, Flags: 110, [{"Answer":{"result":false,"details":"java.l= ang.NumberFormatException: For input string: \"NULL\"\n\tat java.lang.Numbe= rFormatException.forInputString(NumberFormatException.java:48)\n\tat java.l= ang.Long.parseLong(Long.java:410)\n\tat java.lang.Long.parseLong(Long.java:= 468)\n\tat com.cloud.storage.template.TemplateLocation.getTemplateInfo(Temp= lateLocation.java:161)\n\tat com.cloud.storage.template.DownloadManagerImpl= .gatherTemplateInfo(DownloadManagerImpl.java:744)\n\tat com.cloud.storage.r= esource.NfsSecondaryStorageResource.execute(NfsSecondaryStorageResource.jav= a:1118)\n\tat com.cloud.storage.resource.NfsSecondaryStorageResource.execut= eRequest(NfsSecondaryStorageResource.java:191)\n\tat com.cloud.agent.Agent.= processRequest(Agent.java:525)\n\tat com.cloud.agent.Agent$AgentRequestHand= ler.doTask(Agent.java:852)\n\tat com.cloud.utils.nio.Task.run(Task.java:83)= \n\tat java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExe= cutor.java:886)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(Th= readPoolExecutor.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] (AgentConnectTask= Pool-4:null) Seq 5-190185476: Received: { Ans: , MgmtId: 73187150500751, v= ia: 5, Ver: v1, Flags: 110, { Answer } } > 2013-03-21 04:40:08,130 DEBUG [agent.manager.AgentManagerImpl] (AgentConn= ectTaskPool-4:null) Details from executing class com.cloud.agent.api.storag= e.ListTemplateCommand: java.lang.NumberFormatException: For input string: "= NULL" > =09at java.lang.NumberFormatException.forInputString(NumberFormatExceptio= n.java:48) > =09at java.lang.Long.parseLong(Long.java:410) > =09at java.lang.Long.parseLong(Long.java:468) > =09at com.cloud.storage.template.TemplateLocation.getTemplateInfo(Templat= eLocation.java:161) > =09at com.cloud.storage.template.DownloadManagerImpl.gatherTemplateInfo(D= ownloadManagerImpl.java:744) > =09at com.cloud.storage.resource.NfsSecondaryStorageResource.execute(NfsS= econdaryStorageResource.java:1118) > =09at com.cloud.storage.resource.NfsSecondaryStorageResource.executeReque= st(NfsSecondaryStorageResource.java:191) > =09at com.cloud.agent.Agent.processRequest(Agent.java:525) > =09at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:852) > =09at com.cloud.utils.nio.Task.run(Task.java:83) > =09at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolEx= ecutor.java:886) > =09at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecut= or.java:908) > =09at java.lang.Thread.run(Thread.java:662) > 2013-03-21 04:40:08,130 DEBUG [storage.download.DownloadMonitorImpl] (Age= ntConnectTaskPool-4:null) can not list template for secondary storage host = 3 =20 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira