Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A5AAFD21F for ; Tue, 16 Oct 2012 06:04:23 +0000 (UTC) Received: (qmail 28899 invoked by uid 500); 16 Oct 2012 06:04:23 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 28446 invoked by uid 500); 16 Oct 2012 06:04:22 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 28408 invoked by uid 99); 16 Oct 2012 06:04:20 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2012 06:04:20 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 7AFC11C44DF; Tue, 16 Oct 2012 06:04:18 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============4783112153852269128==" MIME-Version: 1.0 Subject: Re: Review Request: Snapshot errors with multiple secondary storage in one zone. From: "deepti dohare" To: "anthony xu" , "Nitin Mehta" Cc: "cloudstack" , "David Nalley" , "deepti dohare" Date: Tue, 16 Oct 2012 06:04:18 -0000 Message-ID: <20121016060418.16939.32935@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "deepti dohare" X-ReviewGroup: cloudstack X-ReviewRequest-URL: https://reviews.apache.org/r/7594/ X-Sender: "deepti dohare" References: <20121015064809.16939.97557@reviews.apache.org> In-Reply-To: <20121015064809.16939.97557@reviews.apache.org> Reply-To: "deepti dohare" --===============4783112153852269128== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/7594/ ----------------------------------------------------------- (Updated Oct. 16, 2012, 6:04 a.m.) Review request for cloudstack, Nitin Mehta and anthony xu. Changes ------- Created a ticket on issues.apache.org: https://issues.apache.org/jira/brows= e/CLOUDSTACK-356 Description (updated) ------- Fixed CLOUDSTACK-356 The issue is happening because of the multiple secondary storages, the seco= ndary storage which is used first is getting mounted on the host resulting = in failure of other snapshot using different secondary storage as it is not= getting mounted on the host. = For eg: 1. When first incremental snapshot (eg Ssec1-1) is taken, secondary storage= (sec1) is mounted on local path =E2=80=9C/var/run/sr-mount/ on the host. = 2. Second incremental snapshot (Ssec1-2) is created, to get the parent vhd,= the secondary storage is mounted at mount path =E2=80=9C/var/run/cloud_mou= nt/dc_id/snapshots=E2=80=9D. 3. If other snapshot (for different volume) is created on different seconda= ry storage (sec2), sec2 is not getting mounted on "/var/run/cloud_mount/dc_= id/snapshots" path. = The fix is to mount other secondary storages as well on the host. The local= mount path in vmopsSnapshot.py is modified, instead of mounting on =E2=80= =9C/var/run/cloud_mount/dc_id/snapshots=E2=80=9D, =E2=80=9C/var/run/cloud_m= ount/dc_id/snapshots/secHostid=E2=80=9D mount path is used. This addresses bug CLOUDSTACK-356. Diffs ----- api/src/com/cloud/agent/api/BackupSnapshotCommand.java 9476d7d = plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResou= rceBase.java d2db85c = scripts/vm/hypervisor/xenserver/vmopsSnapshot 80e21f8 = server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java d89a6d9 = Diff: https://reviews.apache.org/r/7594/diff/ Testing ------- Tested for following cases: 1. Snapshot Creation: = Host 1 has a vm i-1, volume ROOT-1 DATA-1, Host 2 has a vm i-2, volume ROOT= -2 DATA-2, Taken recurring snapshot for 4 volumes. Verified: multiple secondary storages are getting mounted on host. Snapshot= s creation successful 2. Template Creation: = Verified: templates successfully created from the above snapshots 3. Volume creation: Verified: volumes successfully created from the above snapshots 4. VM Migration Migrate i-1 from Host-1 to Host-2. = Verified: Secondary mount point successfully created on Host-2. = = Thanks, deepti dohare --===============4783112153852269128==--