Bug 1449750

Summary: [downstream clone - 4.1.2] Snapshot remains in locked status after async delete using api (only when using async)
Product: Red Hat Enterprise Virtualization Manager Reporter: rhev-integ
Component: ovirt-engineAssignee: Ala Hino <ahino>
Status: CLOSED ERRATA QA Contact: Israel Pinto <ipinto>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.0.7CC: ahino, amureini, eedri, eheftman, lsurette, mavital, mwest, nashok, ratamir, rbalakri, Rhev-m-bugs, srevivo, tnisan, ykaul, ylavi
Target Milestone: ovirt-4.1.2Keywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1445263 Environment:
Last Closed: 2017-05-24 11:24:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1445263    
Bug Blocks:    

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