Deepti please respond tp Min's comment
> -----Original Message-----
> From: Min Chen [mailto:nore...@reviews.apache.org] On Behalf Of Min Chen
> Sent: Wednesday, February 13, 2013 1:57 PM
> To: Anthony Xu
> Cc: cloudstack; Min Chen; Deepti Dohare
> Subject: Re: Review Request: CLOUDSTACK-356 Snapshot errors with multiple
> secondary storage in one zone.
>
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/7594/#review16534
> -----------------------------------------------------------
>
>
> The fix for XenServer looks good. But I didn't see any change on other
> hypervisor like Vmware and KVM. Since BackupSnapshotCommand is also used
> in other hypervisor, what behavior will we see there?
>
> - Min Chen
>
>
> On Jan. 8, 2013, 12:09 p.m., deepti dohare wrote:
> >
> > -----------------------------------------------------------
> > This is an automatically generated e-mail. To reply, visit:
> > https://reviews.apache.org/r/7594/
> > -----------------------------------------------------------
> >
> > (Updated Jan. 8, 2013, 12:09 p.m.)
> >
> >
> > Review request for cloudstack and anthony xu.
> >
> >
> > Description
> > -------
> >
> > Fixed CLOUDSTACK-356
> > The issue is happening because of the multiple secondary storages, the
> secondary 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 “/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
> “/var/run/cloud_mount/dc_id/snapshots”.
> > 3. If other snapshot (for different volume) is created on different
> > secondary
> 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
> “/var/run/cloud_mount/dc_id/snapshots”,
> “/var/run/cloud_mount/dc_id/snapshots/secHostid” mount path is used.
> >
> >
> > This addresses bug CLOUDSTACK-356.
> >
> >
> > Diffs
> > -----
> >
> > api/src/com/cloud/agent/api/BackupSnapshotCommand.java 7ea7835
> > api/test/src/com/cloud/agent/api/test/BackupSnapshotAnswerTest.java
> b3f2847
> > api/test/src/com/cloud/agent/api/test/BackupSnapshotCommandTest.java
> a624148
> >
> plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourc
> eBase.java 36a12b1
> > scripts/vm/hypervisor/xenserver/vmopsSnapshot 80e21f8
> > scripts/vm/hypervisor/xenserver/xcposs/vmopsSnapshot f7b2e0e
> > server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java
> > 7ab464b
> >
> > 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.
> > Snapshots 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
> >
> >