Hi!
I have problems with using a blueprint to backup a mariadb deployment in kubernetes. After running trough a series of error messages I made ot to the last that did not let me successful back up the workload with a blueprint:
Hide contentShow content
1cause:2 cause:3 fields:4 - name: message5 value: 'Failed while waiting for Pod kanister-job-t8pw4 to complete: Pod failed6 or did not transition into complete state: Pod kanister-job-t8pw47 failed. Pod details (&Pod{ObjectMeta:{kanister-job-t8pw4 kanister-job-8 APPNAME-CUSTOMER-test 754772e9-403e-447e-8c4a-d6a6f3dbe006 42480080 09 2022-04-29 09:55:17 +0000 UTC <nil> <nil> map[createdBy:kanister]10 map[cni.projectcalico.org/containerID:ab374f1fc96af0c13fd75443989d41e27533a3fc5cf85e8c4fee40dc8996a74811 cni.projectcalico.org/podIP: cni.projectcalico.org/podIPs:] []12 [] [{Go-http-client Update v1 2022-04-29 09:55:17 +0000 UTC FieldsV113 {"f:metadata":{"f:generateName":{},"f:labels":{".":{},"f:createdBy":{}}},"f:spec":{"f:containers":{"k:{\"name\":\"container\"}":{".":{},"f:command":{},"f:image":{},"f:imagePullPolicy":{},"f:name":{},"f:resources":{},"f:terminationMessagePath":{},"f:terminationMessagePolicy":{}}},"f:dnsPolicy":{},"f:enableServiceLinks":{},"f:restartPolicy":{},"f:schedulerName":{},"f:securityContext":{},"f:terminationGracePeriodSeconds":{}}}14 } {calico Update v1 2022-04-29 09:55:18 +0000 UTC FieldsV115 {"f:metadata":{"f:annotations":{".":{},"f:cni.projectcalico.org/containerID":{},"f:cni.projectcalico.org/podIP":{},"f:cni.projectcalico.org/podIPs":{}}}}16 } {kubelet Update v1 2022-04-29 09:55:19 +0000 UTC FieldsV117 {"f:status":{"f:conditions":{"k:{\"type\":\"ContainersReady\"}":{".":{},"f:lastProbeTime":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"Initialized\"}":{".":{},"f:lastProbeTime":{},"f:lastTransitionTime":{},"f:status":{},"f:type":{}},"k:{\"type\":\"Ready\"}":{".":{},"f:lastProbeTime":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}}},"f:containerStatuses":{},"f:hostIP":{},"f:phase":{},"f:podIP":{},"f:podIPs":{".":{},"k:{\"ip\":\"10.244.192.129\"}":{".":{},"f:ip":{}}},"f:startTime":{}}}18 }]},Spec:PodSpec{Volumes:[]Volume{Volume{Name:kube-api-access-ghfdj,VolumeSource:VolumeSource{HostPath:nil,EmptyDir:nil,GCEPersistentDisk:nil,AWSElasticBlockStore:nil,GitRepo:nil,Secret:nil,NFS:nil,ISCSI:nil,Glusterfs:nil,PersistentVolumeClaim:nil,RBD:nil,FlexVolume:nil,Cinder:nil,CephFS:nil,Flocker:nil,DownwardAPI:nil,FC:nil,AzureFile:nil,ConfigMap:nil,VsphereVolume:nil,Quobyte:nil,AzureDisk:nil,PhotonPersistentDisk:nil,PortworxVolume:nil,ScaleIO:nil,Projected:&ProjectedVolumeSource{Sources:[]VolumeProjection{VolumeProjection{Secret:nil,DownwardAPI:nil,ConfigMap:nil,ServiceAccountToken:&ServiceAccountTokenProjection{Audience:,ExpirationSeconds:*3607,Path:token,},},VolumeProjection{Secret:nil,DownwardAPI:nil,ConfigMap:&ConfigMapProjection{LocalObjectReference:LocalObjectReference{Name:kube-root-ca.crt,},Items:[]KeyToPath{KeyToPath{Key:ca.crt,Path:ca.crt,Mode:nil,},},Optional:nil,},ServiceAccountToken:nil,},VolumeProjection{Secret:nil,DownwardAPI:&DownwardAPIProjection{Items:[]DownwardAPIVolumeFile{DownwardAPIVolumeFile{Path:namespace,FieldRef:&ObjectFieldSelector{APIVersion:v1,FieldPath:metadata.namespace,},ResourceFieldRef:nil,Mode:nil,},},},ConfigMap:nil,ServiceAccountToken:nil,},},DefaultMode:*420,},StorageOS:nil,CSI:nil,Ephemeral:nil,},},},Containers:[]Container{Container{Name:container,Image:ghcr.io/kanisterio/mysql-sidecar:0.78.0,Command:[<*****>],Args:[],WorkingDir:,Ports:[]ContainerPort{},Env:[]EnvVar{},Resources:ResourceRequirements{Limits:ResourceList{},Requests:ResourceList{},},VolumeMounts:[]VolumeMount{VolumeMount{Name:kube-api-access-ghfdj,ReadOnly:true,MountPath:/var/run/secrets/kubernetes.io/serviceaccount,SubPath:,MountPropagation:nil,SubPathExpr:,},},LivenessProbe:nil,ReadinessProbe:nil,Lifecycle:nil,TerminationMessagePath:/dev/termination-log,ImagePullPolicy:IfNotPresent,SecurityContext:nil,Stdin:false,StdinOnce:false,TTY:false,EnvFrom:[]EnvFromSource{},TerminationMessagePolicy:File,VolumeDevices:[]VolumeDevice{},StartupProbe:nil,},},RestartPolicy:Never,TerminationGracePeriodSeconds:*30,ActiveDeadlineSeconds:nil,DNSPolicy:ClusterFirst,NodeSelector:map[string]string{},ServiceAccountName:default,DeprecatedServiceAccount:default,NodeName:alm-k8w-cyo102,HostNetwork:false,HostPID:false,HostIPC:false,SecurityContext:&PodSecurityContext{SELinuxOptions:nil,RunAsUser:nil,RunAsNonRoot:nil,SupplementalGroups:[],FSGroup:nil,RunAsGroup:nil,Sysctls:[]Sysctl{},WindowsOptions:nil,FSGroupChangePolicy:nil,SeccompProfile:nil,},ImagePullSecrets:[]LocalObjectReference{},Hostname:,Subdomain:,Affinity:nil,SchedulerName:default-scheduler,InitContainers:[]Container{},AutomountServiceAccountToken:nil,Tolerations:[]Toleration{Toleration{Key:node.kubernetes.io/not-ready,Operator:Exists,Value:,Effect:NoExecute,TolerationSeconds:*300,},Toleration{Key:node.kubernetes.io/unreachable,Operator:Exists,Value:,Effect:NoExecute,TolerationSeconds:*300,},},HostAliases:[]HostAlias{},PriorityClassName:,Priority:*0,DNSConfig:nil,ShareProcessNamespace:nil,ReadinessGates:[]PodReadinessGate{},RuntimeClassName:nil,EnableServiceLinks:*true,PreemptionPolicy:*PreemptLowerPriority,Overhead:ResourceList{},TopologySpreadConstraints:[]TopologySpreadConstraint{},EphemeralContainers:[]EphemeralContainer{},SetHostnameAsFQDN:nil,OS:nil,},Status:PodStatus{Phase:Failed,Conditions:[]PodCondition{PodCondition{Type:Initialized,Status:True,LastProbeTime:0001-01-0119 00:00:00 +0000 UTC,LastTransitionTime:2022-04-29 09:55:17 +000020 UTC,Reason:,Message:,},PodCondition{Type:Ready,Status:False,LastProbeTime:0001-01-0121 00:00:00 +0000 UTC,LastTransitionTime:2022-04-29 09:55:17 +000022 UTC,Reason:ContainersNotReady,Message:containers with unready status:23 [container],},PodCondition{Type:ContainersReady,Status:False,LastProbeTime:0001-01-0124 00:00:00 +0000 UTC,LastTransitionTime:2022-04-29 09:55:17 +000025 UTC,Reason:ContainersNotReady,Message:containers with unready status:26 [container],},PodCondition{Type:PodScheduled,Status:True,LastProbeTime:0001-01-0127 00:00:00 +0000 UTC,LastTransitionTime:2022-04-29 09:55:17 +000028 UTC,Reason:,Message:,},},Message:,Reason:,HostIP:10.23.19.14,PodIP:10.244.192.129,StartTime:2022-04-2929 09:55:17 +000030 UTC,ContainerStatuses:[]ContainerStatus{ContainerStatus{Name:container,State:ContainerState{Waiting:nil,Running:nil,Terminated:&ContainerStateTerminated{ExitCode:1,Signal:0,Reason:Error,Message:,StartedAt:2022-04-2931 09:55:18 +0000 UTC,FinishedAt:2022-04-29 09:55:19 +000032 UTC,ContainerID:containerd://43abea729be4588ce1021786ffb3c15163c33bbcde30bb5b2944c666eae3ff2c,},},LastTerminationState:ContainerState{Waiting:nil,Running:nil,Terminated:nil,},Ready:false,RestartCount:0,Image:ghcr.io/kanisterio/mysql-sidecar:0.78.0,ImageID:ghcr.io/kanisterio/mysql-sidecar@sha256:73d5cbb5d53d35cb4213521d5b32398ca20fd0b71a8635dcd99e59b38deb2858,ContainerID:containerd://43abea729be4588ce1021786ffb3c15163c33bbcde30bb5b2944c666eae3ff2c,Started:*false,},},QOSClass:BestEffort,InitContainerStatuses:[]ContainerStatus{},NominatedNodeName:,PodIPs:[]PodIP{PodIP{IP:10.244.192.129,},},EphemeralContainerStatuses:[]ContainerStatus{},},})'33 - name: actionSet34 value:35 metadata:36 creationTimestamp: 2022-04-29T09:55:17Z37 generateName: k10-backup-APPNAME-mariadb-blueprint-mariadb-APPNAME-CUSTOMER-test-deployment-38 generation: 439 labels:40 kanister.io/JobID: 20f47d60-c7a2-11ec-9afe-ce64f5560a6241 managedFields:42 - apiVersion: cr.kanister.io/v1alpha143 fieldsType: FieldsV144 fieldsV1:45 f:metadata:46 f:generateName: {}47 f:labels:48 .: {}49 f:kanister.io/JobID: {}50 f:spec:51 .: {}52 f:actions: {}53 f:status:54 .: {}55 f:actions: {}56 f:error:57 .: {}58 f:message: {}59 f:state: {}60 manager: Go-http-client61 operation: Update62 time: 2022-04-29T09:55:17Z63 name: k10-backup-APPNAME-mariadb-blueprint-mariadb-APPNAME-CUSTOMER-test-d655zh64 namespace: kasten-io65 resourceVersion: "42480091"66 uid: fa5d502f-bd86-48bb-be43-7ad3e345caef67 spec:68 actions:69 - blueprint: APPNAME-mariadb-blueprint70 name: backup71 object:72 apiVersion: v173 group: apps74 kind: deployment75 name: mariadb76 namespace: APPNAME-CUSTOMER-test77 resource: deployments78 options:79 objectStorePath: repo/dbab9b79-db59-4905-b6bf-635c8699b479/80 preferredVersion: v1.0.0-alpha81 profile:82 apiVersion: v1alpha183 group: ""84 kind: profile85 name: kanister-phase-kopia-profile-j8fjf86 namespace: kasten-io87 resource: ""88 status:89 actions:90 - artifacts:91 mariaBackup:92 kopiaSnapshot: "{{ .Phases.dumpToStore.Output.kopiaOutput }}"93 blueprint: APPNAME-mariadb-blueprint94 deferPhase:95 name: ""96 state: ""97 name: backup98 object:99 apiVersion: v1100 group: apps101 kind: deployment102 name: mariadb103 namespace: APPNAME-CUSTOMER-test104 resource: deployments105 phases:106 - name: dumpToStore107 state: failed108 error:109 message: 'Failed while waiting for Pod kanister-job-t8pw4 to complete: Pod110 failed or did not transition into complete state: Pod111 kanister-job-t8pw4 failed. Pod details112 (&Pod{ObjectMeta:{kanister-job-t8pw4 kanister-job-113 APPNAME-CUSTOMER-test 754772e9-403e-447e-8c4a-d6a6f3dbe006 42480080 0114 2022-04-29 09:55:17 +0000 UTC <nil> <nil>115 map[createdBy:kanister]116 map[cni.projectcalico.org/containerID:ab374f1fc96af0c13fd75443989d41e27533a3fc5cf85e8c4fee40dc8996a748117 cni.projectcalico.org/podIP: cni.projectcalico.org/podIPs:] []118 [] [{Go-http-client Update v1 2022-04-29 09:55:17 +0000 UTC119 FieldsV1120 {"f:metadata":{"f:generateName":{},"f:labels":{".":{},"f:createdBy":{}}},"f:spec":{"f:containers":{"k:{\"name\":\"container\"}":{".":{},"f:command":{},"f:image":{},"f:imagePullPolicy":{},"f:name":{},"f:resources":{},"f:terminationMessagePath":{},"f:terminationMessagePolicy":{}}},"f:dnsPolicy":{},"f:enableServiceLinks":{},"f:restartPolicy":{},"f:schedulerName":{},"f:securityContext":{},"f:terminationGracePeriodSeconds":{}}}121 } {calico Update v1 2022-04-29 09:55:18 +0000 UTC FieldsV1122 {"f:metadata":{"f:annotations":{".":{},"f:cni.projectcalico.org/containerID":{},"f:cni.projectcalico.org/podIP":{},"f:cni.projectcalico.org/podIPs":{}}}}123 } {kubelet Update v1 2022-04-29 09:55:19 +0000 UTC FieldsV1124 {"f:status":{"f:conditions":{"k:{\"type\":\"ContainersReady\"}":{".":{},"f:lastProbeTime":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}},"k:{\"type\":\"Initialized\"}":{".":{},"f:lastProbeTime":{},"f:lastTransitionTime":{},"f:status":{},"f:type":{}},"k:{\"type\":\"Ready\"}":{".":{},"f:lastProbeTime":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}}},"f:containerStatuses":{},"f:hostIP":{},"f:phase":{},"f:podIP":{},"f:podIPs":{".":{},"k:{\"ip\":\"10.244.192.129\"}":{".":{},"f:ip":{}}},"f:startTime":{}}}125 }]},Spec:PodSpec{Volumes:[]Volume{Volume{Name:kube-api-access-ghfdj,VolumeSource:VolumeSource{HostPath:nil,EmptyDir:nil,GCEPersistentDisk:nil,AWSElasticBlockStore:nil,GitRepo:nil,Secret:nil,NFS:nil,ISCSI:nil,Glusterfs:nil,PersistentVolumeClaim:nil,RBD:nil,FlexVolume:nil,Cinder:nil,CephFS:nil,Flocker:nil,DownwardAPI:nil,FC:nil,AzureFile:nil,ConfigMap:nil,VsphereVolume:nil,Quobyte:nil,AzureDisk:nil,PhotonPersistentDisk:nil,PortworxVolume:nil,ScaleIO:nil,Projected:&ProjectedVolumeSource{Sources:[]VolumeProjection{VolumeProjection{Secret:nil,DownwardAPI:nil,ConfigMap:nil,ServiceAccountToken:&ServiceAccountTokenProjection{Audience:,ExpirationSeconds:*3607,Path:token,},},VolumeProjection{Secret:nil,DownwardAPI:nil,ConfigMap:&ConfigMapProjection{LocalObjectReference:LocalObjectReference{Name:kube-root-ca.crt,},Items:[]KeyToPath{KeyToPath{Key:ca.crt,Path:ca.crt,Mode:nil,},},Optional:nil,},ServiceAccountToken:nil,},VolumeProjection{Secret:nil,DownwardAPI:&DownwardAPIProjection{Items:[]DownwardAPIVolumeFile{DownwardAPIVolumeFile{Path:namespace,FieldRef:&ObjectFieldSelector{APIVersion:v1,FieldPath:metadata.namespace,},ResourceFieldRef:nil,Mode:nil,},},},ConfigMap:nil,ServiceAccountToken:nil,},},DefaultMode:*420,},StorageOS:nil,CSI:nil,Ephemeral:nil,},},},Containers:[]Container{Container{Name:container,Image:ghcr.io/kanisterio/mysql-sidecar:0.78.0,Command:[<*****>],Args:[],WorkingDir:,Ports:[]ContainerPort{},Env:[]EnvVar{},Resources:ResourceRequirements{Limits:ResourceList{},Requests:ResourceList{},},VolumeMounts:[]VolumeMount{VolumeMount{Name:kube-api-access-ghfdj,ReadOnly:true,MountPath:/var/run/secrets/kubernetes.io/serviceaccount,SubPath:,MountPropagation:nil,SubPathExpr:,},},LivenessProbe:nil,ReadinessProbe:nil,Lifecycle:nil,TerminationMessagePath:/dev/termination-log,ImagePullPolicy:IfNotPresent,SecurityContext:nil,Stdin:false,StdinOnce:false,TTY:false,EnvFrom:[]EnvFromSource{},TerminationMessagePolicy:File,VolumeDevices:[]VolumeDevice{},StartupProbe:nil,},},RestartPolicy:Never,TerminationGracePeriodSeconds:*30,ActiveDeadlineSeconds:nil,DNSPolicy:ClusterFirst,NodeSelector:map[string]string{},ServiceAccountName:default,DeprecatedServiceAccount:default,NodeName:alm-k8w-cyo102,HostNetwork:false,HostPID:false,HostIPC:false,SecurityContext:&PodSecurityContext{SELinuxOptions:nil,RunAsUser:nil,RunAsNonRoot:nil,SupplementalGroups:[],FSGroup:nil,RunAsGroup:nil,Sysctls:[]Sysctl{},WindowsOptions:nil,FSGroupChangePolicy:nil,SeccompProfile:nil,},ImagePullSecrets:[]LocalObjectReference{},Hostname:,Subdomain:,Affinity:nil,SchedulerName:default-scheduler,InitContainers:[]Container{},AutomountServiceAccountToken:nil,Tolerations:[]Toleration{Toleration{Key:node.kubernetes.io/not-ready,Operator:Exists,Value:,Effect:NoExecute,TolerationSeconds:*300,},Toleration{Key:node.kubernetes.io/unreachable,Operator:Exists,Value:,Effect:NoExecute,TolerationSeconds:*300,},},HostAliases:[]HostAlias{},PriorityClassName:,Priority:*0,DNSConfig:nil,ShareProcessNamespace:nil,ReadinessGates:[]PodReadinessGate{},RuntimeClassName:nil,EnableServiceLinks:*true,PreemptionPolicy:*PreemptLowerPriority,Overhead:ResourceList{},TopologySpreadConstraints:[]TopologySpreadConstraint{},EphemeralContainers:[]EphemeralContainer{},SetHostnameAsFQDN:nil,OS:nil,},Status:PodStatus{Phase:Failed,Conditions:[]PodCondition{PodCondition{Type:Initialized,Status:True,LastProbeTime:0001-01-01126 00:00:00 +0000 UTC,LastTransitionTime:2022-04-29 09:55:17 +0000127 UTC,Reason:,Message:,},PodCondition{Type:Ready,Status:False,LastProbeTime:0001-01-01128 00:00:00 +0000 UTC,LastTransitionTime:2022-04-29 09:55:17 +0000129 UTC,Reason:ContainersNotReady,Message:containers with unready130 status:131 [container],},PodCondition{Type:ContainersReady,Status:False,LastProbeTime:0001-01-01132 00:00:00 +0000 UTC,LastTransitionTime:2022-04-29 09:55:17 +0000133 UTC,Reason:ContainersNotReady,Message:containers with unready134 status:135 [container],},PodCondition{Type:PodScheduled,Status:True,LastProbeTime:0001-01-01136 00:00:00 +0000 UTC,LastTransitionTime:2022-04-29 09:55:17 +0000137 UTC,Reason:,Message:,},},Message:,Reason:,HostIP:10.23.19.14,PodIP:10.244.192.129,StartTime:2022-04-29138 09:55:17 +0000139 UTC,ContainerStatuses:[]ContainerStatus{ContainerStatus{Name:container,State:ContainerState{Waiting:nil,Running:nil,Terminated:&ContainerStateTerminated{ExitCode:1,Signal:0,Reason:Error,Message:,StartedAt:2022-04-29140 09:55:18 +0000 UTC,FinishedAt:2022-04-29 09:55:19 +0000141 UTC,ContainerID:containerd://43abea729be4588ce1021786ffb3c15163c33bbcde30bb5b2944c666eae3ff2c,},},LastTerminationState:ContainerState{Waiting:nil,Running:nil,Terminated:nil,},Ready:false,RestartCount:0,Image:ghcr.io/kanisterio/mysql-sidecar:0.78.0,ImageID:ghcr.io/kanisterio/mysql-sidecar@sha256:73d5cbb5d53d35cb4213521d5b32398ca20fd0b71a8635dcd99e59b38deb2858,ContainerID:containerd://43abea729be4588ce1021786ffb3c15163c33bbcde30bb5b2944c666eae3ff2c,Started:*false,},},QOSClass:BestEffort,InitContainerStatuses:[]ContainerStatus{},NominatedNodeName:,PodIPs:[]PodIP{PodIP{IP:10.244.192.129,},},EphemeralContainerStatuses:[]ContainerStatus{},},})'142 state: failed143 file: kasten.io/k10/kio/kanister/operation.go:114144 function: kasten.io/k10/kio/kanister.(*Operation).Execute145 linenumber: 114146 message: ActionSet Failed147 file: kasten.io/k10/kio/exec/phases/backup/snapshot_data_phase.go:676148 function: kasten.io/k10/kio/exec/phases/backup.RunKanisterSnapshotActions149 linenumber: 676150 message: Failed to create backup kanister phase151message: Job failed to be executed152fields: []153
- I added the annotation to the deployment and it tries to backup the workload with the blueprint like mentioned here: https://docs.kasten.io/latest/kanister/mysql/install.html
- I use my own blueprint and changed it to match my environment from here: https://raw.githubusercontent.com/kanisterio/kanister/master/examples/maria/blueprint-v2/maria-blueprint.yaml
- Added the kanister location → nfs

