RE: Snapshots only on Primary Storage feature

2018-05-19 Thread Glen Baars
Based on the responses, I think it is a worthy feature to be retained. Maybe 
the following changes?

Rename the setting to something like kvmxen.snapshot.primaryonly ( I have no 
idea of the naming scheme that Cloudstack uses )
Ensure the code for vmware snapshots does not get impacted by the setting
Record in the DB that the snapshot is only on the primary storage
When the create template or download template features are used, use the 
primary storage as the source.

Kind regards,
Glen Baars

-Original Message-
From: Will Stevens 
Sent: Saturday, 19 May 2018 12:57 PM
To: dev@cloudstack.apache.org
Subject: Re: Snapshots only on Primary Storage feature

I think reverting the change in 4.11.1 is probably a good idea.

*Will Stevens*
Chief Technology Officer
c 514.826.0190




On Fri, May 18, 2018 at 2:52 PM ilya musayev 
wrote:

> Perhaps bring it back into 4.11.1?
>
> On Fri, May 18, 2018 at 9:28 AM Suresh Kumar Anaparti <
> sureshkumar.anapa...@gmail.com> wrote:
>
> > Si / Will,
> >
> > That is just FYI, if anyone uses VMware with that flag set to false.
> > I'm neither against the feature nor telling to rip that out.
> >
> > You are correct, the PR 2081 supports KVM and Xen as the volume
> > snapshots are directly supported on them and backup operation is not
> > tightly
> coupled
> > with the create operation.
> >
> > -Suresh
> >
> > On Fri, May 18, 2018 at 7:38 PM, Simon Weller
> > 
> > wrote:
> >
> > > There are plenty of features in ACS that are particular to a
> > > certain hypervisor (or hypervisor set), including VMware specific items.
> > >
> > > It was never claimed this feature worked across all hypervisors.
> > > In addition to that, the default was to leave the existing
> > > functionality exactly the way it was originally implemented and if
> > > a user wished to change the functionality they could via a global config 
> > > variable.
> > >
> > > Your original spec for PR 2081 in confluence states that the PR
> > > was targeted towards KVM and Xen, so I'm confused as to why VMware
> > > is even being mentioned here.
> > >
> > >
> > > This is a major feature regression that a number of
> organizations/service
> > > providers are relying on and it wasn't called out when the PR was
> > submitted.
> > >
> > >
> > > 
> > > From: Will Stevens 
> > > Sent: Friday, May 18, 2018 6:12 AM
> > > To: dev@cloudstack.apache.org
> > > Subject: Re: Snapshots only on Primary Storage feature
> > >
> > > Just because it does not work for VMware should not a reason to
> > > rip out
> > the
> > > functionality for other hypervisors where it is being used though.
> > >
> > > I know we also have the requirement that snapshots are not
> automatically
> > > replicated to secondary storage, so this feature is useful to us.
> > >
> > > I don't understand the rational for removing the feature just
> > > because
> it
> > > does not work on VMware.
> > >
> > > On Fri, May 18, 2018, 6:27 AM Suresh Kumar Anaparti, <
> > > sureshkumar.anapa...@gmail.com> wrote:
> > >
> > > > Si,
> > > >
> > > > The PR# 1697 with the global setting
> > > > *snapshot.backup.rightafter** -
> > > > false* doesn't
> > > > work for VMware as create snapshot never takes a snapshot in
> > > > Primary
> > > pool,
> > > > it just returns the snapshot uuid. The backup snapshot does the
> > complete
> > > > job - creates a VM snapshot with the uuid, extracts and exports
> > > > the
> > > target
> > > > volume to secondary. On demand backup snapshot doesn't work as
> > > > there
> is
> > > no
> > > > snapshot in primary. Also, there'll be only one entry with
> > > > Primary
> > store
> > > > role in snapshot_store_ref, which is the latest snapshot taken
> > > > for
> that
> > > > volume.
> > > >
> > > > -Suresh
> > > >
> > > > On Fri, May 18, 2018 at 1:03 AM, Simon Weller
>  > >
> > > > wrote:
> > > >
> > > > > The whole point of the original PR was to optionally disable
> > > > > this functionality.
> > > > >
> > > > > We don't expose views of the backup state to our customers (we
> > > > > have
> > our
> > > > > own customer interfaces) and it's a large waste of space for
> > > > > us to
> be
> > > > > backing up tons of VM images when we have a solid primary
> > > > > storage infrastructure that already has lots of resiliency.
> > > > >
> > > > >
> > > > > I guess we're going to have to revisit this again before we
> > > > > can
> > > consider
> > > > > rebasing on 4.11.
> > > > >
> > > > > 
> > > > > From: Suresh Kumar Anaparti 
> > > > > Sent: Thursday, May 17, 2018 2:21 PM
> > > > > To: dev
> > > > > Subject: Re: Snapshots only on Primary Storage feature
> > > > >
> > > > > Hi Si,
> > > > >
> > > > > No. not possible to disable the backup to secondary. It copies
> > > > > the
> > > volume
> > > > > snapshot to secondary in a background thread using asyncBackup
> param
> > > (set
> > > > > to true) and allows other operations during that time.
> > > > >
>

