-
Bug
-
Resolution: Unresolved
-
Undefined
-
4.12
-
None
-
None
-
Storage Sprint 226
-
1
-
False
-
Description of problem:
Failed to create volumesnapshotcontent
Version-Release number of selected component (if applicable):
4.12.0-0.ci.test-2022-10-20-021805-ci-ln-5sll3pk-latest
How reproducible:
Always
Steps to Reproduce:
1.Create pvc/pod/volumesnapshot 2.oc get volumesnapshot -n test NAME READYTOUSE SOURCEPVC SOURCESNAPSHOTCONTENT RESTORESIZE SNAPSHOTCLASS SNAPSHOTCONTENT CREATIONTIME AGE new-snapshot-test-1 false pvc3 vpc-block-snapshot snapcontent-1bdfdbaa-e781-41d3-ba35-cea44a18e85c 112m 3. Name: new-snapshot-test-1 Namespace: test Labels: <none> Annotations: <none> API Version: snapshot.storage.k8s.io/v1 Kind: VolumeSnapshot Metadata: Creation Timestamp: 2022-10-21T06:52:53Z Finalizers: snapshot.storage.kubernetes.io/volumesnapshot-as-source-protection snapshot.storage.kubernetes.io/volumesnapshot-bound-protection Generation: 1 Managed Fields: API Version: snapshot.storage.k8s.io/v1 Fields Type: FieldsV1 fieldsV1: f:spec: .: f:source: .: f:persistentVolumeClaimName: f:volumeSnapshotClassName: Manager: kubectl-create Operation: Update Time: 2022-10-21T06:52:53Z API Version: snapshot.storage.k8s.io/v1 Fields Type: FieldsV1 fieldsV1: f:metadata: f:finalizers: .: v:"snapshot.storage.kubernetes.io/volumesnapshot-as-source-protection": v:"snapshot.storage.kubernetes.io/volumesnapshot-bound-protection": Manager: snapshot-controller Operation: Update Time: 2022-10-21T06:52:54Z API Version: snapshot.storage.k8s.io/v1 Fields Type: FieldsV1 fieldsV1: f:status: .: f:boundVolumeSnapshotContentName: f:readyToUse: Manager: snapshot-controller Operation: Update Subresource: status Time: 2022-10-21T06:52:54Z Resource Version: 123491 UID: 1bdfdbaa-e781-41d3-ba35-cea44a18e85c Spec: Source: Persistent Volume Claim Name: pvc3 Volume Snapshot Class Name: vpc-block-snapshot Status: Bound Volume Snapshot Content Name: snapcontent-1bdfdbaa-e781-41d3-ba35-cea44a18e85c Ready To Use: false Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal CreatingSnapshot 113m snapshot-controller Waiting for a snapshot test/new-snapshot-test-1 to be created by the CSI driver.
Actual results:
4. oc get volumesnapshotcontent NAME READYTOUSE RESTORESIZE DELETIONPOLICY DRIVER VOLUMESNAPSHOTCLASS VOLUMESNAPSHOT VOLUMESNAPSHOTNAMESPACE AGE snapcontent-1bdfdbaa-e781-41d3-ba35-cea44a18e85c Delete vpc.block.csi.ibm.io vpc-block-snapshot new-snapshot-test-1 test 114m 5. oc describe volumesnapshotcontent/snapcontent-1bdfdbaa-e781-41d3-ba35-cea44a18e85c Name: snapcontent-1bdfdbaa-e781-41d3-ba35-cea44a18e85c Namespace: Labels: <none> Annotations: <none> API Version: snapshot.storage.k8s.io/v1 Kind: VolumeSnapshotContent Metadata: Creation Timestamp: 2022-10-21T06:52:54Z Finalizers: snapshot.storage.kubernetes.io/volumesnapshotcontent-bound-protection Generation: 1 Managed Fields: API Version: snapshot.storage.k8s.io/v1 Fields Type: FieldsV1 fieldsV1: f:metadata: f:finalizers: .: v:"snapshot.storage.kubernetes.io/volumesnapshotcontent-bound-protection": f:spec: .: f:deletionPolicy: f:driver: f:source: .: f:volumeHandle: f:volumeSnapshotClassName: f:volumeSnapshotRef: .: f:apiVersion: f:kind: f:name: f:namespace: f:resourceVersion: f:uid: Manager: snapshot-controller Operation: Update Time: 2022-10-21T06:52:54Z Resource Version: 123488 UID: dafde007-cbd2-49db-b86d-37451821a68b Spec: Deletion Policy: Delete Driver: vpc.block.csi.ibm.io Source: Volume Handle: r018-9e21cb4e-480e-472a-b895-feacd283e202 Volume Snapshot Class Name: vpc-block-snapshot Volume Snapshot Ref: API Version: snapshot.storage.k8s.io/v1 Kind: VolumeSnapshot Name: new-snapshot-test-1 Namespace: test Resource Version: 123484 UID: 1bdfdbaa-e781-41d3-ba35-cea44a18e85c Events: Type Reason Age From Message ---- ------ ---- ---- ------- Warning SnapshotCreationFailed 4m37s (x173 over 114m) csi-snapshotter vpc.block.csi.ibm.io Failed to create snapshot: failed to add VolumeSnapshotBeingCreated annotation on the content snapcontent-1bdfdbaa-e781-41d3-ba35-cea44a18e85c: "snapshot controller failed to update snapcontent-1bdfdbaa-e781-41d3-ba35-cea44a18e85c on API server: volumesnapshotcontents.snapshot.storage.k8s.io \"snapcontent-1bdfdbaa-e781-41d3-ba35-cea44a18e85c\" is forbidden: User \"system:serviceaccount:openshift-cluster-csi-drivers:ibm-vpc-block-controller-sa\" cannot patch resource \"volumesnapshotcontents\" in API group \"snapshot.storage.k8s.io\" at the cluster scope"
Expected results:
Additional info: