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

Animesh Chaturvedi commented on CLOUDSTACK-4468:
------------------------------------------------

Min can you check on this issue
                
> 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
>            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

Reply via email to