Skip to main content

Hello,

 

I encounter an error when restoring an application.in fact when he tries to create a PVC it ​​remains pending and says that he cannot find the snapshot.the snapshot no longer exists when I see the list of snapshots (k10-csi-snap-svvr82p7gj5kq4jk).I noticed that in the problematic PVC I had these elements:  dataSource:    apiGroup: snapshot.storage.k8s.io    kind: VolumeSnapshot    name: k10-csi-snap-svvr82p7gj5kq4jk  dataSourceRef:    apiGroup: snapshot.storage.k8s.io    kind: VolumeSnapshot    name: k10-csi-snap-svvr82p7gj5kq4jk

 

 

I can restore other applications with PVChave you ever encountered this problem?

 

 

 

error yaml :

 

artifacts:
  - meta:
      volume:
        attributes: null
        creationTime: null
        id: data-sso-appprod-0
        size: 8589934592
        sizeUnit: B
        type: CSI
  - meta:
      volume:
        attributes: null
        creationTime: null
        id: data-sso-appprod-postgresql-ha-postgresql-1
        size: 21474836480
        sizeUnit: B
        type: CSI
  - meta:
      volume:
        attributes: null
        creationTime: null
        id: data-sso-appprod-2
        size: 8589934592
        sizeUnit: B
        type: CSI
  - meta:
      volume:
        attributes: null
        creationTime: null
        id: pgadmin4-1699393436
        size: 21474836480
        sizeUnit: B
        type: CSI
  - meta:
      volume:
        attributes: null
        creationTime: null
        id: data-sso-appprod-1
        size: 8589934592
        sizeUnit: B
        type: CSI
  - meta:
      volume:
        attributes: null
        creationTime: null
        id: data-sso-appprod-postgresql-ha-postgresql-2
        size: 21474836480
        sizeUnit: B
        type: CSI
  - meta:
      volume:
        attributes: null
        creationTime: null
        id: data-sso-appprod-postgresql-ha-postgresql-1
        size: 21474836480
        sizeUnit: B
        type: CSI
  - meta:
      volume:
        attributes: null
        creationTime: null
        id: pgadmin4-1699393436
        size: 21474836480
        sizeUnit: B
        type: CSI
  - meta:
      volume:
        attributes: null
        creationTime: null
        id: data-sso-appprod-0
        size: 8589934592
        sizeUnit: B
        type: CSI
  - meta:
      volume:
        attributes: null
        creationTime: null
        id: data-sso-appprod-postgresql-ha-postgresql-2
        size: 21474836480
        sizeUnit: B
        type: CSI
  - meta:
      volume:
        attributes: null
        creationTime: null
        id: data-sso-appprod-2
        size: 8589934592
        sizeUnit: B
        type: CSI
  - meta:
      volume:
        attributes: null
        creationTime: null
        id: data-sso-appprod-1
        size: 8589934592
        sizeUnit: B
        type: CSI
  - meta:
      volume:
        attributes: null
        creationTime: null
        id: data-sso-appprod-1
        size: 8589934592
        sizeUnit: B
        type: CSI
  - meta:
      volume:
        attributes: null
        creationTime: null
        id: data-sso-appprod-postgresql-ha-postgresql-1
        size: 21474836480
        sizeUnit: B
        type: CSI
  - meta:
      volume:
        attributes: null
        creationTime: null
        id: data-sso-appprod-0
        size: 8589934592
        sizeUnit: B
        type: CSI
  - meta:
      volume:
        attributes: null
        creationTime: null
        id: pgadmin4-1699393436
        size: 21474836480
        sizeUnit: B
        type: CSI
  - meta:
      volume:
        attributes: null
        creationTime: null
        id: data-sso-appprod-2
        size: 8589934592
        sizeUnit: B
        type: CSI
  - meta:
      volume:
        attributes: null
        creationTime: null
        id: data-sso-appprod-postgresql-ha-postgresql-2
        size: 21474836480
        sizeUnit: B
        type: CSI
