Bug 1210717 - [RFE] - Show a warning when commiting a previewed snapshot.
Summary: [RFE] - Show a warning when commiting a previewed snapshot.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: General
Version: ---
Hardware: Unspecified
OS: Unspecified
low
high
Target Milestone: ovirt-4.3.0
: 4.3.0
Assignee: Eyal Shenitzky
QA Contact: Elad
URL:
Whiteboard:
Depends On:
Blocks: 1213937
TreeView+ depends on / blocked
 
Reported: 2015-04-10 12:26 UTC by Tomas Babej
Modified: 2019-04-28 09:03 UTC (History)
11 users (show)

Fixed In Version: ovirt-engine-4.3.0_alpha
Clone Of:
Environment:
Last Closed: 2019-02-13 07:45:12 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.3+
ebenahar: testing_plan_complete-
ylavi: planning_ack+
rule-engine: devel_ack+
rule-engine: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 92424 0 master MERGED webadmin: add a warning message before committing a snapshot 2018-07-05 11:56:37 UTC

Description Tomas Babej 2015-04-10 12:26:16 UTC
Description of problem:

If you create 1 or more subsequent snapshots, and restore snapshot which is not the most recent one, all the future snapshots will disappear.

Version-Release number of selected component (if applicable):

3.5.0-0.32el6

How reproducible:

always

Steps to Reproduce:
1. Create a VM
2. Create a snapshot 1
3. Create a snapshot 2
4. Restore to snapshot 1
5. Inspect the snapshots listed in the RHEV-M

Actual results:

Snapshot 2 is not displayed.

Expected results:

Snapshot 2 is displayed.

Additional info:

Very annoying in that sense that it's surprising and makes people do the (important, since it was snapshotted) work again.

Comment 1 Allon Mureinik 2015-04-12 05:51:23 UTC
Restoring a snapshot is essentially going back in time to when the snapshot was taken.
This behavior is by design.

Comment 2 Petr Spacek 2015-04-13 11:39:22 UTC
Unfortunately it is not documented, at least not here:
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html-single/User_Guide/index.html#Using_a_snapshot_to_restore_a_virtual_machine

Also, it might be by design but the design itself is surprising for unsuspecting users (not for developers). E.g. VirtualBox can work with 'tree' snapshots just fine. The same is doable just fine with QEMU-img and COW disks.

Having said that, I believe that this behavior warrants a warning in the user interface. It might be a pop-up dialog when a user tries to revert snapshot and this revert is going to cause deletion of another snapshot.

Thank you for understanding.

