From issues-return-89042-archive-asf-public=cust-asf.ponee.io@cloudstack.apache.org Thu Jan 11 18:43:05 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id C8474180656 for ; Thu, 11 Jan 2018 18:43:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B6D41160C23; Thu, 11 Jan 2018 17:43:05 +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 D66FD160C13 for ; Thu, 11 Jan 2018 18:43:04 +0100 (CET) Received: (qmail 72819 invoked by uid 500); 11 Jan 2018 17:43: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 72810 invoked by uid 500); 11 Jan 2018 17:43:03 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 72807 invoked by uid 99); 11 Jan 2018 17:43:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jan 2018 17:43:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 84D941807AB for ; Thu, 11 Jan 2018 17:43:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -107.911 X-Spam-Level: X-Spam-Status: No, score=-107.911 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id RnHH1ciwEDDg for ; Thu, 11 Jan 2018 17:43: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 59CA55F58B for ; Thu, 11 Jan 2018 17:43: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 81808E0F23 for ; Thu, 11 Jan 2018 17:43: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 34782240C6 for ; Thu, 11 Jan 2018 17:43:00 +0000 (UTC) Date: Thu, 11 Jan 2018 17:43:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-10128) Template from snapshot not merging vhd files MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-10128?page=3Dcom.atl= assian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D16322633#comment-16322633 ]=20 ASF GitHub Bot commented on CLOUDSTACK-10128: --------------------------------------------- rafaelweingartner commented on issue #2402: [CLOUDSTACK-10128] Simplify the= search for host to execute command URL: https://github.com/apache/cloudstack/pull/2402#issuecomment-357004830 =20 =20 @mike-tutkowski Welcome! I should thank you for the help ;) =20 Travis is failing, but I have not yet figured out why. It looks like a t= imeout thing. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. =20 For queries about this service, please contact Infrastructure at: users@infra.apache.org > Template from snapshot not merging vhd files > -------------------------------------------- > > Key: CLOUDSTACK-10128 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-101= 28 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Components: Management Server > Affects Versions: 4.10.0.0, 4.9.2.0, 4.5.2.2, 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 > Assignee: Rafael Weing=C3=A4rtner > Priority: Critical > Fix For: 4.11.0.0 > > > If we have two or more snapshots of a ROOT disk and try to create a templ= ate from differencial snapshots, CloudStack not merging the vhd files on se= condary 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=20 > -rw-r--r-- 1 root root 1767191040 Nov 1 12:12 /exports/secondary/snapsho= ts/2/6/011a7650-a13f-4332-8c72-2428a002affc.vhd > [root@acs01 6]# md5sum /exports/secondary/snapshots/2/6/011a7650-a13f-433= 2-8c72-2428a002affc.vhd =20 > 240e5e424552d44b5d297895b064beee /exports/secondary/snapshots/2/6/011a76= 50-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-8e5= 9-4240-968d-73d7a6eecfdd.vhd=20 > -rw-r--r-- 1 root root 1767191040 Nov 1 12:17 /exports/secondary/templat= e/tmpl/2/206/be3311d9-8e59-4240-968d-73d7a6eecfdd.vhd > [root@acs01 6]# md5sum /exports/secondary/template/tmpl/2/206/be3311d9-8e= 59-4240-968d-73d7a6eecfdd.vhd =20 > 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/=20 > total 2840056 > -rw-r--r-- 1 root root 1767191040 Nov 1 12:12 011a7650-a13f-4332-8c72-24= 28a002affc.vhd <- snapshot-base > -rw-r--r-- 1 root root 1141019136 Nov 1 12:21 1503adaa-4f6e-4f9c-8d80-68= 663baa86b8.vhd <- snapshot-diff > 6. Create a template from second snapshot - NOK > [root@acs01 6]# ls -lh /exports/secondary/template/tmpl/2/207/4c5c51a1-fc= b4-4cc8-8f97-1664a63af262.vhd=20 > -rw-r--r-- 1 root root 1141019136 Nov 1 12:30 /exports/secondary/templat= e/tmpl/2/207/4c5c51a1-fcb4-4cc8-8f97-1664a63af262.vhd > CloudStack not merging snapshot-base and snapshot-diff. Template from sec= ond 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-ed03= 6228593b.vhd=20 > -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-b= ac3-287cde2106b7.vhd=20 > -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)