Hi,
I was backing up my k8s cluster and using azure storage for exporting that backup.
Backup was successful but exporting to azure storage got failed.
Below is the error message for the same. Please check. Also attaching k10 debug logs.
Thanks
cause:
cause:
cause:
message: 'e"{\"message\":\"Failed to export snapshot
data\",\"function\":\"kasten.io/k10/kio/exec/phases/phase.(*artifactCopier).convertSnapshots.func1\",\"linenumber\":408,\"file\":\"kasten.io/k10/kio/exec/phases/phase/copy_snapshots.go:408\",\"fields\":"{\"name\":\"type\",\"value\":\"AD\"},{\"name\":\"id\",\"value\":\"/subscriptions/4e745d58-627d-48cb-b1e6-9e3118cebad6/resourceGroups/mc_swa-backup-aks-rg_swa-backup-aks_westus2/providers/Microsoft.Compute/snapshots/snap-61e7a141-e879-11ec-8d60-b6187d49b704\"}],\"cause\":{\"message\":\"Error
creating portable
snapshot\",\"function\":\"kasten.io/k10/kio/exec/phases/phase.(*gvcConverter).Convert\",\"linenumber\":1178,\"file\":\"kasten.io/k10/kio/exec/phases/phase/copy_snapshots.go:1178\",\"cause\":{\"message\":\"Unable
to create PV for
volume\",\"function\":\"kasten.io/k10/kio/exec/phases/phase.createPersistentVolumeAndClaim\",\"linenumber\":127,\"file\":\"kasten.io/k10/kio/exec/phases/phase/volume.go:127\",\"fields\":e{\"name\":\"vol\",\"value\":{\"attributes\":\{\"key\":\"Users\"}],\"az\":\"westus2\",\"creationTime\":\"2022-06-10T05:43:21.877Z\",\"id\":\"/subscriptions/4e745d58-627d-48cb-b1e6-9e3118cebad6/resourceGroups/mc_swa-backup-aks-rg_swa-backup-aks_westus2/providers/Microsoft.Compute/disks/vol-3c99fee8-e880-11ec-8d60-b6187d49b704\",\"size\":107374182400,\"sizeUnit\":\"B\",\"tags\":,{\"key\":\"kasten_io_manifestid\",\"value\":\"8e899f23-e879-11ec-9d68-7ef14d2bf471\"},{\"key\":\"kubernetes_io-created-for-pv-name\",\"value\":\"pvc-d36d14f6-30e9-4771-876b-bef774a14e54\"},{\"key\":\"kubernetes_io-created-for-pvc-name\",\"value\":\"testenv5-devset-testenv5-data-0-q22pg\"},{\"key\":\"kubernetes_io-created-for-pvc-namespace\",\"value\":\"testenv5\"},{\"key\":\"name\",\"value\":\"kasten__migratesend-8e899f23-e879-11ec-9d68-7ef14d2bf471\"},{\"key\":\"k8s-azure-created-by\",\"value\":\"kubernetes-azure-dd\"},{\"key\":\"kasten_io_jobid\",\"value\":\"8e8a7331-e879-11ec-845c-12c68f26d14c\"}],\"type\":\"AD\",\"users\":null,\"volumeType\":\"Premium_LRS\"}}],\"cause\":{\"message\":\"Unable
to create PV for
volume\",\"function\":\"kasten.io/k10/kio/kube.CreatePVFromPV\",\"linenumber\":309,\"file\":\"kasten.io/k10/kio/kube/volume.go:309\",\"fields\":/{\"name\":\"vol\",\"value\":{\"metadata\":{\"name\":\"kio-8e899f23e87911ec9d687ef14d2bf471-7\",\"creationTimestamp\":null,\"labels\":{\"failure-domain.beta.kubernetes.io/region\":\"westus2\",\"k10pvmatchid\":\"vol-3c99fee8-e880-11ec-8d60-b6187d49b704\"},\"annotations\":{\"kasten.io/jobid\":\"8e8a7331-e879-11ec-845c-12c68f26d14c\",\"kasten.io/manifestid\":\"8e899f23-e879-11ec-9d68-7ef14d2bf471\"}},\"spec\":{\"capacity\":{\"storage\":\"107374182400\"},\"azureDisk\":{\"diskName\":\"vol-3c99fee8-e880-11ec-8d60-b6187d49b704\",\"diskURI\":\"/subscriptions/4e745d58-627d-48cb-b1e6-9e3118cebad6/resourceGroups/mc_swa-backup-aks-rg_swa-backup-aks_westus2/providers/Microsoft.Compute/disks/vol-3c99fee8-e880-11ec-8d60-b6187d49b704\",\"kind\":\"Managed\"},\"accessModes\":"\"ReadWriteOnce\"],\"claimRef\":{\"kind\":\"PersistentVolumeClaim\",\"namespace\":\"kasten-io\",\"name\":\"kio-8e899f23e87911ec9d687ef14d2bf471-7\",\"apiVersion\":\"v1\"},\"persistentVolumeReclaimPolicy\":\"Delete\",\"storageClassName\":\"gp2\"},\"status\":{}}}],\"cause\":{\"message\":\"persistentvolumes
\\\"kio-8e899f23e87911ec9d687ef14d2bf471-7\\\" already
exists\"}}}}}","{\"message\":\"Failed to export snapshot
data\",\"function\":\"kasten.io/k10/kio/exec/phases/phase.(*artifactCopier).convertSnapshots.func1\",\"linenumber\":408,\"file\":\"kasten.io/k10/kio/exec/phases/phase/copy_snapshots.go:408\",\"fields\":/{\"name\":\"type\",\"value\":\"AD\"},{\"name\":\"id\",\"value\":\"/subscriptions/4e745d58-627d-48cb-b1e6-9e3118cebad6/resourceGroups/mc_swa-backup-aks-rg_swa-backup-aks_westus2/providers/Microsoft.Compute/snapshots/snap-60f21604-e879-11ec-8d60-b6187d49b704\"}],\"cause\":{\"message\":\"Error
creating portable
snapshot\",\"function\":\"kasten.io/k10/kio/exec/phases/phase.(*gvcConverter).Convert\",\"linenumber\":1178,\"file\":\"kasten.io/k10/kio/exec/phases/phase/copy_snapshots.go:1178\",\"cause\":{\"message\":\"ActionSet
Failed\",\"function\":\"kasten.io/k10/kio/kanister.(*Operation).Execute\",\"linenumber\":114,\"file\":\"kasten.io/k10/kio/kanister/operation.go:114\",\"fields\":"{\"name\":\"message\",\"value\":\"{\\\"message\\\":\\\"Failed
while waiting for Pod to be
ready\\\",\\\"function\\\":\\\"kasten.io/k10/kio/kanister/function.copyVolumeDataPodFunc.func1\\\",\\\"linenumber\\\":153,\\\"file\\\":\\\"kasten.io/k10/kio/kanister/function/copy_volume_data.go:153\\\",\\\"fields\\\":k{\\\"name\\\":\\\"pod\\\",\\\"value\\\":\\\"copy-vol-data-nvgrk\\\"}],\\\"cause\\\":{\\\"message\\\":\\\"Pod
did not transition into running state.
Timeout:15m0s Namespace:kasten-io, Name:copy-vol-data-nvgrk: context
deadline
exceeded\\\"}}\"},{\"name\":\"actionSet\",\"value\":{\"metadata\":{\"name\":\"k10-copy-k10-persistentvolumeclaim-generic-volume-2.0.20-klmzss\",\"generateName\":\"k10-copy-k10-persistentvolumeclaim-generic-volume-2.0.20-kio-8e899f23e87911ec9d687ef14d2bf471-6-kasten-io-pvc-\",\"namespace\":\"kasten-io\",\"uid\":\"1449fcad-cced-45ba-86f8-c1ee683d40c4\",\"resourceVersion\":\"317925\",\"generation\":4,\"creationTimestamp\":\"2022-06-10T05:43:25Z\",\"labels\":{\"kanister.io/JobID\":\"8e8a7331-e879-11ec-845c-12c68f26d14c\"},\"managedFields\":\{\"manager\":\"Go-http-client\",\"operation\":\"Update\",\"apiVersion\":\"cr.kanister.io/v1alpha1\",\"time\":\"2022-06-10T05:43:25Z\",\"fieldsType\":\"FieldsV1\",\"fieldsV1\":{\"f:metadata\":{\"f:generateName\":{},\"f:labels\":{\".\":{},\"f:kanister.io/JobID\":{}}},\"f:spec\":{\".\":{},\"f:actions\":{}},\"f:status\":{\".\":{},\"f:actions\":{},\"f:error\":{\".\":{},\"f:message\":{}},\"f:state\":{}}}}]},\"spec\":{\"actions\"::{\"name\":\"copy\",\"object\":{\"apiVersion\":\"\",\"group\":\"\",\"resource\":\"\",\"kind\":\"pvc\",\"name\":\"kio-8e899f23e87911ec9d687ef14d2bf471-6\",\"namespace\":\"kasten-io\"},\"blueprint\":\"k10-persistentvolumeclaim-generic-volume-2.0.20\",\"secrets\":{\"artifactKey\":{\"apiVersion\":\"\",\"group\":\"\",\"resource\":\"\",\"kind\":\"secret\",\"name\":\"k10-content-store-passphrase-8qkhf\",\"namespace\":\"kasten-io\"}},\"profile\":{\"apiVersion\":\"v1alpha1\",\"group\":\"\",\"resource\":\"\",\"kind\":\"profile\",\"name\":\"kanister-portable-copy-xlz5g\",\"namespace\":\"kasten-io\"},\"podOverride\":{\"securityContext\":{\"runAsNonRoot\":false,\"runAsUser\":0},\"tolerations\":r{\"effect\":\"NoExecute\",\"key\":\"node.kubernetes.io/not-ready\",\"operator\":\"Exists\",\"tolerationSeconds\":300},{\"effect\":\"NoExecute\",\"key\":\"node.kubernetes.io/unreachable\",\"operator\":\"Exists\",\"tolerationSeconds\":300},{\"effect\":\"NoSchedule\",\"key\":\"node.kubernetes.io/memory-pressure\",\"operator\":\"Exists\"}]},\"options\":{\"hostName\":\"033ec89c-513d-4aa5-8092-c7e80d30c707.rook-ceph-osd-0.testenv5-devset-testenv5-data-2-mxbrd\",\"objectStorePath\":\"repo/033ec89c-513d-4aa5-8092-c7e80d30c707/\",\"pvcRepository\":\"repo/033ec89c-513d-4aa5-8092-c7e80d30c707/\",\"userName\":\"k10-admin\"},\"preferredVersion\":\"v1.0.0-alpha\"}]},\"status\":{\"state\":\"failed\",\"actions\":\{\"name\":\"copy\",\"object\":{\"apiVersion\":\"\",\"group\":\"\",\"resource\":\"\",\"kind\":\"pvc\",\"name\":\"kio-8e899f23e87911ec9d687ef14d2bf471-6\",\"namespace\":\"kasten-io\"},\"blueprint\":\"k10-persistentvolumeclaim-generic-volume-2.0.20\",\"phases\":e{\"name\":\"copyToObjectStore\",\"state\":\"failed\"}],\"artifacts\":{\"snapshot\":{\"keyValue\":{\"backupIdentifier\":\"{{
.Phases.copyToObjectStore.Output.backupID }}\",\"backupPath\":\"{{
.Phases.copyToObjectStore.Output.backupRoot }}\",\"funcVersion\":\"{{
.Phases.copyToObjectStore.Output.version }}\",\"objectStorePath\":\"{{
.Options.pvcRepository }}\",\"phySize\":\"{{
.Phases.copyToObjectStore.Output.phySize }}\",\"size\":\"{{
.Phases.copyToObjectStore.Output.size
}}\"}}},\"deferPhase\":{\"name\":\"\",\"state\":\"\"}}],\"error\":{\"message\":\"{\\\"message\\\":\\\"Failed
while waiting for Pod to be
ready\\\",\\\"function\\\":\\\"kasten.io/k10/kio/kanister/function.copyVolumeDataPodFunc.func1\\\",\\\"linenumber\\\":153,\\\"file\\\":\\\"kasten.io/k10/kio/kanister/function/copy_volume_data.go:153\\\",\\\"fields\\\":\{\\\"name\\\":\\\"pod\\\",\\\"value\\\":\\\"copy-vol-data-nvgrk\\\"}],\\\"cause\\\":{\\\"message\\\":\\\"Pod
did not transition into running state.
Timeout:15m0s Namespace:kasten-io, Name:copy-vol-data-nvgrk: context
deadline exceeded\\\"}}\"}}}}]}}}","{\"message\":\"Failed to export
snapshot
data\",\"function\":\"kasten.io/k10/kio/exec/phases/phase.(*artifactCopier).convertSnapshots.func1\",\"linenumber\":408,\"file\":\"kasten.io/k10/kio/exec/phases/phase/copy_snapshots.go:408\",\"fields\":*{\"name\":\"type\",\"value\":\"AD\"},{\"name\":\"id\",\"value\":\"/subscriptions/4e745d58-627d-48cb-b1e6-9e3118cebad6/resourceGroups/mc_swa-backup-aks-rg_swa-backup-aks_westus2/providers/Microsoft.Compute/snapshots/snap-642b2894-e879-11ec-8d60-b6187d49b704\"}],\"cause\":{\"message\":\"Error
creating portable
snapshot\",\"function\":\"kasten.io/k10/kio/exec/phases/phase.(*gvcConverter).Convert\",\"linenumber\":1178,\"file\":\"kasten.io/k10/kio/exec/phases/phase/copy_snapshots.go:1178\",\"cause\":{\"message\":\"ActionSet
Failed\",\"function\":\"kasten.io/k10/kio/kanister.(*Operation).Execute\",\"linenumber\":114,\"file\":\"kasten.io/k10/kio/kanister/operation.go:114\",\"fields\":\{\"name\":\"message\",\"value\":\"{\\\"message\\\":\\\"Failed
while waiting for Pod to be
ready\\\",\\\"function\\\":\\\"kasten.io/k10/kio/kanister/function.copyVolumeDataPodFunc.func1\\\",\\\"linenumber\\\":153,\\\"file\\\":\\\"kasten.io/k10/kio/kanister/function/copy_volume_data.go:153\\\",\\\"fields\\\":e{\\\"name\\\":\\\"pod\\\",\\\"value\\\":\\\"copy-vol-data-74g9k\\\"}],\\\"cause\\\":{\\\"message\\\":\\\"Pod
did not transition into running state.
Timeout:15m0s Namespace:kasten-io, Name:copy-vol-data-74g9k: rate:
Wait(n=1) would exceed context
deadline\\\"}}\"},{\"name\":\"actionSet\",\"value\":{\"metadata\":{\"name\":\"k10-copy-k10-persistentvolumeclaim-generic-volume-2.0.20-k47vzx\",\"generateName\":\"k10-copy-k10-persistentvolumeclaim-generic-volume-2.0.20-kio-8e899f23e87911ec9d687ef14d2bf471-8-kasten-io-pvc-\",\"namespace\":\"kasten-io\",\"uid\":\"3395d768-b564-4f39-973f-f725450ac154\",\"resourceVersion\":\"317916\",\"generation\":4,\"creationTimestamp\":\"2022-06-10T05:43:24Z\",\"labels\":{\"kanister.io/JobID\":\"8e8a7331-e879-11ec-845c-12c68f26d14c\"},\"managedFields\":e{\"manager\":\"Go-http-client\",\"operation\":\"Update\",\"apiVersion\":\"cr.kanister.io/v1alpha1\",\"time\":\"2022-06-10T05:43:24Z\",\"fieldsType\":\"FieldsV1\",\"fieldsV1\":{\"f:metadata\":{\"f:generateName\":{},\"f:labels\":{\".\":{},\"f:kanister.io/JobID\":{}}},\"f:spec\":{\".\":{},\"f:actions\":{}},\"f:status\":{\".\":{},\"f:actions\":{},\"f:error\":{\".\":{},\"f:message\":{}},\"f:state\":{}}}}]},\"spec\":{\"actions\":e{\"name\":\"copy\",\"object\":{\"apiVersion\":\"\",\"group\":\"\",\"resource\":\"\",\"kind\":\"pvc\",\"name\":\"kio-8e899f23e87911ec9d687ef14d2bf471-8\",\"namespace\":\"kasten-io\"},\"blueprint\":\"k10-persistentvolumeclaim-generic-volume-2.0.20\",\"secrets\":{\"artifactKey\":{\"apiVersion\":\"\",\"group\":\"\",\"resource\":\"\",\"kind\":\"secret\",\"name\":\"k10-content-store-passphrase-gpfvm\",\"namespace\":\"kasten-io\"}},\"profile\":{\"apiVersion\":\"v1alpha1\",\"group\":\"\",\"resource\":\"\",\"kind\":\"profile\",\"name\":\"kanister-portable-copy-xlz5g\",\"namespace\":\"kasten-io\"},\"podOverride\":{\"securityContext\":{\"runAsNonRoot\":false,\"runAsUser\":0},\"tolerations\":\{\"effect\":\"NoExecute\",\"key\":\"node.kubernetes.io/not-ready\",\"operator\":\"Exists\",\"tolerationSeconds\":300},{\"effect\":\"NoExecute\",\"key\":\"node.kubernetes.io/unreachable\",\"operator\":\"Exists\",\"tolerationSeconds\":300},{\"effect\":\"NoSchedule\",\"key\":\"node.kubernetes.io/memory-pressure\",\"operator\":\"Exists\"}]},\"options\":{\"hostName\":\"033ec89c-513d-4aa5-8092-c7e80d30c707.rook-ceph-osd-2.testenv5-devset-testenv5-data-1-d2wpp\",\"objectStorePath\":\"repo/033ec89c-513d-4aa5-8092-c7e80d30c707/\",\"pvcRepository\":\"repo/033ec89c-513d-4aa5-8092-c7e80d30c707/\",\"userName\":\"k10-admin\"},\"preferredVersion\":\"v1.0.0-alpha\"}]},\"status\":{\"state\":\"failed\",\"actions\":,{\"name\":\"copy\",\"object\":{\"apiVersion\":\"\",\"group\":\"\",\"resource\":\"\",\"kind\":\"pvc\",\"name\":\"kio-8e899f23e87911ec9d687ef14d2bf471-8\",\"namespace\":\"kasten-io\"},\"blueprint\":\"k10-persistentvolumeclaim-generic-volume-2.0.20\",\"phases\":\{\"name\":\"copyToObjectStore\",\"state\":\"failed\"}],\"artifacts\":{\"snapshot\":{\"keyValue\":{\"backupIdentifier\":\"{{
.Phases.copyToObjectStore.Output.backupID }}\",\"backupPath\":\"{{
.Phases.copyToObjectStore.Output.backupRoot }}\",\"funcVersion\":\"{{
.Phases.copyToObjectStore.Output.version }}\",\"objectStorePath\":\"{{
.Options.pvcRepository }}\",\"phySize\":\"{{
.Phases.copyToObjectStore.Output.phySize }}\",\"size\":\"{{
.Phases.copyToObjectStore.Output.size
}}\"}}},\"deferPhase\":{\"name\":\"\",\"state\":\"\"}}],\"error\":{\"message\":\"{\\\"message\\\":\\\"Failed
while waiting for Pod to be
ready\\\",\\\"function\\\":\\\"kasten.io/k10/kio/kanister/function.copyVolumeDataPodFunc.func1\\\",\\\"linenumber\\\":153,\\\"file\\\":\\\"kasten.io/k10/kio/kanister/function/copy_volume_data.go:153\\\",\\\"fields\\\":a{\\\"name\\\":\\\"pod\\\",\\\"value\\\":\\\"copy-vol-data-74g9k\\\"}],\\\"cause\\\":{\\\"message\\\":\\\"Pod
did not transition into running state.
Timeout:15m0s Namespace:kasten-io, Name:copy-vol-data-74g9k: rate:
Wait(n=1) would exceed context deadline\\\"}}\"}}}}]}}}"]'
file: kasten.io/k10/kio/exec/phases/phase/copy_snapshots.go:146
function: kasten.io/k10/kio/exec/phases/phase.(*artifactCopier).Copy
linenumber: 146
message: Error converting snapshots
file: kasten.io/k10/kio/exec/phases/phase/export.go:138
function: kasten.io/k10/kio/exec/phases/phase.(*exportRestorePointPhase).Run
linenumber: 138
message: Failed to copy artifacts
message: Job failed to be executed
fields: /]