Details of my Environment:
Kubernetes: v1.21.5
K10: Upgraded today to 4.5.14
MariaDB in Deployment: 10.6 (This is not the StatefulSet from the Docs! Its just a Deployment-Type)
The Snapshot creation with the normal mode has no problems. Only my try to setup a blueprint for that mariadb database fails.
If it helps: I add my blueprint here:
Hide contentShow content
1apiVersion: cr.kanister.io/v1alpha12kind: Blueprint3metadata:4 name: mariadb-blueprint5actions:6 backup:7 outputArtifacts:8 mariaBackup:9 # Capture the kopia snapshot information for subsequent actions10 # The information includes the kopia snapshot ID which is essential for restore and delete to succeed11 # `kopiaOutput` is the name provided to kando using `--output-name` flag12 kopiaSnapshot: "{{ .Phases.dumpToStore.Output.kopiaOutput }}"13 phases:14 - func: KubeTask15 name: dumpToStore16 objects:17 mariaSecret:18 kind: Secret19 name: '{{ .Deployment.Name }}'20 namespace: '{{ .Deployment.Namespace }}'21 args:22 image: ghcr.io/kanisterio/mysql-sidecar:0.78.023 namespace: "{{ .Deployment.Namespace }}"24 command:25 - bash26 - -o27 - errexit28 - -o29 - pipefail30 - -c31 - |32 backup_file_path="dump.sql"33 root_password="{{ index .Phases.dumpToStore.Secrets.mariaSecret.Data "MYSQL_ROOT_PASSWORD" | toString }}"34 exclude_db="('information_schema', 'mysql', 'performance_schema')"35 dump_databases=""36 for db in `mysql -u root -h {{ .Deployment.Name }} --password=${root_password} -ANe "use information_schema; select schema_name from schemata where schema_name not in ${exclude_db}"`37 do38 dump_databases="${dump_databases} ${db}"39 done40 dump_cmd="mysqldump -u root --password=${root_password} -h {{ .Deployment.Name }} --column-statistics=0 --single-transaction --databases ${dump_databases}"41 ${dump_cmd} | kando location push --profile '{{ toJson .Profile }}' --path "${backup_file_path}" --output-name "kopiaOutput" -42 restore:43 inputArtifactNames:44 # The kopia snapshot info created in backup phase can be used here45 # Use the `--kopia-snapshot` flag in kando to pass in `mariaBackup.KopiaSnapshot`46 - mariaBackup47 phases:48 - func: KubeTask49 name: restoreFromStore50 objects:51 mariaSecret:52 kind: Secret53 name: '{{ .Deployment.Name }}'54 namespace: '{{ .Deployment.Namespace }}'55 args:56 image: ghcr.io/kanisterio/mysql-sidecar:0.78.057 namespace: "{{ .Deployment.Namespace }}"58 command:59 - bash60 - -o61 - errexit62 - -o63 - pipefail64 - -c65 - |66 backup_file_path="dump.sql"67 kopia_snap='{{ .ArtifactsIn.mariaBackup.KopiaSnapshot }}'68 root_password="{{ index .Phases.restoreFromStore.Secrets.mariaSecret.Data "MYSQL_ROOT_PASSWORD" | toString }}"69 kando location pull --profile '{{ toJson .Profile }}' --path "${backup_file_path}" --kopia-snapshot "${kopia_snap}" - | mysql -u root --password=${root_password} -h {{ .Deployment.Name }}70 delete:71 inputArtifactNames:72 # The kopia snapshot info created in backup phase can be used here73 # Use the `--kopia-snapshot` flag in kando to pass in `mariaBackup.KopiaSnapshot`74 - mariaBackup75 phases:76 - func: KubeTask77 name: deleteFromStore78 args:79 image: ghcr.io/kanisterio/mysql-sidecar:0.78.080 namespace: "{{ .Namespace.Name }}"81 command:82 - bash83 - -o84 - errexit85 - -o86 - pipefail87 - -c88 - |89 backup_file_path="dump.sql"90 kopia_snap='{{ .ArtifactsIn.mariaBackup.KopiaSnapshot }}'91 kando location delete --profile '{{ toJson .Profile }}' --path "${backup_file_path}" --kopia-snapshot "${kopia_snap}"
Can you guys tell me where I am doing something wrong?
Thanks a lot and have a nice day!