Comment 3 Allon Mureinik 2015-04-13 18:34:13 UTC
(In reply to Petr Spacek from comment #2)
> Unfortunately it is not documented, at least not here:
> https://access.redhat.com/documentation/en-US/
> Red_Hat_Enterprise_Virtualization/3.5/html-single/User_Guide/index.
> html#Using_a_snapshot_to_restore_a_virtual_machine
> 
> Also, it might be by design but the design itself is surprising for
> unsuspecting users (not for developers). E.g. VirtualBox can work with
> 'tree' snapshots just fine. The same is doable just fine with QEMU-img and
> COW disks.
But not in RHEV. Never has been.

> 
> Having said that, I believe that this behavior warrants a warning in the
> user interface. It might be a pop-up dialog when a user tries to revert
> snapshot and this revert is going to cause deletion of another snapshot.
A warning is a possibility.
Leaving open to hear what the PM's have to say about this.

Comment 4 Roland Mainz 2015-04-13 18:51:13 UTC
(In reply to Petr Spacek from comment #2)
> Unfortunately it is not documented, at least not here:
> https://access.redhat.com/documentation/en-US/
> Red_Hat_Enterprise_Virtualization/3.5/html-single/User_Guide/index.
> html#Using_a_snapshot_to_restore_a_virtual_machine
> 
> Also, it might be by design but the design itself is surprising for
> unsuspecting users (not for developers). E.g. VirtualBox can work with
> 'tree' snapshots just fine.

Right...
... why can't this be done by RHV, too ? Is there a RFE for this ?

> The same is doable just fine with QEMU-img and
> COW disks.
> 
> Having said that, I believe that this behavior warrants a warning in the
> user interface. It might be a pop-up dialog when a user tries to revert
> snapshot and this revert is going to cause deletion of another snapshot.

I have to agree with Peter here. Loosing snapshots means that you loose data, making this a potentially fatal issue for a customers business.

Comment 5 Allon Mureinik 2015-04-13 18:58:11 UTC
(In reply to Roland Mainz from comment #4)
> (In reply to Petr Spacek from comment #2)
> > Unfortunately it is not documented, at least not here:
> > https://access.redhat.com/documentation/en-US/
> > Red_Hat_Enterprise_Virtualization/3.5/html-single/User_Guide/index.
> > html#Using_a_snapshot_to_restore_a_virtual_machine
> > 
> > Also, it might be by design but the design itself is surprising for
> > unsuspecting users (not for developers). E.g. VirtualBox can work with
> > 'tree' snapshots just fine.
> 
> Right...
> ... why can't this be done by RHV, too ? Is there a RFE for this ?
Yup, bug 928820.
This is a considerable amount of work, and was never deemed to be a priority. If you think it should get a higher priority, please weigh in there.

> 
> > The same is doable just fine with QEMU-img and
> > COW disks.
> > 
> > Having said that, I believe that this behavior warrants a warning in the
> > user interface. It might be a pop-up dialog when a user tries to revert
> > snapshot and this revert is going to cause deletion of another snapshot.
> 
> I have to agree with Peter here. Loosing snapshots means that you loose
> data, making this a potentially fatal issue for a customers business.
I must say I disagree.
A user presses preview, and sees what the state of the VM is on that snapshot. He must manually select to commit it in order to lose the other snapshots. I get that a warning would make this clearer, but to say that the behavior is unexpected seems like a stretch.

Comment 6 Petr Spacek 2015-04-14 07:25:37 UTC
(In reply to Allon Mureinik from comment #5)
> (In reply to Roland Mainz from comment #4)
> > I have to agree with Peter here. Loosing snapshots means that you loose
> > data, making this a potentially fatal issue for a customers business.
> I must say I disagree.
> A user presses preview, and sees what the state of the VM is on that
> snapshot. He must manually select to commit it in order to lose the other
> snapshots. I get that a warning would make this clearer, but to say that the
> behavior is unexpected seems like a stretch.

Allon, could you be more specific, please? What specific indication is shown to a user after pressing 'Preview'? I.e. how is the information that 'newer' snapshots will be deleted displayed to the user who pressed 'Preview' but not 'Commit' button yet? Specifically, what makes current behavior 'expected'?

Comment 7 Allon Mureinik 2015-04-21 15:57:37 UTC
The way I understand it, a previewed VM is in a transient state where the user needs to either rollback, or confirm that the state is as he wishes and commit.

Once committed, all other possible states (=snapshots) are removed.


I'm not against this bug per se, I just think it's redundant - we already have too many warnings cluttering up too many flows, and well, Syndrome's Law - when everything is a warning, nothing is.


Petr, can you please explain the IDM usecase (as referenced by bug 1213937)?

Comment 8 Petr Spacek 2015-04-21 16:06:32 UTC
Allon, what you are saying makes perfect sense from developer's point of view, I agree with that.

Main problem might be that an ordinary user has no idea about internal representation used by RHEV (list of images vs. tree vs. something else) and as a result, user is surprised by the current behavior.

I do not how to describe it in better terms than I did in comment #6. Simply nothing indicates that 'commit' is going to remove snapshots taken after currently previewed one.

Tomas, could you elaborate on that?

Comment 9 Tomas Babej 2015-05-04 11:24:26 UTC
There is a difference between reverting to a most recent snapshot, and reverting to a snapshot more in the past.

If user is reverting to a snapshot, which is not the most recent one, he has no indication available that he will lose the newer snapshots.

At the very least, Web UI should show an explicit warning and require confimation in this case.

Comment 10 Tomas Babej 2015-05-05 10:48:18 UTC
Additionally, when previewing a past snapshot, during the preview, the newer snapshots are still displayed and there is no indication it will not be the same after commiting.

Comment 11 Sandro Bonazzola 2015-10-26 12:39:59 UTC
this is an automated message. oVirt 3.6.0 RC3 has been released and GA is targeted to next week, Nov 4th 2015.
Please review this bug and if not a blocker, please postpone to a later release.
All bugs not postponed on GA release will be automatically re-targeted to

- 3.6.1 if severity >= high
- 4.0 if severity < high

Comment 12 Red Hat Bugzilla Rules Engine 2015-11-30 19:09:41 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 14 Tal Nisan 2016-12-25 09:45:49 UTC
Daniel, has this been taken care of by your latest work on the snapshots?

Comment 15 Daniel Erez 2016-12-27 07:18:29 UTC
@Allon/Yaniv - do we want to add warnings to the commit snapshot flow? Note that currently commit doesn't invoke a popup. I.e. it would require to add a new one with a warning (and probably an approval latch).

Comment 16 Yaniv Lavi 2016-12-28 13:06:45 UTC
(In reply to Daniel Erez from comment #15)
> @Allon/Yaniv - do we want to add warnings to the commit snapshot flow? Note
> that currently commit doesn't invoke a popup. I.e. it would require to add a
> new one with a warning (and probably an approval latch).

I can't seem to find the UX RFE on allowing user to choose 'don't not show again'. This bug should be blocked on that option. Do you the BZ number for that?

Comment 17 Daniel Erez 2016-12-28 13:15:20 UTC
(In reply to Yaniv Dary from comment #16)
> (In reply to Daniel Erez from comment #15)
> > @Allon/Yaniv - do we want to add warnings to the commit snapshot flow? Note
> > that currently commit doesn't invoke a popup. I.e. it would require to add a
> > new one with a warning (and probably an approval latch).
> 
> I can't seem to find the UX RFE on allowing user to choose 'don't not show
> again'. This bug should be blocked on that option. Do you the BZ number for
> that?

@Oved - do we have a UX RFE for that? Maybe this one: https://bugzilla.redhat.com/show_bug.cgi?id=1188651

Comment 21 Yaniv Lavi 2017-01-01 13:13:27 UTC
This will need to wait until we have the infra to 'not show again'.
For now setting to future.
Oved can we get the RFE on that option to block this RFE?

Comment 22 Red Hat Bugzilla Rules Engine 2017-01-01 13:13:39 UTC
This request has been proposed for two releases. This is invalid flag usage. The ovirt-future release flag has been cleared. If you wish to change the release flag, you must clear one release flag and then set the other release flag to ?.

Comment 23 Greg Sheremeta 2017-02-20 15:01:42 UTC
(In reply to Yaniv Dary from comment #21)
> This will need to wait until we have the infra to 'not show again'.
> For now setting to future.
> Oved can we get the RFE on that option to block this RFE?

Bug 1421473

Comment 24 Red Hat Bugzilla Rules Engine 2018-05-27 12:50:44 UTC
This request has been proposed for two releases. This is invalid flag usage. The ovirt-future release flag has been cleared. If you wish to change the release flag, you must clear one release flag and then set the other release flag to ?.

Comment 25 Eyal Shenitzky 2018-06-20 10:40:10 UTC
Yaniv, 

Should we implement this warning now that the infrastructure for muting the alerts will not be implemented? Should the warning be shown each time snapshot will be committed?

Comment 26 Yaniv Lavi 2018-06-20 15:01:50 UTC
(In reply to Eyal Shenitzky from comment #25)
> Yaniv, 
> 
> Should we implement this warning now that the infrastructure for muting the
> alerts will not be implemented? Should the warning be shown each time
> snapshot will be committed?

We agreed to add this without this capability due to the impact of the action.
We should show it every time.

Comment 27 Elad 2018-08-15 15:22:30 UTC
Getting the following warning in webadmin when committing a snapshot:


Are you sure you want to commit snapshot from 2018-08-15, 18:19 with description '1'?
Existing snapshots that were taken after this one will be erased.


Used:
4.3.0-0.0.master.20180814113734.gitad81cd3.el7

Comment 28 Sandro Bonazzola 2018-11-02 14:38:38 UTC
This bugzilla is included in oVirt 4.2.7 release, published on November 2nd 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.7 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.

Comment 29 Sandro Bonazzola 2018-11-02 14:46:41 UTC
Closed by mistake, moving back to qa -> verified

Comment 30 Sandro Bonazzola 2019-02-13 07:45:12 UTC
This bugzilla is included in oVirt 4.3.0 release, published on February 4th 2019.

Since the problem described in this bug report should be
resolved in oVirt 4.3.0 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.