Re: Snapshots only on Primary Storage feature

2018-05-19 Thread Tutkowski, Mike
Perhaps instead of renaming the setting, we can note in its description the 
hypervisors it currently pertains to.

> On May 19, 2018, at 7:03 PM, Glen Baars  wrote:
> 
> Based on the responses, I think it is a worthy feature to be retained. Maybe 
> the following changes?
> 
> Rename the setting to something like kvmxen.snapshot.primaryonly ( I have no 
> idea of the naming scheme that Cloudstack uses )
> Ensure the code for vmware snapshots does not get impacted by the setting
> Record in the DB that the snapshot is only on the primary storage
> When the create template or download template features are used, use the 
> primary storage as the source.
> 
> Kind regards,
> Glen Baars
> 
> -Original Message-
> From: Will Stevens 
> Sent: Saturday, 19 May 2018 12:57 PM
> To: dev@cloudstack.apache.org
> Subject: Re: Snapshots only on Primary Storage feature
> 
> I think reverting the change in 4.11.1 is probably a good idea.
> 
> *Will Stevens*
> Chief Technology Officer
> c 514.826.0190
> 
> 
> 
> 
> On Fri, May 18, 2018 at 2:52 PM ilya musayev 
> wrote:
> 
>> Perhaps bring it back into 4.11.1?
>> 
>> On Fri, May 18, 2018 at 9:28 AM Suresh Kumar Anaparti <
>> sureshkumar.anapa...@gmail.com> wrote:
>> 
>>> Si / Will,
>>> 
>>> That is just FYI, if anyone uses VMware with that flag set to false.
>>> I'm neither against the feature nor telling to rip that out.
>>> 
>>> You are correct, the PR 2081 supports KVM and Xen as the volume
>>> snapshots are directly supported on them and backup operation is not
>>> tightly
>> coupled
>>> with the create operation.
>>> 
>>> -Suresh
>>> 
>>> On Fri, May 18, 2018 at 7:38 PM, Simon Weller
>>> 
>>> wrote:
>>> 
 There are plenty of features in ACS that are particular to a
 certain hypervisor (or hypervisor set), including VMware specific items.
 
 It was never claimed this feature worked across all hypervisors.
 In addition to that, the default was to leave the existing
 functionality exactly the way it was originally implemented and if
 a user wished to change the functionality they could via a global config 
 variable.
 
 Your original spec for PR 2081 in confluence states that the PR
 was targeted towards KVM and Xen, so I'm confused as to why VMware
 is even being mentioned here.
 
 
 This is a major feature regression that a number of
>> organizations/service
 providers are relying on and it wasn't called out when the PR was
>>> submitted.
 
 
 
 From: Will Stevens 
 Sent: Friday, May 18, 2018 6:12 AM
 To: dev@cloudstack.apache.org
 Subject: Re: Snapshots only on Primary Storage feature
 
 Just because it does not work for VMware should not a reason to
 rip out
>>> the
 functionality for other hypervisors where it is being used though.
 
 I know we also have the requirement that snapshots are not
>> automatically
 replicated to secondary storage, so this feature is useful to us.
 
 I don't understand the rational for removing the feature just
 because
>> it
 does not work on VMware.
 
 On Fri, May 18, 2018, 6:27 AM Suresh Kumar Anaparti, <
 sureshkumar.anapa...@gmail.com> wrote:
 
> Si,
> 
> The PR# 1697 with the global setting
> *snapshot.backup.rightafter** -
> false* doesn't
> work for VMware as create snapshot never takes a snapshot in
> Primary
 pool,
> it just returns the snapshot uuid. The backup snapshot does the
>>> complete
> job - creates a VM snapshot with the uuid, extracts and exports
> the
 target
> volume to secondary. On demand backup snapshot doesn't work as
> there
>> is
 no
> snapshot in primary. Also, there'll be only one entry with
> Primary
>>> store
> role in snapshot_store_ref, which is the latest snapshot taken
> for
>> that
> volume.
> 
> -Suresh
> 
> On Fri, May 18, 2018 at 1:03 AM, Simon Weller
>> >>> 
> wrote:
> 
>> The whole point of the original PR was to optionally disable
>> this functionality.
>> 
>> We don't expose views of the backup state to our customers (we
>> have
>>> our
>> own customer interfaces) and it's a large waste of space for
>> us to
>> be
>> backing up tons of VM images when we have a solid primary
>> storage infrastructure that already has lots of resiliency.
>> 
>> 
>> I guess we're going to have to revisit this again before we
>> can
 consider
>> rebasing on 4.11.
>> 
>> 
>> From: Suresh Kumar Anaparti 
>> Sent: Thursday, May 17, 2018 2:21 PM
>> To: dev
>> Subject: Re: Snapshots only on Primary Storage feature
>> 
>> Hi Si,
>> 
>> No. not possible to disable the backup to secondary. It copies
>> the
 volume
>> snapshot to secondary in a background thread using as