[ https://issues.apache.org/jira/browse/CLOUDSTACK-9528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15569574#comment-15569574 ]
Paul Angus commented on CLOUDSTACK-9528: ---------------------------------------- Further details... selected output from cloud.out on SSVM (Full output attached) SSVM starts on download 2016-10-12 16:34:40,376 INFO [storage.template.HttpTemplateDownloader] (pool-1-thread-1:null) Starting download from http://10.2.0.4/builtin_templates/centos56-x86_64.vhd.bz2 to /mnt/SecStorage/29b1cc76-695a-342e-859f-c382eaf1f5c7/template/tmpl/1/5/dnld3794940004367709692tmp_ remoteSize=374730926 , max size=53687091200 SSVM decides that it needs to configure itself again (I don’t know if this is relevant) 2016-10-12 16:35:30,467 DEBUG [cloud.agent.Agent] (Agent-Handler-1:null) Sending Startup: Seq 4-6: { Cmd , MgmtId: -1, via: 4, Ver: v1, Flags: 101, [{"com.cloud.agent.api.StartupSecondaryStorageCommand":{"type":"SecondaryStorage","dataCenter":"1","pod":"1","guid":"s-2-VM-PremiumSecondaryStorageResource","name":"s-2-VM","id":4,"version":"4.8.2.0-SNAPSHOT","iqn":"NoIqn","publicIpAddress":"10.1.34.222","publicNetmask":"255.255.224.0","publicMacAddress":"06:29:cc:00:00:02","privateIpAddress":"10.2.5.240","privateMacAddress":"06:28:b2:00:00:28","privateNetmask":"255.255.0.0","storageIpAddress":"10.2.5.240","storageNetmask":"255.255.0.0","storageMacAddress":"06:28:b2:00:00:28","resourceName":"PremiumSecondaryStorageResource","wait":0}}] } 2016-10-12 16:35:30,467 DEBUG [cloud.agent.Agent] (Agent-Handler-1:null) Startup task created SSVM decides that it should be doing something with the (partial download) which fails 2016-10-12 16:35:33,056 INFO [storage.template.DownloadManagerImpl] (agentRequest-Handler-5:null) found 2 templates[/mnt/SecStorage/29b1cc76-695a-342e-859f-c382eaf1f5c7/template/tmpl/1/1/63211e01-fb1b-4aaa-99a3-a89752e7e359.vhd, /mnt/SecStorage/29b1cc76-695a-342e-859f-c382eaf1f5c7/template/tmpl/1/5/] 2016-10-12 16:35:33,070 WARN [storage.template.DownloadManagerImpl] (agentRequest-Handler-5:null) Post download installation was not completed for /mnt/SecStorage/29b1cc76-695a-342e-859f-c382eaf1f5c7/template/tmpl/1/5 SSVM starts another download (original still running) 2016-10-12 16:35:33,871 INFO [storage.template.HttpTemplateDownloader] (pool-1-thread-2:null) Starting download from http://10.2.0.4/builtin_templates/centos56-x86_64.vhd.bz2 to /mnt/SecStorage/29b1cc76-695a-342e-859f-c382eaf1f5c7/template/tmpl/1/5/dnld1644621996309644902tmp_ remoteSize=374730926 , max size=53687091200 Both complete [{"com.cloud.agent.api.storage.DownloadAnswer":{"jobId":"f6907910-c270-42ac-ac3a-71321e3f4985","downloadPct":100,"errorString":"Install completed successfully at 10/12/16 4:37 PM","downloadStatus":"DOWNLOADED","downloadPath":"/mnt/SecStorage/29b1cc76-695a-342e-859f-c382eaf1f5c7/template/tmpl/1/5/dnld3794940004367709692tmp_","installPath":"template/tmpl/1/5/d81e84fa-8a3a-3d0e-a49e-cf96df1f5f29.vhd","templateSize":21474836480,"templatePhySicalSize":1758786048,"checkSum":"905cec879afd9c9d22ecc8036131a180","result":true,"details":"Install completed successfully at 10/12/16 4:37 PM","wait":0}}] } 2016-10-12 16:37:57,210 DEBUG [cloud.agent.Agent] (agentRequest-Handler-5:null) Seq 4-809803507996557337: { Ans: , MgmtId: 7133705865077, via: 4, Ver: v1, Flags: 10, [{"com.cloud.agent.api.storage.DownloadAnswer":{"jobId":"6a8e5ff2-f0fd-4b63-b707-9c8efe35e300","downloadPct":100,"errorString":"Install completed successfully at 10/12/16 4:37 PM","downloadStatus":"DOWNLOADED","downloadPath":"/mnt/SecStorage/29b1cc76-695a-342e-859f-c382eaf1f5c7/template/tmpl/1/5/dnld1644621996309644902tmp_","installPath":"template/tmpl/1/5/7ee176e4-8223-3f6e-9054-f878de94f998.vhd","templateSize":21474836480,"templatePhySicalSize":1758786048,"checkSum":"905cec879afd9c9d22ecc8036131a180","result":true,"details":"Install completed successfully at 10/12/16 4:37 PM","wait":0}}] } > SSVM Downloads (built-in) template multiple times > ------------------------------------------------- > > Key: CLOUDSTACK-9528 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9528 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Management Server, Secondary Storage, XenServer > Affects Versions: 4.8.1, 4.9.0 > Environment: ACS 4.9 with XenServer 6.5SP1 > Reporter: Paul Angus > Labels: 4.8.2.0-smoke-test-failure > Fix For: 4.10.0.0, 4.9.1.0, 4.8.2.0 > > Attachments: Capture.PNG, Capture2 (1).PNG > > > SSVM under XenServer 6.5SP1 and ACS 4.9 was found to download the built-in > template multiple times (concurrently). > Once this has happened the built-in template could not be used to deploy VMs > as couldstack found 2 VHDs in the directory and threw an insufficient > capacity exception. > The template was being downloaded locally (at 35MB/s) with no drop outs. > There are in fact multiple issues here: > 1. SSVM not behaving properly and downloading mulitple copies. > 2. Why is cloudstack 'blindly' looking in a directory for a VHD to pick up. > The full path and filename of the VHD is in its data base, it should use it. > 3. what is template.properties for? the filename is contained within it, as > is an MDSUM to check for consistency > 4. the filename in template.properties is different to the one in the > database. -- This message was sent by Atlassian JIRA (v6.3.4#6332)