Closed vrushch closed 8 months ago
@saurabhwani5 please recheck this one
we can see error logs in snapshotter pod and snapshot description as following for dependent fileset as following snapshot sidecar pods logs :
I0205 08:49:08.082328 1 snapshot_controller_base.go:162] enqueued "snapcontent-6a710a10-a399-497c-a61f-67c30d94f0f0" for sync
I0205 08:49:08.082447 1 snapshot_controller.go:648] Removed VolumeSnapshotBeingCreated annotation from volume snapshot content snapcontent-6a710a10-a399-497c-a61f-67c30d94f0f0
I0205 08:49:08.082464 1 util.go:216] storeObjectUpdate updating content "snapcontent-6a710a10-a399-497c-a61f-67c30d94f0f0" with version 22572295
I0205 08:49:08.082504 1 snapshot_controller.go:144] updateContentStatusWithEvent[snapcontent-6a710a10-a399-497c-a61f-67c30d94f0f0]
I0205 08:49:08.091859 1 util.go:216] storeObjectUpdate updating content "snapcontent-6a710a10-a399-497c-a61f-67c30d94f0f0" with version 22572296
E0205 08:49:08.091874 1 snapshot_controller.go:107] createSnapshot for content [snapcontent-6a710a10-a399-497c-a61f-67c30d94f0f0]: error occurred in createSnapshotWrapper: failed to take snapshot of the volume 0;1;4181049054023231843;263B0B0A:6589AA52;;pvc-f60f272c-da05-45bf-88b6-d24472ba107b;/mnt/fs0/primary-fileset-fs0-9999915105066266935/.volumes/pvc-f60f272c-da05-45bf-88b6-d24472ba107b: "rpc error: code = Internal desc = unable to create snapshot [snapshot-6a710a10-a399-497c-a61f-67c30d94f0f0]. Error [[EFSSG0579C Fileset snapshots can only be taken from independent filesets.]]"
snapshot description :
Status:
Bound Volume Snapshot Content Name: snapcontent-6a710a10-a399-497c-a61f-67c30d94f0f0
Error:
Message: Failed to check and update snapshot content: failed to take snapshot of the volume 0;1;4181049054023231843;263B0B0A:6589AA52;;pvc-f60f272c-da05-45bf-88b6-d24472ba107b;/mnt/fs0/primary-fileset-fs0-9999915105066266935/.volumes/pvc-f60f272c-da05-45bf-88b6-d24472ba107b: "rpc error: code = Internal desc = unable to create snapshot [snapshot-6a710a10-a399-497c-a61f-67c30d94f0f0]. Error [[EFSSG0579C Fileset snapshots can only be taken from independent filesets.]]"
Time: 2024-02-05T08:49:23Z
Ready To Use: false
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning GetSnapshotClassFailed 4m38s snapshot-controller Failed to get snapshot class with error volumesnapshotclass.snapshot.storage.k8s.io "ibm-spectrum-scale-snapshotclass-advance" not found
Normal CreatingSnapshot 4m38s snapshot-controller Waiting for a snapshot ibm-spectrum-scale-csi/ibm-spectrum-scale-snapshot to be created by the CSI driver.
closing as issue is fixed
Describe the bug
In case of volumesnapshot of PVC with dependent Storageclass , snapshotter logs do not show following error message
"Volume snapshot can only be created when source volume is independent fileset" whereas in case of LW storageclass above error message is shown. Above message should be shown as user can find out why its volumesnapshot is not in readytouse True state
To Reproduce Trying to create snapshot of PVC with Dependent StorageClass
Logs in Snapshotter pod
Trying to create snapshot of PVC with LW StorageClass
Logs in Snapshotter pod
Expected behavior In case of volumesnapshot of PVC with dependent Storageclass , following error message should be shown "Volume snapshot can only be created when source volume is independent fileset"
Environment