-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
4.19
-
Important
-
None
-
Rejected
-
False
-
Description of problem:
VolumeSnapshot in cross-subscriptions could not be deleted and reports "Resource group 'xxx' could not be found."
Version-Release number of selected component (if applicable):
4.19
How reproducible:
Always
Steps to Reproduce:
1. Create cluster in subscription A 2. Create resourcegroup(wduan-cross-subs) in subscription B 3. Create azure-file share pvc in resourcegroup(wduan-cross-subs) in subscription B which specified in storageclass 4. Creaet volumesnapshot for this share pvc and waiting for ready-to-use: true 5. Delele volumesnapshot
Actual results:
The deletion cmd hung and the volumesnapshot cannot be deleted: $ oc delete volumesnapshot mysnapshot volumesnapshot.snapshot.storage.k8s.io "mysnapshot" deleted ^C $ oc get volumesnapshot mysnapshotNAME READYTOUSE SOURCEPVC SOURCESNAPSHOTCONTENT RESTORESIZE SNAPSHOTCLASS SNAPSHOTCONTENT CREATIONTIME AGEmysnapshot true mypvc-azurefile-csi-test-16-sub 3Gi csi-azurefile-vsc snapcontent-760ba055-2807-4503-a8e3-12f0c4bcfd32 33m 33m
The log from the csi-driver: I0411 08:49:17.464684 1 utils.go:105] GRPC call: /csi.v1.Controller/DeleteSnapshot I0411 08:49:17.464715 1 utils.go:106] GRPC request: {"snapshot_id":"wduan-cross-subs#f1db47bac2ca6499697871f#pvc-e1b1ad35-2020-4997-9857-6e00e7720591###wduan-snap#a6665e84-ec61-4111-a6d3-db3903e202dc#2025-04-11T08:47:44.0000000Z"} E0411 08:49:17.618635 1 utils.go:110] GRPC error: rpc error: code = Internal desc = failed to delete snapshot(2025-04-11T08:47:44.0000000Z): DELETE https://management.azure.com/subscriptions/53b8f551-f0fc-4bea-8cba-6d1fefd54c8a/resourceGroups/wduan-cross-subs/providers/Microsoft.Storage/storageAccounts/f1db47bac2ca6499697871f/fileServices/default/shares/pvc-e1b1ad35-2020-4997-9857-6e00e7720591 -------------------------------------------------------------------------------- RESPONSE 404: 404 Not Found ERROR CODE: ResourceGroupNotFound -------------------------------------------------------------------------------- { "error": { "code": "ResourceGroupNotFound", "message": "Resource group 'wduan-cross-subs' could not be found." } }
Expected results:
The volumesnapshot should be deleted successfullly.
Additional info:
- blocks
-
OCPBUGS-55831 [Azure-File-CSI-Driver] VolumeSnapshot in cross-subscriptions could not be deleted
-
- Closed
-
- is cloned by
-
OCPBUGS-55831 [Azure-File-CSI-Driver] VolumeSnapshot in cross-subscriptions could not be deleted
-
- Closed
-
- links to