Bug 1449750 - [downstream clone - 4.1.2] Snapshot remains in locked status after async delete using api (only when using async)
Summary: [downstream clone - 4.1.2] Snapshot remains in locked status after async dele...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.0.7
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ovirt-4.1.2
: ---
Assignee: Ala Hino
QA Contact: Israel Pinto
URL:
Whiteboard:
Depends On: 1445263
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-10 15:06 UTC by rhev-integ
Modified: 2020-06-11 13:48 UTC (History)
15 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1445263
Environment:
Last Closed: 2017-05-24 11:24:40 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) 3013701 0 None None None 2017-05-10 15:07:24 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 76249 0 master MERGED async-command: Remove setting parent command 2017-05-10 15:07:24 UTC
oVirt gerrit 76673 0 None None None 2017-05-14 13:28:23 UTC

Description rhev-integ 2017-05-10 15:06:47 UTC
+++ This bug is a downstream clone. The original bug is: +++
+++   bug 1445263 +++
======================================================================

Description of problem:

When deleting the snapshots live using api with async=True, the snapshot remains in locked status and is not removed. The images are merged in the vdsm side and is removed correctly. Also the images table is updated with the correct info. However the snapshot remains in the snapshot table in locked status.

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

rhevm-4.0.6.3-0.1.el7ev.noarch

How reproducible:

100%

Steps to Reproduce:

Remove snapshot live on a VM with async=True using api

Actual results:

Snapshot is not removed correctly.

Expected results:

Snapshot delete should work fine.

Additional info:

(Originally by Nijin Ashok)

Comment 4 rhev-integ 2017-05-10 15:07:06 UTC
Nijin, does this reproduce without the "async=True"?

(Originally by Tal Nisan)

Comment 5 rhev-integ 2017-05-10 15:07:12 UTC
(In reply to Tal Nisan from comment #3)
> Nijin, does this reproduce without the "async=True"?

Nop, it only happens with "async=True" .

(Originally by Nijin Ashok)

Comment 6 Allon Mureinik 2017-05-14 13:30:18 UTC
Eyal - this fix was backported (incorrectly) without the bug being cloned.
Can you please add it to ET for 4.1.2 (it's part of ovirt-engine-4.1.2.2)?

Comment 8 Israel Pinto 2017-05-14 16:52:51 UTC
Verify with:

Steps with REST API:
1. Create snapshot with/without memory
2. Remove snapshot with async=True
DELETE request content is --  url:/ovirt-engine/api/vms/ef2fc720-7905-4231-9949-68296a05b501/snapshots/b3f87241-9ed5-4dcf-8057-7513f8a7dd1c 
<action>
    <async>true</async>
    <grace_period>
        <expiry>10</expiry>
    </grace_period>
</action>

Results: 
Snapshot deleted in both cases

Comment 10 errata-xmlrpc 2017-05-24 11:24:40 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.