Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2233695

Summary: Backport Revert to Snapshot capability for NetApp ONTAP Cinder driver
Product: Red Hat OpenStack Reporter: Bobby Oommen <oommen>
Component: openstack-cinderAssignee: Brian Rosmaita <brian.rosmaita>
Status: CLOSED ERRATA QA Contact: Evelina Shames <eshames>
Severity: medium Docs Contact: RHOS Documentation Team <rhos-docs>
Priority: medium    
Version: 17.1 (Wallaby)CC: brian.rosmaita, gbrinn, ifrangs, oommen
Target Milestone: z2Keywords: OtherQA, Triaged
Target Release: 17.1   
Hardware: Unspecified   
OS: Unspecified   
URL: https://review.opendev.org/c/openstack/cinder/+/886097
Whiteboard:
Fixed In Version: openstack-cinder-18.2.2-17.1.20231011140826.f6b44fc.el9ost Doc Type: Enhancement
Doc Text:
This enhancement adds support for the Revert to Snapshot feature for iSCSI, FC, and NFS drivers with FlexVol pool. *Limitations:* This feature does not support FlexGroups. Also, you can revert to only the most recent snapshot of a Block Storage volume.
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-01-16 14:30:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bobby Oommen 2023-08-23 01:19:24 UTC

Comment 1 Brian Rosmaita 2023-08-23 12:49:15 UTC
Moved upstream gerrit ref from doc text to links section of the BZ.

Comment 4 Brian Rosmaita 2023-08-29 17:25:29 UTC
Fix is in a build and ready for NetApp to QA.

Comment 5 Bobby Oommen 2023-08-29 18:56:14 UTC
Brian - where can I access the build? Could you please let me know. My email is - oommen

Comment 6 Brian Rosmaita 2023-08-29 22:16:49 UTC
Bobby - you can find links to the RPMs here: https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=2656621

Comment 7 Bobby Oommen 2023-08-29 22:23:30 UTC
Brian - I am not able to access this link - https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=2656621

Comment 8 mamccoma 2023-08-31 19:08:21 UTC
Created attachment 1986391 [details]
openstack-cinder-18.2.2-17.1.20230829130908.f6b44fc.el9osttrunk.src.rpm

Downloaded RPM from Brew Page and re-uploading to BZ as Bobby is unable to access the brew page

Comment 9 mamccoma 2023-08-31 19:13:05 UTC
Hi Bobby,

We saw you weren't able to access the brew page, so I downloaded the rpm and attached it to this BZ. Please let us know if you have any issues getting the RPM.

You can proceed to QA this Backport.

Thanks!

Comment 10 Bobby Oommen 2023-08-31 19:31:48 UTC
I am getting this message -- when I click on the attachment.

"Sorry, you are not authorized to access attachment #1986391 [details]."

Comment 12 Brian Rosmaita 2023-09-05 15:56:02 UTC
@oommen Hi Bobby, apparently the best lightweight way to get you the RPMs is via email.  Let me know if that works for you, and if you want them to go to the you oommen address.

Comment 13 Bobby Oommen 2023-09-05 16:11:17 UTC
Got RPM. Thank you so much Brian.

Dev team is testing and I will update the status here. Sorry we were close for 4 days and didn't update the status here.

Thank you again for the partnership.

Comment 20 Bobby Oommen 2023-12-01 16:49:46 UTC
Sincere apologies as we had some changes in the team and the testing process was delayed from our side.

Here is the results, and would like to clarify couple of things.

Is the patch (RPM) is already ported in RHOSP17.1. When testing team tried it this week, with NetApp NFS storage, it seems to work without installing RPMs we got from Red Hat.

Test output.

(overcloud) [stack@rhosp17-undercloud ~]$ cinder snapshot-list
+--------------------------------------+--------------------------------------+-----------+-----------------+------+
| ID                                   | Volume ID                            | Status    | Name            | Size |
+--------------------------------------+--------------------------------------+-----------+-----------------+------+
| 3eee3161-d47c-42e4-8ee7-5cbaa2c582bf | 01457caf-b2cb-43d8-9c9c-2cead5a5c7fb | available | snap2           | 1    |
| d4db1b7b-6b27-4ba5-bfd4-0316f192a4b9 | 01457caf-b2cb-43d8-9c9c-2cead5a5c7fb | available | third_vol_snap1 | 1    |
+--------------------------------------+--------------------------------------+-----------+-----------------+------+
(overcloud) [stack@rhosp17-undercloud ~]$
(overcloud) [stack@rhosp17-undercloud ~]$ cinder --os-volume-api-version=3.40 revert-to-snapshot 3eee3161-d47c-42e4-8ee7-5cbaa2c582bf.    Succeeded
(overcloud) [stack@rhosp17-undercloud ~]$
 
aff250-astra-01-02::*> system node run -node aff250-astra-01 -command "ls /vol/rhosp_data1"
.
..
volume-537a539c-67e5-4f3e-b17d-214f1912b79b
volume-5dd5eb7d-9294-4d1e-8254-8ea3a578d6d3
volume-01457caf-b2cb-43d8-9c9c-2cead5a5c7fb
snapshot-d4db1b7b-6b27-4ba5-bfd4-0316f192a4b9
snapshot-3eee3161-d47c-42e4-8ee7-5cbaa2c582bf
volume-c4e123c2-84a3-4c15-9a7b-f357dc550e65  New volume created from snapshot and deleted later.
 
aff250-astra-01-02::*> system node run -node aff250-astra-01 -command "ls /vol/rhosp_data1"
.
..
volume-537a539c-67e5-4f3e-b17d-214f1912b79b
volume-5dd5eb7d-9294-4d1e-8254-8ea3a578d6d3
volume-01457caf-b2cb-43d8-9c9c-2cead5a5c7fb
snapshot-d4db1b7b-6b27-4ba5-bfd4-0316f192a4b9
snapshot-3eee3161-d47c-42e4-8ee7-5cbaa2c582bf

Comment 23 Brian Rosmaita 2023-12-04 14:56:57 UTC
(In reply to Bobby Oommen from comment #20)

Sorry for the delayed response.  I did some digging around to make sure.  The original upstream fix https://review.opendev.org/c/openstack/cinder/+/804093 was done in xena.  A backport to wallaby (https://review.opendev.org/c/openstack/cinder/+/886097) has not merged to upstream stable/wallaby (so it wasn't pulled into 17.1 when I wasn't looking).  The downstream backport, https://code.engineering.redhat.com/gerrit/c/cinder/+/446185/, is NOT in 17.1 GA or 17.1.1.  So if you're using 17.1.1 for testing, the fix is not in there.

Comment 35 errata-xmlrpc 2024-01-16 14:30:39 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 (Red Hat OpenStack Platform 17.1.2 bug fix and enhancement 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-2024:0209

Comment 37 Red Hat Bugzilla 2024-08-29 04:25:30 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days