Bug 2092417
| Summary: | [MS v2] Default storageclassclaims are not created in upgraded clusters | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat OpenShift Data Foundation | Reporter: | Jilju Joy <jijoy> |
| Component: | ocs-operator | Assignee: | Subham Rai <srai> |
| Status: | VERIFIED --- | QA Contact: | Jilju Joy <jijoy> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.11 | CC: | muagarwa, nberry, odf-bz-bot, sostapov, srai |
| Target Milestone: | --- | ||
| Target Release: | ODF 4.11.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 4.11.0-124 | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 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
Jilju Joy
2022-06-01 13:55:00 UTC
Note: Verify the presence of the default storageclassclaims after upgrade to 4.11 Verify that the volumesnapshotclasses are created. Fixed bug #2092417 to create volumesnapshotclass per storageclassclaim. When the default storageclassclaims are created, the volumesnapshotclasses will be created automatically. Verify volume snapshot and restore is working. Verification blocked due to the bug #2114678 Verified in version:
ODF 4.11.0-131
OCP 4.10.24
$ oc get csv
NAME DISPLAY VERSION REPLACES PHASE
mcg-operator.v4.11.0 NooBaa Operator 4.11.0 mcg-operator.v4.10.5 Succeeded
ocs-operator.v4.11.0 OpenShift Container Storage 4.11.0 ocs-operator.v4.10.5 Succeeded
ocs-osd-deployer.v2.0.4 OCS OSD Deployer 2.0.4 ocs-osd-deployer.v2.0.3 Succeeded
odf-csi-addons-operator.v4.11.0 CSI Addons 4.11.0 odf-csi-addons-operator.v4.10.5 Succeeded
odf-operator.v4.11.0 OpenShift Data Foundation 4.11.0 odf-operator.v4.10.4 Succeeded
ose-prometheus-operator.4.10.0 Prometheus Operator 4.10.0 ose-prometheus-operator.4.8.0 Succeeded
route-monitor-operator.v0.1.422-151be96 Route Monitor Operator 0.1.422-151be96 route-monitor-operator.v0.1.420-b65f47e Succeeded
Default storageclassclaims are created after upgrading the consumer cluster to 4.11.0.
$ oc get storageclassclaim
NAME STORAGETYPE PHASE
ocs-storagecluster-ceph-rbd blockpool Ready
ocs-storagecluster-cephfs sharedfilesystem Ready
$ oc get storageclassclaim -o yaml
apiVersion: v1
items:
- apiVersion: ocs.openshift.io/v1alpha1
kind: StorageClassClaim
metadata:
creationTimestamp: "2022-08-08T08:31:27Z"
finalizers:
- storageclassclaim.ocs.openshift.io
generation: 1
labels:
storageclassclaim.ocs.openshift.io/default: "true"
name: ocs-storagecluster-ceph-rbd
namespace: openshift-storage
ownerReferences:
- apiVersion: ocs.openshift.io/v1
kind: StorageCluster
name: ocs-storagecluster
uid: 1164180b-855c-4bfb-913c-bc86b8578baf
resourceVersion: "238118"
uid: af5fd773-9c4e-4dcf-9e18-5561709f16a0
spec:
type: blockpool
status:
phase: Ready
- apiVersion: ocs.openshift.io/v1alpha1
kind: StorageClassClaim
metadata:
creationTimestamp: "2022-08-08T08:31:27Z"
finalizers:
- storageclassclaim.ocs.openshift.io
generation: 1
labels:
storageclassclaim.ocs.openshift.io/default: "true"
name: ocs-storagecluster-cephfs
namespace: openshift-storage
ownerReferences:
- apiVersion: ocs.openshift.io/v1
kind: StorageCluster
name: ocs-storagecluster
uid: 1164180b-855c-4bfb-913c-bc86b8578baf
resourceVersion: "237840"
uid: 2ecf1836-01a7-4d24-a78f-c753f53afcf6
spec:
type: sharedfilesystem
status:
phase: Ready
kind: List
metadata:
resourceVersion: ""
selfLink: ""
$ oc get sc
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
gp2 kubernetes.io/aws-ebs Delete WaitForFirstConsumer true 3h36m
gp2-csi ebs.csi.aws.com Delete WaitForFirstConsumer true 3h34m
gp3 (default) ebs.csi.aws.com Delete WaitForFirstConsumer true 3h36m
gp3-csi ebs.csi.aws.com Delete WaitForFirstConsumer true 3h34m
ocs-storagecluster-ceph-rbd openshift-storage.rbd.csi.ceph.com Delete Immediate true 105m
ocs-storagecluster-cephfs openshift-storage.cephfs.csi.ceph.com Delete Immediate true 105m
Also verified that the default volumesnapshotclasses are created (bug #2092417). Tested volume snapshot and restore.
$ oc get volumesnapshotclass
NAME DRIVER DELETIONPOLICY AGE
csi-aws-vsc ebs.csi.aws.com Delete 3h36m
ocs-storagecluster-ceph-rbd openshift-storage.rbd.csi.ceph.com Delete 107m
ocs-storagecluster-cephfs openshift-storage.cephfs.csi.ceph.com Delete 107m
$ oc get volumesnapshotclass ocs-storagecluster-ceph-rbd ocs-storagecluster-cephfs -o yaml
apiVersion: v1
items:
- apiVersion: snapshot.storage.k8s.io/v1
deletionPolicy: Delete
driver: openshift-storage.rbd.csi.ceph.com
kind: VolumeSnapshotClass
metadata:
annotations:
ocs.openshift.io.storagesclassclaim: openshift-storage/ocs-storagecluster-ceph-rbd
creationTimestamp: "2022-08-08T08:31:39Z"
generation: 1
name: ocs-storagecluster-ceph-rbd
resourceVersion: "238116"
uid: 0ad9d4bf-9ad8-43be-9a26-04cb5fb9a03c
parameters:
clusterID: openshift-storage
csi.storage.k8s.io/snapshotter-secret-name: rook-ceph-client-29f4710e2768d92b7ef3490a96cecb02
csi.storage.k8s.io/snapshotter-secret-namespace: openshift-storage
- apiVersion: snapshot.storage.k8s.io/v1
deletionPolicy: Delete
driver: openshift-storage.cephfs.csi.ceph.com
kind: VolumeSnapshotClass
metadata:
annotations:
ocs.openshift.io.storagesclassclaim: openshift-storage/ocs-storagecluster-cephfs
creationTimestamp: "2022-08-08T08:31:34Z"
generation: 1
name: ocs-storagecluster-cephfs
resourceVersion: "237838"
uid: d15635c3-0909-421b-92f6-ed8a9f5568de
parameters:
clusterID: e9c26c5b5c58f4f522d715929a2187e7
csi.storage.k8s.io/snapshotter-secret-name: rook-ceph-client-26f7c7294dfa096f4b2b470dd3c1b7e7
csi.storage.k8s.io/snapshotter-secret-namespace: openshift-storage
kind: List
metadata:
resourceVersion: ""
selfLink: ""
|