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 AA18C200D2F for ; Wed, 1 Nov 2017 19:28:10 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A8A24160BEA; Wed, 1 Nov 2017 18:28:10 +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 EEFA81609EC for ; Wed, 1 Nov 2017 19:28:09 +0100 (CET) Received: (qmail 99881 invoked by uid 500); 1 Nov 2017 18:28:04 -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 99870 invoked by uid 500); 1 Nov 2017 18:28:04 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 99867 invoked by uid 99); 1 Nov 2017 18:28:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Nov 2017 18:28:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 53B4AC7174 for ; Wed, 1 Nov 2017 18:28:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id NCpzCEh0tWVS for ; Wed, 1 Nov 2017 18:28:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 83A2360F75 for ; Wed, 1 Nov 2017 18:28:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 867B1E0E80 for ; Wed, 1 Nov 2017 18:28:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3630F212F6 for ; Wed, 1 Nov 2017 18:28:00 +0000 (UTC) Date: Wed, 1 Nov 2017 18:28:00 +0000 (UTC) From: "Marcelo Lima (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CLOUDSTACK-10128) Template from snapshot not merging vhd files MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 01 Nov 2017 18:28:10 -0000 Marcelo Lima created CLOUDSTACK-10128: ----------------------------------------- Summary: Template from snapshot not merging vhd files Key: CLOUDSTACK-10128 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-10128 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the default.) Components: Management Server Affects Versions: 4.5.2.2, 4.10.0.0, 4.9.2.0, 4.9.3.0 Environment: Production environment running ACS 4.5.2.2, 4.9.2.0, 4.9.3.0 XenServer 6.5 Primary Storage NFS and ISCSI Fresh install running 4.5.2.2, 4.9.2.0, 4.9.3.0 and 4.10 Reporter: Marcelo Lima Priority: Critical If we have two or more snapshots of a ROOT disk and try to create a template from differencial snapshots, CloudStack not merging the vhd files on secondary storage. Steps to reproduce 1. Create virtual machine - OK 2. Create a manual snapshot from ROOT volume - OK The vhd of first snapshot (snapshot-base) is stored on secondary storage correctly [root@acs01 6]# ls -l /exports/secondary/snapshots/2/6/011a7650-a13f-4332-8c72-2428a002affc.vhd -rw-r--r-- 1 root root 1767191040 Nov 1 12:12 /exports/secondary/snapshots/2/6/011a7650-a13f-4332-8c72-2428a002affc.vhd [root@acs01 6]# md5sum /exports/secondary/snapshots/2/6/011a7650-a13f-4332-8c72-2428a002affc.vhd 240e5e424552d44b5d297895b064beee /exports/secondary/snapshots/2/6/011a7650-a13f-4332-8c72-2428a002affc.vhd 3. Create a template from snapshot-base - OK [root@acs01 6]# ls -l /exports/secondary/template/tmpl/2/206/be3311d9-8e59-4240-968d-73d7a6eecfdd.vhd -rw-r--r-- 1 root root 1767191040 Nov 1 12:17 /exports/secondary/template/tmpl/2/206/be3311d9-8e59-4240-968d-73d7a6eecfdd.vhd [root@acs01 6]# md5sum /exports/secondary/template/tmpl/2/206/be3311d9-8e59-4240-968d-73d7a6eecfdd.vhd 240e5e424552d44b5d297895b064beee /exports/secondary/template/tmpl/2/206/be3311d9-8e59-4240-968d-73d7a6eecfdd.vhd This template from snapshot-base boot normally 4. Create new file (1GB) on ROOT volume 5. Create new snapshot (snapshot-diff) from ROOT volume - OK [root@acs01 6]# ls -l /exports/secondary/snapshots/2/6/ total 2840056 -rw-r--r-- 1 root root 1767191040 Nov 1 12:12 011a7650-a13f-4332-8c72-2428a002affc.vhd <- snapshot-base -rw-r--r-- 1 root root 1141019136 Nov 1 12:21 1503adaa-4f6e-4f9c-8d80-68663baa86b8.vhd <- snapshot-diff 6. Create a template from second snapshot - NOK [root@acs01 6]# ls -lh /exports/secondary/template/tmpl/2/207/4c5c51a1-fcb4-4cc8-8f97-1664a63af262.vhd -rw-r--r-- 1 root root 1141019136 Nov 1 12:30 /exports/secondary/template/tmpl/2/207/4c5c51a1-fcb4-4cc8-8f97-1664a63af262.vhd CloudStack not merging snapshot-base and snapshot-diff. Template from second snapshot is corrupted because is based just on differential vhd. Volume from snapshot work very well 1. Create a volume from snapshot-diff - OK CloudStack merge two snapshots in one file [root@acs01 primary]# ls -l /exports/primary/70f1db23-cc59-4ec7-b8d4-ed036228593b.vhd -rw-r--r-- 1 root root 2843030016 Nov 1 12:34 /exports/primary/70f1db23-cc59-4ec7-b8d4-ed036228593b.vhd 2. Download the new volume to check vhd on secondary storage [root@acs01 9]# ls -l /exports/secondary/volumes/2/9/ec6e0f65-bb71-4c91-bac3-287cde2106b7.vhd -rw-r--r-- 1 root root 2843030016 Nov 1 12:35 /exports/secondary/volumes/2/9/ec6e0f65-bb71-4c91-bac3-287cde2106b7.vhd We test on 4.5.2.2, 4.9.2.0, 4.9.3.0 and 4.10. XenServer 6.5 with SP1 and XenServer 6.5 with all patches. A workaround is create a volume (data-disk) from latest snapshot, create new snapshot from data-disk and convert to template. -- This message was sent by Atlassian JIRA (v6.4.14#64029)