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 D83A010F55 for ; Mon, 26 Aug 2013 18:55:58 +0000 (UTC) Received: (qmail 97904 invoked by uid 500); 26 Aug 2013 18:55:56 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 97340 invoked by uid 500); 26 Aug 2013 18:55:55 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 97139 invoked by uid 500); 26 Aug 2013 18:55:54 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 96941 invoked by uid 99); 26 Aug 2013 18:55:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Aug 2013 18:55:52 +0000 Date: Mon, 26 Aug 2013 18:55:52 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-4468) template created from snapshot is destroyed once we restart management server MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-4468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13750402#comment-13750402 ] ASF subversion and git services commented on CLOUDSTACK-4468: ------------------------------------------------------------- Commit f0000814bdfd404749bd1cbf4209fedc9a9d0f22 in branch refs/heads/4.2-forward from [~minchen07] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=f000081 ] CLOUDSTACK-4468:template created from snapshot is destroyed once we restart management server. > 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