Bug 1829284 - RHOSP13 - VxFlex OS volumes are not properly created from snapshot therefore can not be used
Summary: RHOSP13 - VxFlex OS volumes are not properly created from snapshot therefore ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-cinder
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z12
: 13.0 (Queens)
Assignee: Alan Bishop
QA Contact: Tzach Shefi
Chuck Copello
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-29 10:39 UTC by Ivan Pchelintsev
Modified: 2020-06-24 11:52 UTC (History)
11 users (show)

Fixed In Version: openstack-cinder-12.0.10-8.el7ost
Doc Type: Bug Fix
Doc Text:
This update correctly associates a cinder volume with its corresponding VxFlex OS volume, so that when you delete a volume, the corresponding backend volume is also deleted. Previously, deletion of a cinder volume did not trigger deletion of the corresponding VxFlex OS volume.
Clone Of:
Environment:
Last Closed: 2020-06-24 11:51:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:2722 0 None None None 2020-06-24 11:52:14 UTC

Description Ivan Pchelintsev 2020-04-29 10:39:09 UTC
Description of problem:
Volume on VxFlex OS array not removed when it's deleted from cinder if it's craeted from a snapshot.


Steps to Reproduce:
1. create a volume for test:
openstack volume create --type vxflexos1 --size 16 testvol 
2. create a snapshot of the volume: 
openstack volume snapshot create --volume testvol testvol_snap
3. restore the snapshot to a new volume:
openstack volume create --snapshot testvol_snap --size 16 vol_from_snap
4. delete the volume restored from snapshot
openstack volume delete vol_from_snap
5. delete the snapshot:
openstack volume snapshot delete testvol_snap
6. delete the original volume:
openstack volume delete testvol


Actual results:
The volume restored from snapshot is still on the array.

Expected results:
The volume restored from snapshot should not be presented on the array.

Comment 1 Ivan Pchelintsev 2020-04-29 10:46:43 UTC
This bug is fixed by
https://github.com/ivanpch/cinder/commit/42f3b668fbac55a64e56e776f4ef3a039840dd33

Comment 2 Luigi Toscano 2020-04-29 14:16:52 UTC
(In reply to Ivan Pchelintsev from comment #1)
> This bug is fixed by
> https://github.com/ivanpch/cinder/commit/
> 42f3b668fbac55a64e56e776f4ef3a039840dd33

In fact it is a follow-up to the backport tracked by https://bugzilla.redhat.com/show_bug.cgi?id=1777366 . The corresponding upstream stable/queens code contains the return, as well as the newer branches.

Just a question: from The bug title it seems that the volumes are not working, but from the description I understand it's just a removal problem. Should the title be tuned a bit? I guess it changes also the impact of the issue.

Comment 3 Vladislav Belogrudov 2020-04-29 16:21:10 UTC
(In reply to Luigi Toscano from comment #2)
> (In reply to Ivan Pchelintsev from comment #1)
> > This bug is fixed by
> > https://github.com/ivanpch/cinder/commit/
> > 42f3b668fbac55a64e56e776f4ef3a039840dd33
> 
> In fact it is a follow-up to the backport tracked by
> https://bugzilla.redhat.com/show_bug.cgi?id=1777366 . The corresponding
> upstream stable/queens code contains the return, as well as the newer
> branches.
> 
> Just a question: from The bug title it seems that the volumes are not
> working, but from the description I understand it's just a removal problem.
> Should the title be tuned a bit? I guess it changes also the impact of the
> issue.


You are right, it's a follow up of the 1777366, the return statement was lost in backport and that led to the erroneous behavior. 

The volume is created but we don't return model update with proper VxFlex OS volume id and cannot reference to it afterwards. So the title of the bug is correct - such volume is unusable after creation from a snap.

Comment 4 Ivan Pchelintsev 2020-04-29 16:37:02 UTC
(In reply to Luigi Toscano from comment #2)
> (In reply to Ivan Pchelintsev from comment #1)
> > This bug is fixed by
> > https://github.com/ivanpch/cinder/commit/
> > 42f3b668fbac55a64e56e776f4ef3a039840dd33
> 
> In fact it is a follow-up to the backport tracked by
> https://bugzilla.redhat.com/show_bug.cgi?id=1777366 . The corresponding
> upstream stable/queens code contains the return, as well as the newer
> branches.
> 
> Just a question: from The bug title it seems that the volumes are not
> working, but from the description I understand it's just a removal problem.
> Should the title be tuned a bit? I guess it changes also the impact of the
> issue.

Driver was backported without return statement.
The fix mentioned in my comment was done just today.
Other questions were answered by Vladislav Belogrudov in the previous comment.

Comment 12 errata-xmlrpc 2020-06-24 11:51:47 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/RHBA-2020:2722


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