Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A03EF200BF3 for ; Thu, 1 Dec 2016 06:44:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 38691160B21; Thu, 1 Dec 2016 05:44:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 294EC160B19 for ; Thu, 1 Dec 2016 06:44:00 +0100 (CET) Received: (qmail 28215 invoked by uid 500); 1 Dec 2016 05:43:58 -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 28205 invoked by uid 500); 1 Dec 2016 05:43:58 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 28202 invoked by uid 99); 1 Dec 2016 05:43:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2016 05:43:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7975A2C1F54 for ; Thu, 1 Dec 2016 05:43:58 +0000 (UTC) Date: Thu, 1 Dec 2016 05:43:58 +0000 (UTC) From: "Sudhansu Sahu (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CLOUDSTACK-9637) Template create from snapshot does not populate vm_template_details MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 01 Dec 2016 05:44:01 -0000 Sudhansu Sahu created CLOUDSTACK-9637: ----------------------------------------- Summary: Template create from snapshot does not populate vm_template_details Key: CLOUDSTACK-9637 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9637 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the default.) Components: Management Server Affects Versions: 4.8.0 Environment: VMware ESX , CS 4.8.0 Reporter: Sudhansu Sahu ISSUE ============ Template create from snapshot does not populate vm_template_details TROUBLESHOOTING ================== {noformat} mysql> select id,name,uuid,instance_name,vm_template_id from vm_instance where uuid='453313f5-ef97-461a-94f5-0838617fe826' -> ; +----+-------+--------------------------------------+---------------+----------------+ | id | name | uuid | instance_name | vm_template_id | +----+-------+--------------------------------------+---------------+----------------+ | 9 | vm001 | 453313f5-ef97-461a-94f5-0838617fe826 | i-2-9-VM | 202 | +----+-------+--------------------------------------+---------------+----------------+ 1 row in set (0.00 sec) mysql> select id,name,source_template_id from vm_template where id=202; +-----+--------+--------------------+ | id | name | source_template_id | +-----+--------+--------------------+ | 202 | Debian | NULL | +-----+--------+--------------------+ 1 row in set (0.00 sec) mysql> select * from vm_template_details where template_id=202; +----+-------------+--------------------+-------+---------+ | id | template_id | name | value | display | +----+-------------+--------------------+-------+---------+ | 1 | 202 | keyboard | us | 1 | | 2 | 202 | nicAdapter | E1000 | 1 | | 3 | 202 | rootDiskController | scsi | 1 | +----+-------------+--------------------+-------+---------+ 3 rows in set (0.00 sec) mysql> select id,name,source_template_id from vm_template where source_template_id=202; +-----+----------------+--------------------+ | id | name | source_template_id | +-----+----------------+--------------------+ | 203 | derived-debian | 202 | +-----+----------------+--------------------+ 1 row in set (0.00 sec) mysql> select * from vm_template_details where template_id=203; Empty set (0.00 sec) {noformat} REPRO STEPS ================== 1. Register a template A and specify property: Root disk controller: scsi NIC adapter type: vmxnet3 Keyboard type: Japanese 2. Create a vm instance from template A 3. Take volume snapshot for vm instance 4. Delete VM instance 5. Switch to "Storage->Snapshots", convert snapshot to a template B 6. Observe template B does not inherit property from template A, the table vm_template_details is empty EXPECTED BEHAVIOR ================== Template should inherit property from source template ACTUAL BEHAVIOR ================== Detail template property lost -- This message was sent by Atlassian JIRA (v6.3.4#6332)