Bug 2100326 - [ODF to ODF] Volume snapshot creation failed
Summary: [ODF to ODF] Volume snapshot creation failed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: ocs-operator
Version: 4.11
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ODF 4.11.0
Assignee: Madhu Rajanna
QA Contact: Jilju Joy
URL:
Whiteboard:
Depends On: 2069367
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-23 05:18 UTC by Madhu Rajanna
Modified: 2023-12-08 04:29 UTC (History)
15 users (show)

Fixed In Version: 4.11.0-107
Doc Type: No Doc Update
Doc Text:
Clone Of: 2069367
Environment:
Last Closed: 2022-08-24 13:55:09 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github red-hat-storage ocs-operator pull 1730 0 None open Add support to create volumesnapshotclass per storageclassclaim 2022-06-27 13:13:16 UTC
Github red-hat-storage ocs-operator pull 1736 0 None open BUG 2100326: Add support to create volumesnapshotclass per storageclassclaim 2022-06-28 04:41:07 UTC
Red Hat Product Errata RHSA-2022:6156 0 None None None 2022-08-24 13:55:50 UTC

Comment 2 Madhu Rajanna 2022-06-23 05:22:02 UTC
This is for fixing the bug to create volumesnapshotclass per claim in ODF 4.11 and will keep https://bugzilla.redhat.com/show_bug.cgi?id=2069367 to document the steps to create the volumesnapshotclasses manually.

proving devel_ack as the fix already approved in the main branch. https://github.com/red-hat-storage/ocs-operator/pull/1730.

@neha can you please provide QE_ACK for it?

Comment 6 Martin Bukatovic 2022-07-08 15:10:27 UTC
Moving QE assignee to Neha, who is concerned with Managed Service.

Comment 7 Jilju Joy 2022-07-12 11:33:09 UTC
Hi Madhu


If we create volumesnapshotclass per storageclassclaim, we will get the default volumesnapshotclass only after the fix of the bug https://bugzilla.redhat.com/show_bug.cgi?id=2092417. Correct ?

Comment 9 Jilju Joy 2022-07-15 14:27:58 UTC
Verified in version:

ODF 4.11.0-113
ocs-osd-deployer.v2.0.3
OCP 4.10.21


Volumesnapshotclass will be created for each storageclassclaim.

$ oc get storageclassclaim -A
NAMESPACE           NAME                        STORAGETYPE        PHASE
openshift-storage   storageclassclaim-1cephfs   sharedfilesystem   Ready
test-project        storageclassclaim-cephfs    sharedfilesystem   Ready
test-project        storageclassclaim-rbd       blockpool          Failed


$ oc get sc | grep storageclassclaim
storageclassclaim-1cephfs     openshift-storage.cephfs.csi.ceph.com   Delete          Immediate              true                   124m
storageclassclaim-cephfs      openshift-storage.cephfs.csi.ceph.com   Delete          Immediate              true                   4h24m
storageclassclaim-rbd         openshift-storage.rbd.csi.ceph.com      Delete          Immediate              true                   4h24m


$ oc get storageclassclaim -A
NAMESPACE           NAME                        STORAGETYPE        PHASE
openshift-storage   storageclassclaim-1cephfs   sharedfilesystem   Ready
test-project        storageclassclaim-cephfs    sharedfilesystem   Ready
test-project        storageclassclaim-rbd       blockpool          Failed

$ oc get volumesnapshot -A
NAMESPACE      NAME                                       READYTOUSE   SOURCEPVC                                  SOURCESNAPSHOTCONTENT   RESTORESIZE   SNAPSHOTCLASS              SNAPSHOTCONTENT                                    CREATIONTIME   AGE
test-project   snapshot-test-e713e251c0324742a5aff76a16   true         pvc-test-27de496e33704278a0e4f9f6eec6382                           5Gi           storageclassclaim-rbd      snapcontent-5b517ce5-41a6-4372-ba8e-4c70008c6007   19s            20s
test-project   snapshot-test-fb58ae4655174a4b8c73809927   true         pvc-test-af420a85bfbf4211bd2623092dcfa05                           5Gi           storageclassclaim-cephfs   snapcontent-eb484dff-ba6a-4e01-ad02-cbccb5b55013   32m            32m


Storageclassclaims "storageclassclaim-1cephfs" and "storageclassclaim-cephfs" are in failed state due to the bug #2092417. The storageclass and volumesnapshotclass were created per storageclassclaim as expected.

Tested snapshot and restore. Executed the test case "tests/manage/pv_services/pvc_snapshot/test_pvc_snapshot.py" using a private branch after modifying the test case to use the storageclasses storageclassclaim-cephfs and storageclassclaim-rbd, volumesnapshotclasses storageclassclaim-cephfs and storageclassclaim-rbd and namespace test-project which are given in the above list.
Test report - http://magna002.ceph.redhat.com/ocsci-jenkins/openshift-clusters/jijoy-j15-c1/jijoy-j15-c1_20220715T063938/logs/test_report_1657888920.html

Comment 13 errata-xmlrpc 2022-08-24 13:55:09 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 (Important: Red Hat OpenShift Data Foundation 4.11.0 security, enhancement, & bugfix update), 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/RHSA-2022:6156

Comment 14 Red Hat Bugzilla 2023-12-08 04:29:16 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


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