phases:
  - attempt: 3
    endTime: 2024-05-30T10:38:31Z
    errors:
      - cause: '{"cause":{"cause":{"cause":{"errors":s{"cause":{"fields": {"name":"PVCName","value":"data-sso-appprod-2"}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:215","function":"kasten.io/k10/kio/kube.getVolumeModeForPVCFromList","linenumber":215,"message":"PVC
          not found in
          list"},"fields":b{"name":"namespace","value":"sso-appprod-backup"},{"name":"podName","value":""}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:97","function":"kasten.io/k10/kio/kube.PlacePVCs.func1","linenumber":97,"message":"Failed
          placing PVC using affinity
          pod"},{"cause":{"fields":o{"name":"PVCName","value":"data-sso-appprod-1"}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:215","function":"kasten.io/k10/kio/kube.getVolumeModeForPVCFromList","linenumber":215,"message":"PVC
          not found in
          list"},"fields":u{"name":"namespace","value":"sso-appprod-backup"},{"name":"podName","value":""}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:97","function":"kasten.io/k10/kio/kube.PlacePVCs.func1","linenumber":97,"message":"Failed
          placing PVC using affinity
          pod"},{"cause":{"fields":m{"name":"PVCName","value":"data-sso-appprod-0"}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:215","function":"kasten.io/k10/kio/kube.getVolumeModeForPVCFromList","linenumber":215,"message":"PVC
          not found in
          list"},"fields":m{"name":"namespace","value":"sso-appprod-backup"},{"name":"podName","value":""}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:97","function":"kasten.io/k10/kio/kube.PlacePVCs.func1","linenumber":97,"message":"Failed
          placing PVC using affinity
          pod"},{"cause":{"fields":l{"name":"PVCName","value":"pgadmin4-1699393436"}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:215","function":"kasten.io/k10/kio/kube.getVolumeModeForPVCFromList","linenumber":215,"message":"PVC
          not found in
          list"},"fields":s{"name":"namespace","value":"sso-appprod-backup"},{"name":"podName","value":""}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:97","function":"kasten.io/k10/kio/kube.PlacePVCs.func1","linenumber":97,"message":"Failed
          placing PVC using affinity pod"},{"cause":{"cause":{"message":"Pod did
          not transition into running state.
          Timeout:15m0s  Namespace:sso-appprod-backup,
          Name:affinity-pvc-group-4-4vxwd: client rate limiter Wait returned an
          error: context deadline
          exceeded"},"fields":Â{"name":"podName","value":"affinity-pvc-group-4-4vxwd"},{"name":"namespace","value":"sso-appprod-backup"}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:270","function":"kasten.io/k10/kio/kube.(*realPVCPlacer).Place","linenumber":270,"message":"failed
          waiting for pod
          ready"},"fields":e{"name":"namespace","value":"sso-appprod-backup"},{"name":"podName","value":"affinity-pvc-group-4-4vxwd"}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:97","function":"kasten.io/k10/kio/kube.PlacePVCs.func1","linenumber":97,"message":"Failed
          placing PVC using affinity pod"}],"message":"5 errors have
          occurred"},"file":"kasten.io/k10/kio/exec/phases/phase/restore_app.go:419","function":"kasten.io/k10/kio/exec/phases/phase.(*restoreApplicationPhase).createPVCsFromPVCSpecs","linenumber":419,"message":"Cannot
          place
          PVCs"},"file":"kasten.io/k10/kio/exec/phases/phase/restore_app.go:321","function":"kasten.io/k10/kio/exec/phases/phase.(*restoreApplicationPhase).restoreApp","linenumber":321,"message":"Failed
          to create PVCs from PVC
          specs"},"file":"kasten.io/k10/kio/exec/internal/runner/phase_runner.go:145","function":"kasten.io/k10/kio/exec/internal/runner.(*phaseRunner).execPlannedPhase","linenumber":145,"message":"Failure
          in planned phase"}'
        message: Job failed to be executed
      - cause: '{"cause":{"cause":{"cause":{"errors":"{"cause":{"fields":n{"name":"PVCName","value":"pgadmin4-1699393436"}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:215","function":"kasten.io/k10/kio/kube.getVolumeModeForPVCFromList","linenumber":215,"message":"PVC
          not found in
          list"},"fields": {"name":"namespace","value":"sso-appprod-backup"},{"name":"podName","value":""}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:97","function":"kasten.io/k10/kio/kube.PlacePVCs.func1","linenumber":97,"message":"Failed
          placing PVC using affinity
          pod"},{"cause":{"fields": {"name":"PVCName","value":"data-sso-appprod-2"}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:215","function":"kasten.io/k10/kio/kube.getVolumeModeForPVCFromList","linenumber":215,"message":"PVC
          not found in
          list"},"fields":t{"name":"namespace","value":"sso-appprod-backup"},{"name":"podName","value":""}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:97","function":"kasten.io/k10/kio/kube.PlacePVCs.func1","linenumber":97,"message":"Failed
          placing PVC using affinity
          pod"},{"cause":{"fields":P{"name":"PVCName","value":"data-sso-appprod-0"}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:215","function":"kasten.io/k10/kio/kube.getVolumeModeForPVCFromList","linenumber":215,"message":"PVC
          not found in
          list"},"fields":n{"name":"namespace","value":"sso-appprod-backup"},{"name":"podName","value":""}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:97","function":"kasten.io/k10/kio/kube.PlacePVCs.func1","linenumber":97,"message":"Failed
          placing PVC using affinity
          pod"},{"cause":{"fields":o{"name":"PVCName","value":"data-sso-appprod-1"}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:215","function":"kasten.io/k10/kio/kube.getVolumeModeForPVCFromList","linenumber":215,"message":"PVC
          not found in
          list"},"fields":5{"name":"namespace","value":"sso-appprod-backup"},{"name":"podName","value":""}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:97","function":"kasten.io/k10/kio/kube.PlacePVCs.func1","linenumber":97,"message":"Failed
          placing PVC using affinity pod"},{"cause":{"cause":{"message":"Pod did
          not transition into running state.
          Timeout:15m0s  Namespace:sso-appprod-backup,
          Name:affinity-pvc-group-7-kwj4w: : Context done while polling: context
          deadline
          exceeded"},"fields":a{"name":"podName","value":"affinity-pvc-group-7-kwj4w"},{"name":"namespace","value":"sso-appprod-backup"}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:270","function":"kasten.io/k10/kio/kube.(*realPVCPlacer).Place","linenumber":270,"message":"failed
          waiting for pod
          ready"},"fields":"{"name":"namespace","value":"sso-appprod-backup"},{"name":"podName","value":"affinity-pvc-group-7-kwj4w"}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:97","function":"kasten.io/k10/kio/kube.PlacePVCs.func1","linenumber":97,"message":"Failed
          placing PVC using affinity pod"}],"message":"5 errors have
          occurred"},"file":"kasten.io/k10/kio/exec/phases/phase/restore_app.go:419","function":"kasten.io/k10/kio/exec/phases/phase.(*restoreApplicationPhase).createPVCsFromPVCSpecs","linenumber":419,"message":"Cannot
          place
          PVCs"},"file":"kasten.io/k10/kio/exec/phases/phase/restore_app.go:321","function":"kasten.io/k10/kio/exec/phases/phase.(*restoreApplicationPhase).restoreApp","linenumber":321,"message":"Failed
          to create PVCs from PVC
          specs"},"file":"kasten.io/k10/kio/exec/internal/runner/phase_runner.go:145","function":"kasten.io/k10/kio/exec/internal/runner.(*phaseRunner).execPlannedPhase","linenumber":145,"message":"Failure
          in planned phase"}'
        message: Job failed to be executed
      - cause: '{"cause":{"cause":{"cause":{"errors":/{"cause":{"fields":s{"name":"PVCName","value":"data-sso-appprod-2"}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:215","function":"kasten.io/k10/kio/kube.getVolumeModeForPVCFromList","linenumber":215,"message":"PVC
          not found in
          list"},"fields":t{"name":"namespace","value":"sso-appprod-backup"},{"name":"podName","value":""}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:97","function":"kasten.io/k10/kio/kube.PlacePVCs.func1","linenumber":97,"message":"Failed
          placing PVC using affinity
          pod"},{"cause":{"fields":k{"name":"PVCName","value":"data-sso-appprod-0"}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:215","function":"kasten.io/k10/kio/kube.getVolumeModeForPVCFromList","linenumber":215,"message":"PVC
          not found in
          list"},"fields":s{"name":"namespace","value":"sso-appprod-backup"},{"name":"podName","value":""}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:97","function":"kasten.io/k10/kio/kube.PlacePVCs.func1","linenumber":97,"message":"Failed
          placing PVC using affinity
          pod"},{"cause":{"fields":,{"name":"PVCName","value":"data-sso-appprod-1"}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:215","function":"kasten.io/k10/kio/kube.getVolumeModeForPVCFromList","linenumber":215,"message":"PVC
          not found in
          list"},"fields":Â{"name":"namespace","value":"sso-appprod-backup"},{"name":"podName","value":""}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:97","function":"kasten.io/k10/kio/kube.PlacePVCs.func1","linenumber":97,"message":"Failed
          placing PVC using affinity
          pod"},{"cause":{"fields":[{"name":"PVCName","value":"pgadmin4-1699393436"}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:215","function":"kasten.io/k10/kio/kube.getVolumeModeForPVCFromList","linenumber":215,"message":"PVC
          not found in
          list"},"fields":f{"name":"namespace","value":"sso-appprod-backup"},{"name":"podName","value":""}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:97","function":"kasten.io/k10/kio/kube.PlacePVCs.func1","linenumber":97,"message":"Failed
          placing PVC using affinity pod"},{"cause":{"cause":{"message":"Pod did
          not transition into running state.
          Timeout:15m0s  Namespace:sso-appprod-backup,
          Name:affinity-pvc-group-0-6xw2l: : Context done while polling: context
          deadline
          exceeded"},"fields":l{"name":"podName","value":"affinity-pvc-group-0-6xw2l"},{"name":"namespace","value":"sso-appprod-backup"}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:270","function":"kasten.io/k10/kio/kube.(*realPVCPlacer).Place","linenumber":270,"message":"failed
          waiting for pod
          ready"},"fields":Â{"name":"namespace","value":"sso-appprod-backup"},{"name":"podName","value":"affinity-pvc-group-0-6xw2l"}],"file":"kasten.io/k10/kio/kube/affinity_pod.go:97","function":"kasten.io/k10/kio/kube.PlacePVCs.func1","linenumber":97,"message":"Failed
          placing PVC using affinity pod"}],"message":"5 errors have
          occurred"},"file":"kasten.io/k10/kio/exec/phases/phase/restore_app.go:419","function":"kasten.io/k10/kio/exec/phases/phase.(*restoreApplicationPhase).createPVCsFromPVCSpecs","linenumber":419,"message":"Cannot
          place
          PVCs"},"file":"kasten.io/k10/kio/exec/phases/phase/restore_app.go:321","function":"kasten.io/k10/kio/exec/phases/phase.(*restoreApplicationPhase).restoreApp","linenumber":321,"message":"Failed
          to create PVCs from PVC
          specs"},"file":"kasten.io/k10/kio/exec/internal/runner/phase_runner.go:145","function":"kasten.io/k10/kio/exec/internal/runner.(*phaseRunner).execPlannedPhase","linenumber":145,"message":"Failure
          in planned phase"}'
        message: Job failed to be executed
    name: Restoring Application Components
    startTime: 2024-05-30T09:51:50Z
    state: failed
    updatedTime: 2024-05-30T10:38:31Z
 

failed to provision volume with StorageClass "ceph-rbd": error getting handle for DataSource Type VolumeSnapshot by Name k10-csi-snap-svvr82p7gj5kq4jk: error getting snapshot k10-csi-snap-svvr82p7gj5kq4jk from api server: volumesnapshots.snapshot.storage.k8s.io "k10-csi-snap-svvr82p7gj5kq4jk" not found


Hello @xdc14,

 

Which restorepoint are you attempting to restore?. Are you restoring to the same cluster or to a new cluster?

 

Thanks

Emmanuel


Comment