Bug 1446919 - [downstream clone - 4.1.2] Snapshot deletion fails with error reported as "Drive image file could not be found"
Summary: [downstream clone - 4.1.2] Snapshot deletion fails with error reported as "Dr...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.0.5
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ovirt-4.1.2
: ---
Assignee: Daniel Erez
QA Contact: Kevin Alon Goldblatt
URL:
Whiteboard:
Depends On: 1411572
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-30 14:41 UTC by rhev-integ
Modified: 2020-02-14 18:33 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1411572
Environment:
Last Closed: 2017-05-24 11:23:53 UTC
oVirt Team: Storage
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2852341 0 None None None 2017-04-30 14:43:02 UTC
Red Hat Product Errata RHEA-2017:1280 0 normal SHIPPED_LIVE Red Hat Virtualization Manager (ovirt-engine) 4.1.2 2017-05-24 15:18:48 UTC
oVirt gerrit 73682 0 master MERGED webadmin: live merge - warning on remove snapshot for unplugged disks 2017-04-30 14:43:02 UTC
oVirt gerrit 73741 0 ovirt-engine-4.1 MERGED webadmin: live merge - warning on remove snapshot for unplugged disks 2017-04-30 14:43:02 UTC

Description rhev-integ 2017-04-30 14:41:54 UTC
+++ This bug is a downstream clone. The original bug is: +++
+++   bug 1411572 +++
======================================================================

Description of problem:

Unable to delete a snapshot when one of the disk's which is part of it is deactivated. 

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

ovirt-engine-4.0.5.5-0.1.el7ev.noarch

How reproducible:

Steps to Reproduce:
1. Create 2 new disks for a VM .
2. Create a snapshot with the above 2 disks involved. 
3. Deactivate one of the disk's that is part of the snapshot.
4. Delete the snapshot and it will result in the error below 

engine.log
--------------------

 Engine exception thrown while sending merge command: org.ovirt.engine.core.common.errors.EngineException: EngineException: org.ovirt.      engine.core.vdsbroker.vdsbroker.VDSErrorException: VDSGenericException: VDSErrorException: Failed to MergeVDS, error = Drive image file could not be found, code = 13 (Failed with error imageErr and code 13)

5. The disk that is activated gets removed successfully and the disk or image is marked as illegal.
6. once activated again from the disk's tab it can be removed .

Actual results:

-results in the disk/image being marked as illegal in the snapshot .
- stale snapshot entry in table.

Expected results:

- warning to user indicating that one of the disk is in inactive or deactivated state. 

Additional info:

(Originally by Ribu Abraham)

Comment 1 rhev-integ 2017-04-30 14:42:02 UTC
It'd be great if you could attach relevant engine and vdsm logs.

(Originally by Yaniv Kaul)

Comment 5 rhev-integ 2017-04-30 14:42:19 UTC
If I remember correctly this is the expected behavior, Daniel can you confirm?

(Originally by Tal Nisan)

Comment 6 rhev-integ 2017-04-30 14:42:23 UTC
@Ala - is it the excepted behavior with live merge? or perhaps related to bug 1327140 ?

(Originally by Daniel Erez)

Comment 7 rhev-integ 2017-04-30 14:42:29 UTC
It is the expected behavior though a warning indicating that the snapshot will not be removed the non-active disk will be marked as illegal (in the disks sub-tab in the snapshots tab)

(Originally by Ala Hino)

Comment 8 rhev-integ 2017-04-30 14:42:34 UTC
@Ala,

Currently there is no warning or indication as such and hence wouldn't it be a good idea to have a warning indication or notification for this case. 

Ribu

(Originally by Ribu Abraham)

Comment 11 rhev-integ 2017-04-30 14:42:50 UTC
WARN: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason:

[FOUND NON-ACKED FLAGS: {'rhevm-4.1.z': '?'}]

For more info please contact: rhv-devops

(Originally by rhev-integ)

Comment 12 Kevin Alon Goldblatt 2017-05-08 12:44:04 UTC
Verified with the following code:
------------------------------------
ovirt-engine-4.1.2.1-0.1.el7.noarch
rhevm-4.1.2.1-0.1.el7.noarch
vdsm-4.19.12-1.el7ev.x86_64


Verified with the following scenario:
--------------------------------------
Steps to Reproduce:
1. Create 2 new disks for a VM .
2. Create a snapshot with the above 2 disks involved. 
3. Deactivate one of the disk's that is part of the snapshot.
4. Delete the snapshot >>>>> warning to user indicating that one of the disk is in inactive or deactivated state is displayed in the Delete Snapshot window and the the snapshot is deleted.


Moving to VERIFIED!

Comment 14 errata-xmlrpc 2017-05-24 11:23:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHEA-2017:1280


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