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

Bug 1905851

Summary: [REF] Create volumesnapshotclass for Manila csi driver by default Storage/Manila CSI Driver
Product: OpenShift Container Platform Reporter: Wei Duan <wduan>
Component: StorageAssignee: Mike Fedosin <mfedosin>
Storage sub component: OpenStack CSI Drivers QA Contact: rlobillo
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: low CC: aos-bugs, itbrown, jsafrane, m.andre, pprinett
Version: 4.7Keywords: Triaged
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:28:58 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 Wei Duan 2020-12-09 08:37:28 UTC
Description of problem:
Currently, there is no volumesnapshotclass is created after manila csi driver installed. 
As manila csi driver supports volume snapshot, it is better to create and manage a volumesnapshotclass by manila csi driver operator. 

Version-Release number of selected component (if applicable):
4.7.0-0.nightly-2020-12-04-013308

How reproducible:
Always

Steps to Reproduce:
1. Install OSP cluster and manila csi driver is installed. 
2. Check the volumesnapshotclass 
$ oc get volumesnapshotclass

Actual results:
$ oc get volumesnapshotclass
No resources found

Expected results:
There should be volumesnapshotclass for usage.

Comment 6 rlobillo 2021-07-28 07:33:27 UTC
On 4.8.0-0.nightly-2021-07-23-040636 over OSP16.1 (RHOS-16.1-RHEL-8-20210604.n.0), there is only one volumesnapshotclass and it is for cinder.csi:

$ oc get volumesnapshotclass
NAME           DRIVER                     DELETIONPOLICY   AGE
standard-csi   cinder.csi.openstack.org   Delete           4d17h
$ oc get volumesnapshotclass standard-csi -o yaml
apiVersion: snapshot.storage.k8s.io/v1
deletionPolicy: Delete
driver: cinder.csi.openstack.org
kind: VolumeSnapshotClass
metadata:
  annotations:
    snapshot.storage.kubernetes.io/is-default-class: "true"
  creationTimestamp: "2021-07-23T13:45:23Z"
  generation: 1
  name: standard-csi
  resourceVersion: "9877"
  uid: 86a26c5c-123d-4fe4-82c0-7370b3d98dc0
parameters:
  force-create: "false"

However, manila is enabled on the cluster:

$ oc get sc/csi-manila-default -o yaml
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  creationTimestamp: "2021-07-23T13:44:44Z"
  name: csi-manila-default
  resourceVersion: "8778"
  uid: c3e1913e-ccab-4984-bc9a-32a9ef9cbbc2
parameters:
  csi.storage.k8s.io/node-publish-secret-name: csi-manila-secrets
  csi.storage.k8s.io/node-publish-secret-namespace: openshift-manila-csi-driver
  csi.storage.k8s.io/node-stage-secret-name: csi-manila-secrets
  csi.storage.k8s.io/node-stage-secret-namespace: openshift-manila-csi-driver
  csi.storage.k8s.io/provisioner-secret-name: csi-manila-secrets
  csi.storage.k8s.io/provisioner-secret-namespace: openshift-manila-csi-driver
  type: default
provisioner: manila.csi.openstack.org
reclaimPolicy: Delete
volumeBindingMode: Immediate

It is pending to confirm the different behaviour on OCP4.9 to verify the BZ.

Comment 7 rlobillo 2021-07-28 10:29:14 UTC
Verified on OCP4.9.0-0.nightly-2021-07-27-181211 on OSP16.1 (RHOS-16.1-RHEL-8-20210604.n.0)

After running successful IPI installation:

$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.9.0-0.nightly-2021-07-27-181211   True        False         7m51s   Cluster version is 4.9.0-0.nightly-2021-07-27-181211

$ oc get volumesnapshotclass
NAME                  DRIVER                     DELETIONPOLICY   AGE
csi-manila-standard   manila.csi.openstack.org   Delete           52m
standard-csi          cinder.csi.openstack.org   Delete           53m

$ oc get volumesnapshotclass csi-manila-standard -o yaml
apiVersion: snapshot.storage.k8s.io/v1
deletionPolicy: Delete
driver: manila.csi.openstack.org
kind: VolumeSnapshotClass
metadata:
  creationTimestamp: "2021-07-28T09:34:14Z"
  generation: 1
  name: csi-manila-standard
  resourceVersion: "25674"
  uid: 144dec78-e50b-46a3-84ff-1ca4078d8324
parameters:
  force-create: "false"

Comment 10 errata-xmlrpc 2021-10-18 17:28:58 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 (Moderate: OpenShift Container Platform 4.9.0 bug fix and security 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:3759