Bug 1902711
Summary: | Tracker for Bug #1903078 Deleting VolumeSnapshotClass makes VolumeSnapshot not Ready | |||
---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat OpenShift Container Storage | Reporter: | Jilju Joy <jijoy> | |
Component: | csi-driver | Assignee: | Humble Chirammal <hchiramm> | |
Status: | CLOSED ERRATA | QA Contact: | Jilju Joy <jijoy> | |
Severity: | medium | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 4.6 | CC: | asriram, dwalveka, edonnell, hchiramm, madam, mrajanna, muagarwa, nberry, ocs-bugs, tdesala | |
Target Milestone: | --- | Keywords: | Tracking | |
Target Release: | OCS 4.7.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: |
.You cannot create a PVC from a volume snapshot in the absence of `volumesnapshotclass`
A PVC can not be created from a volume snapshot in the absence of `volumesnapshotclass`.
This issue is caused because the status of the volume snapshot changes to a *not ready* state on deleting the `volumesnapshotclass`.
This issue has been fixed in OCP 4.7.0 and higher.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1903078 (view as bug list) | Environment: | ||
Last Closed: | 2021-05-19 09:16:33 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1882359, 1903078, 1938134 |
Description
Jilju Joy
2020-11-30 13:32:06 UTC
This title "You cannot create PVC or clones from `snapshot`" should be changed. This title in release notes will give an impression that a PVC cannot be created from snapshot. This is applicable only in a situation where the snapshot class is not present. Why do we need to mention about clone here ? Changing the doc_text back from '+' to '?' as the content is changed. Erin, PTAL Thanks Jiliju/Madhu. Hi Erin I added the known issue statement as the current one is very misleading and people may think snapshot restore does not work at all You cannot restore PVC from `snapshot` to You cannot restore PVC from `snapshot` in absence of volume snapshotclass OCP BZ is already verified, moving this one to ON_QA Verified in version: OCP 4.7.0-0.nightly-2021-01-14-211319 ocs-operator.v4.7.0-230.ci List of Cephfs and RBD volume snapshots $ oc -n namespace-test-e9c5276f746b419fae7eeb463 get volumesnapshot NAME READYTOUSE SOURCEPVC SOURCESNAPSHOTCONTENT RESTORESIZE SNAPSHOTCLASS SNAPSHOTCONTENT CREATIONTIME AGE pvc-test-5b560b0d48a2447ebf69fdb91eda7a4-snapshot true pvc-test-5b560b0d48a2447ebf69fdb91eda7a4 3Gi cephfssnapshotclass snapcontent-86391466-211a-487f-aa27-141910a5f50d 70s 72s pvc-test-6aade12d84234b6f8e88649b0f9f41a-snapshot true pvc-test-6aade12d84234b6f8e88649b0f9f41a 3Gi rbdsnapshotclass snapcontent-83ba7737-569a-4049-a868-134bb6a1b637 52s 53s Delete the volume snapshot classes $ oc delete volumesnapshotclass cephfssnapshotclass rbdsnapshotclass volumesnapshotclass.snapshot.storage.k8s.io "cephfssnapshotclass" deleted volumesnapshotclass.snapshot.storage.k8s.io "rbdsnapshotclass" deleted Verify the volume snapshotclasses are deleted $ oc get volumesnapshotclass cephfssnapshotclass rbdsnapshotclass Error from server (NotFound): volumesnapshotclasses.snapshot.storage.k8s.io "cephfssnapshotclass" not found Error from server (NotFound): volumesnapshotclasses.snapshot.storage.k8s.io "rbdsnapshotclass" not found List of Cephfs and RBD volume snapshots. Snapshots are in Ready state. $ oc -n namespace-test-e9c5276f746b419fae7eeb463 get volumesnapshot NAME READYTOUSE SOURCEPVC SOURCESNAPSHOTCONTENT RESTORESIZE SNAPSHOTCLASS SNAPSHOTCONTENT CREATIONTIME AGE pvc-test-5b560b0d48a2447ebf69fdb91eda7a4-snapshot true pvc-test-5b560b0d48a2447ebf69fdb91eda7a4 3Gi cephfssnapshotclass snapcontent-86391466-211a-487f-aa27-141910a5f50d 2m29s 2m31s pvc-test-6aade12d84234b6f8e88649b0f9f41a-snapshot true pvc-test-6aade12d84234b6f8e88649b0f9f41a 3Gi rbdsnapshotclass snapcontent-83ba7737-569a-4049-a868-134bb6a1b637 2m11s 2m12s Verify the status of volume snapshot contents. Snapshot contents are in Ready state. $ oc get volumesnapshotcontent snapcontent-86391466-211a-487f-aa27-141910a5f50d snapcontent-83ba7737-569a-4049-a868-134bb6a1b637 NAME READYTOUSE RESTORESIZE DELETIONPOLICY DRIVER VOLUMESNAPSHOTCLASS VOLUMESNAPSHOT AGE snapcontent-86391466-211a-487f-aa27-141910a5f50d true 3221225472 Delete openshift-storage.cephfs.csi.ceph.com cephfssnapshotclass pvc-test-5b560b0d48a2447ebf69fdb91eda7a4-snapshot 3m21s snapcontent-83ba7737-569a-4049-a868-134bb6a1b637 true 3221225472 Delete openshift-storage.rbd.csi.ceph.com rbdsnapshotclass pvc-test-6aade12d84234b6f8e88649b0f9f41a-snapshot 3m3s Verify volume snapshot class are still absent. $ oc get volumesnapshotclass cephfssnapshotclass rbdsnapshotclass Error from server (NotFound): volumesnapshotclasses.snapshot.storage.k8s.io "cephfssnapshotclass" not found Error from server (NotFound): volumesnapshotclasses.snapshot.storage.k8s.io "rbdsnapshotclass" not found (In reply to Jilju Joy from comment #13) > Verified in version: > OCP 4.7.0-0.nightly-2021-01-14-211319 > ocs-operator.v4.7.0-230.ci > > > List of Cephfs and RBD volume snapshots > $ oc -n namespace-test-e9c5276f746b419fae7eeb463 get volumesnapshot > NAME READYTOUSE SOURCEPVC > SOURCESNAPSHOTCONTENT RESTORESIZE SNAPSHOTCLASS SNAPSHOTCONTENT > CREATIONTIME AGE > pvc-test-5b560b0d48a2447ebf69fdb91eda7a4-snapshot true > pvc-test-5b560b0d48a2447ebf69fdb91eda7a4 3Gi > cephfssnapshotclass snapcontent-86391466-211a-487f-aa27-141910a5f50d 70s > 72s > pvc-test-6aade12d84234b6f8e88649b0f9f41a-snapshot true > pvc-test-6aade12d84234b6f8e88649b0f9f41a 3Gi > rbdsnapshotclass snapcontent-83ba7737-569a-4049-a868-134bb6a1b637 52s > 53s > > > Delete the volume snapshot classes > $ oc delete volumesnapshotclass cephfssnapshotclass rbdsnapshotclass > volumesnapshotclass.snapshot.storage.k8s.io "cephfssnapshotclass" deleted > volumesnapshotclass.snapshot.storage.k8s.io "rbdsnapshotclass" deleted > > > Verify the volume snapshotclasses are deleted > $ oc get volumesnapshotclass cephfssnapshotclass rbdsnapshotclass > Error from server (NotFound): volumesnapshotclasses.snapshot.storage.k8s.io > "cephfssnapshotclass" not found > Error from server (NotFound): volumesnapshotclasses.snapshot.storage.k8s.io > "rbdsnapshotclass" not found > > > List of Cephfs and RBD volume snapshots. Snapshots are in Ready state. > $ oc -n namespace-test-e9c5276f746b419fae7eeb463 get volumesnapshot > NAME READYTOUSE SOURCEPVC > SOURCESNAPSHOTCONTENT RESTORESIZE SNAPSHOTCLASS SNAPSHOTCONTENT > CREATIONTIME AGE > pvc-test-5b560b0d48a2447ebf69fdb91eda7a4-snapshot true > pvc-test-5b560b0d48a2447ebf69fdb91eda7a4 3Gi > cephfssnapshotclass snapcontent-86391466-211a-487f-aa27-141910a5f50d > 2m29s 2m31s > pvc-test-6aade12d84234b6f8e88649b0f9f41a-snapshot true > pvc-test-6aade12d84234b6f8e88649b0f9f41a 3Gi > rbdsnapshotclass snapcontent-83ba7737-569a-4049-a868-134bb6a1b637 > 2m11s 2m12s > > > Verify the status of volume snapshot contents. Snapshot contents are in > Ready state. > $ oc get volumesnapshotcontent > snapcontent-86391466-211a-487f-aa27-141910a5f50d > snapcontent-83ba7737-569a-4049-a868-134bb6a1b637 > NAME READYTOUSE RESTORESIZE > DELETIONPOLICY DRIVER VOLUMESNAPSHOTCLASS > VOLUMESNAPSHOT AGE > snapcontent-86391466-211a-487f-aa27-141910a5f50d true 3221225472 > Delete openshift-storage.cephfs.csi.ceph.com cephfssnapshotclass > pvc-test-5b560b0d48a2447ebf69fdb91eda7a4-snapshot 3m21s > snapcontent-83ba7737-569a-4049-a868-134bb6a1b637 true 3221225472 > Delete openshift-storage.rbd.csi.ceph.com rbdsnapshotclass > pvc-test-6aade12d84234b6f8e88649b0f9f41a-snapshot 3m3s > > > Verify volume snapshot class are still absent. > $ oc get volumesnapshotclass cephfssnapshotclass rbdsnapshotclass > Error from server (NotFound): volumesnapshotclasses.snapshot.storage.k8s.io > "cephfssnapshotclass" not found > Error from server (NotFound): volumesnapshotclasses.snapshot.storage.k8s.io > "rbdsnapshotclass" not found Snapshot restore succeeded in the absence of volume snapshotclass. >> This issue is caused because the status of the volume snapshot changes to
> Error on deleting the volumesnapshotclass.
Disha, the status of volumesnapshot changes to "not ready" in this case and not really "error" state. so, that part of the text can be corrected. also, better avoid space between `volume` and `snapshot` above.
(In reply to Humble Chirammal from comment #20) > >> This issue is caused because the status of the volume snapshot changes to > > Error on deleting the volumesnapshotclass. > > Disha, the status of volumesnapshot changes to "not ready" in this case and > not really "error" state. so, that part of the text can be corrected. also, > better avoid space between `volume` and `snapshot` above. Thank you for the inputs, Humble. Changed to A PVC can not be created from a volume snapshot in the absence of volumesnapshotclass. This issue is caused because the status of the volume snapshot changes to a `not ready` state on deleting the volumesnapshotclass. To work around this issue, recreate the volumesnapshotclass. 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 (Moderate: Red Hat OpenShift Container Storage 4.7.0 security, bug fix, and enhancement 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-2021:2041 |