Open hterik opened 3 days ago
Hmmm, it appears like it works if in step 7 i change the
volumeHandle: /subscriptions/SUBSCRIPTION_ID/resourcegroups/IntermediateRG/providers/Microsoft.Compute/disks/restored-disk2
to
volumeHandle: /subscriptions/SUBSCRIPTION_ID/resourceGroups/IntermediateRG/providers/Microsoft.Compute/disks/restored-disk2
.
The only difference is the camelCasing of resourceGroups
.
This is inconsistent with the full Resource ID given by the Azure portal, where i used the copy-to-clipboard button, giving a faulty resourcegroups
value without capital G
:
Describe the bug My goal is to copy a PVC from one AKS cluster to another.
I am doing so by first cloning the disk from the source MC_-resource group into a manually managed resource group, then importing that disk via
volumeHandle
into the new cluster. This is based on piecing together building blocks from https://learn.microsoft.com/en-us/azure/aks/azure-disk-csi#volume-snapshots https://learn.microsoft.com/en-us/azure/aks/csi-disk-move-subscriptionsFollowing the guide exactly works, when it breaks down is when you want to make a clone of the newly imported PVC, using it as a
dataSource
. That results inProvisioningFailed
error event on the cloned PVC likefailed to provision volume with StorageClass "managed-csi": rpc error: code = Internal desc = sourceResourceID(/subscriptions/SUBSCRIPTION_ID/resourceGroups/mc_destcluster_westeurope/providers/Microsoft.Compute/disks//subscriptions/SUBSCRIPTION_ID/resourcegroups/IntermediateRG/providers/Microsoft.Compute/disks/restored-disk2) is invalid, correct format: .*/subscriptions/(?:.*)/resourceGroups/(?:.*)/providers/Microsoft.Compute/disks/(.+)
Notice that the path appears to partially duplicated, pointing to both resource groups, with an odd
/disks//subscriptions
in the middle.To Reproduce First, in the source-cluster:
Create a PVC using azure disk CSI driver, called
original-pvc
Create a VolumeSnapshotClass to create snapshots in a different resourcegroup (
IntermediateRG
):Create
VolumeSnapshot
that creates a snapshot oforiginal-pvc
inIntermediateRG
kind: PersistentVolume metadata: name: pv-moveddisk2 spec: capacity: storage: 10Gi accessModes:
kind: PersistentVolumeClaim metadata: name: pvc-clone spec: accessModes:
Expected behavior
MC_
resource group.Environment (please complete the following information):