[
https://issues.apache.org/jira/browse/CLOUDSTACK-4468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13748895#comment-13748895
]
Min Chen commented on CLOUDSTACK-4468:
--------------------------------------
That is because ListTemplateCommand returned from ssvm shows that the template
is not in your secondary storage anymore:
2013-08-23 01:31:16,455 DEBUG [agent.transport.Request]
(AgentManager-Handler-15:null) Seq 19-384434181: Processing: { Ans: , MgmtId:
6755849339011, via: 19, Ver: v1, Flags: 110,
[{"com.cloud.agent.api.storage.ListTemplateAnswer":{"secUrl":"nfs://10.147.28.7/export/home/shweta/304patch1.vmware.secondary","templateInfos":{"205-2-9aac019d-1c92-36a1-a29d-d89c521101a0":{"templateName":"205-2-9aac019d-1c92-36a1-a29d-d89c521101a0","installPath":"template/tmpl/2/205/df0eb579-39f6-343c-b726-7091c5d484bc.ova","size":171798691840,"physicalSize":1082030592,"id":205,"isPublic":true,"isCorrupted":false},"295f244ab-d0ec-3a71-9545-e73ff34e03ee":{"templateName":"295f244ab-d0ec-3a71-9545-e73ff34e03ee","installPath":"template/tmpl/2/209/295f244ab-d0ec-3a71-9545-e73ff34e03ee.ova","size":2147483648,"physicalSize":481095680,"id":209,"isPublic":false,"isCorrupted":false},"2e7740f0-bf75-4b69-963d-267d4d9cb433":{"templateName":"2e7740f0-bf75-4b69-963d-267d4d9cb433","installPath":"template/tmpl/2/214/2e7740f0-bf75-4b69-963d-267d4d9cb433.ova","size":2147483648,"physicalSize":494355968,"id":214,"isPublic":false,"isCorrupted":false},"202-2-d0b7f194-a096-3dd3-b9fa-7fb26ed627a7":{"templateName":"202-2-d0b7f194-a096-3dd3-b9fa-7fb26ed627a7","installPath":"template/tmpl/2/202/5a1201b7-e458-32c9-aede-dbf9cf3e14d0.ova","size":2097152000,"physicalSize":283761664,"id":202,"isPublic":true,"isCorrupted":false},"centos53-x64":{"templateName":"centos53-x64","installPath":"template/tmpl/1/7/d9aab887-eba9-34cf-8b02-67aa24fc14b3.ova","size":2147483648,"physicalSize":459320832,"id":7,"isPublic":true,"isCorrupted":false}},"result":true,"details":"success","wait":0}}]
}
You need to check your secondary storage
nfs://10.147.28.7/export/home/shweta/304patch1.vmware.secondary to see if your
template 204 is still there.
> template created from snapshot is destroyed once we restart management server
> -----------------------------------------------------------------------------
>
> Key: CLOUDSTACK-4468
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4468
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Template
> Affects Versions: 4.2.1
> Environment: NFS secondary storage with advance zone
> Reporter: shweta agarwal
> Assignee: Min Chen
> Priority: Blocker
> Fix For: 4.2.1
>
> Attachments: template_management-server.tar.gz
>
>
> Repro steps:
> Create a VM
> Create snapshot fo the disk
> create template from the snapshot
> Once template created in above step is ready restart the MS
> bug:
> notice Template is no more in ready status .. neither in downloading status
> Ms log snippet shows :
> DB before Ms restart shows following entries in
> Vm_template shows following entry
> "id" "unique_name" "name" "uuid" "public" "featured" "type"
> "hvm" "bits" "url" "format" "created" "removed"
> "account_id" "checksum" "display_text" "enable_password"
> "enable_sshkey" "guest_os_id" "bootable" "prepopulate" "cross_zones"
> "extractable" "hypervisor_type" "source_template_id"
> "template_tag" "sort_key" "size" "state" "update_count" "updated"
> "dynamically_scalable"
> "214" "23a5fabb6-2b4b-356c-9da6-a1f3e8432d43" "from-snap-error"
> "01e906a8-4a6a-4c5b-ace1-0dc1a4dfbb8e" "0" "0" "USER" "1" "64"
> "" "OVA" "2013-08-23 05:19:57" "" "2" ""
> "from-snap-error" "0" "0" "161" "1" "0" "0" "0"
> "VMware" "" "" "0" "2147483648" "" "0" ""
> "0"
> template store ref table for id 214 :
> "id" "store_id" "template_id" "created" "last_updated"
> "job_id" "download_pct" "size" "store_role" "physical_size"
> "download_state" "error_str" "local_path" "install_path" "url"
> "download_url" "download_url_created" "state" "destroyed" "is_copy"
> "update_count" "ref_cnt" "updated"
> "24" "6" "214" "2013-08-23 05:19:57" "" "" "100"
> "2147483648" "Image" "494355968" "DOWNLOADED" "" ""
> "template/tmpl/2/214/2e7740f0-bf75-4b69-963d-267d4d9cb433.ova" "" ""
> "" "Ready" "0" "0" "2" "0" "2013-08-23 05:20:12"
> Ms log snippet after Ms restart :
> 2013-08-23 01:31:17,512 INFO [storage.image.TemplateServiceImpl]
> (AgentConnectTaskPool-1:null) Template Sync found
> 295f244ab-d0ec-3a71-9545-e73ff34e03ee already in the image store
> 2013-08-23 01:31:17,525 INFO [storage.image.TemplateServiceImpl]
> (AgentConnectTaskPool-1:null) Template Sync did not find
> 23a5fabb6-2b4b-356c-9da6-a1f3e8432d43 on image store 6, may request download
> based on available hypervisor types
> 2013-08-23 01:31:17,525 INFO [storage.image.TemplateServiceImpl]
> (AgentConnectTaskPool-1:null) Removing leftover template
> 23a5fabb6-2b4b-356c-9da6-a1f3e8432d43 entry from template store table
> DB after Ms restart :
> vm_template :
> "id" "unique_name" "name" "uuid" "public" "featured" "type"
> "hvm" "bits" "url" "format" "created" "removed"
> "account_id" "checksum" "display_text" "enable_password"
> "enable_sshkey" "guest_os_id" "bootable" "prepopulate" "cross_zones"
> "extractable" "hypervisor_type" "source_template_id"
> "template_tag" "sort_key" "size" "state" "update_count" "updated"
> "dynamically_scalable"
> "214" "23a5fabb6-2b4b-356c-9da6-a1f3e8432d43" "from-snap-error"
> "01e906a8-4a6a-4c5b-ace1-0dc1a4dfbb8e" "0" "0" "USER" "1" "64"
> "" "OVA" "2013-08-23 05:19:57" "" "2" ""
> "from-snap-error" "0" "0" "161" "1" "0" "0" "0"
> "VMware" "" "" "0"
> "2147483648" "" "0" "" "0"
> Template_store_ref shows no entry for following query:
> select * from template_store_ref where template_id=214
--
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