Skip to main content
Question

Export to S3 after Backup


Hello,

i want to export the VolumeSnapshots after a backup action to my S3 Bucket.

Following is my Policy:

apiVersion: config.kio.kasten.io/v1alpha1
kind: Policy
metadata:
  name: live-backup
  namespace: mynamespace
  uid: ef09f734-0b8b-4a28-a8ee-711b287d4ec3
  resourceVersion: "1534281042"
  generation: 34
  creationTimestamp: 2023-10-23T11:18:55Z
  labels:
    argocd.argoproj.io/instance: staplerbatterie
  annotations:
    k10.kasten.io/revalidated-at: 2023-12-05T12:14:11Z
spec:
  comment: staplerbatterie Backup Policy
  frequency: "@hourly"
  paused: false
  actions:
    - action: backup
      backupParameters:
        profile:
          name: s3-profile
          namespace: kasten-io
        filters:
          includeResources:
            - name: data-mariadb-live-0
              resource: persistentvolumeclaims
            - name: live-cache-0
              resource: persistentvolumeclaims
            - name: live-log-0
              resource: persistentvolumeclaims
          excludeResources: []
    - action: export
      exportParameters:
        frequency: "@hourly"
        profile:
          name: s3-profile
          namespace: kasten-io
        receiveString: bIzAPpoanm.....
        exportData:
          enabled: false
      retention:
        hourly: 2
  subFrequency:
    minutes:
      - 25
    hours:
      - 10
    weekdays:
      - 7
    days:
      - 31
    months:
      - 12
  retention:
    hourly: 2
    daily: 0
    weekly: 0
    monthly: 0
    yearly: 0
  selector:
    matchExpressions:
      - key: k10.kasten.io/appNamespace
        operator: In
        values:
          - mynamespace

It seems like it tries to connect to a Kopia Repository, but I dont know why, since I configure my S3 Bucket as exportParameters in the Policy configuration.

I get this exception:

kind: ExportAction
apiVersion: actions.kio.kasten.io/v1alpha1
metadata:
  name: run-zpzl2tc4sthgf8w
  namespace: mynamespace
  uid: 7d9ea36f-9382-11ee-8344-ba58ab829f00
  resourceVersion: "421619"
  creationTimestamp: 2023-12-05T15:25:15Z
  labels:
    k10.kasten.io/isMetadataExport: "true"
    k10.kasten.io/policyName: mynamespace-live-backup
    k10.kasten.io/policyNamespace: mynamespace
    k10.kasten.io/runActionName: run-zpzl2tc4st
status:
  state: Failed
  startTime: 2023-12-05T15:25:15Z
  endTime: 2023-12-05T15:28:13Z
  restorePoint:
    name: ""
  result:
    name: ""
  error:
    cause: '{"cause":{"cause":{"cause":{"cause":{"message":"Failed to exec command
      in pod: command terminated with exit code
      1"},"file":"kasten.io/k10/kio/kopia/repository.go:657","function":"kasten.io/k10/kio/kopia.ConnectToKopiaRepository","linenumber":657,"message":"Failed
      to connect to the backup
      repository"},"file":"kasten.io/k10/kio/kopiaapiserver/api_server.go:246","function":"kasten.io/k10/kio/kopiaapiserver.SetupAPIServerForCollectionExport","linenumber":246,"message":"Failed
      to initialize Kopia API
      server"},"file":"kasten.io/k10/kio/collections/kopia/handler_kopia.go:123","function":"kasten.io/k10/kio/collections/kopia.(*KopiaHandler).setupAPIServerForExport","linenumber":123,"message":"Failed
      to prepare Kopia API server for collections
      export"},"file":"kasten.io/k10/kio/exec/phases/phase/migrate.go:155","function":"kasten.io/k10/kio/exec/phases/phase.(*migrateSendPhase).Run","linenumber":155,"message":"Failed
      to export collection"}'
    message: Job failed to be executed
  exceptions:
    - cause: '{"cause":{"cause":{"cause":{"cause":{"cause":{"cause":{"cause":{"message":"Failed
        to exec command in pod: command terminated with exit code
        1"},"file":"kasten.io/k10/kio/kopia/repository.go:587","function":"kasten.io/k10/kio/kopia.ConnectToKopiaRepositoryNoStateChange","linenumber":587,"message":"Failed
        to connect to the backup
        repository"},"file":"kasten.io/k10/kio/kopiaapiserver/api_server.go:445","function":"kasten.io/k10/kio/kopiaapiserver.setupAPIServerForCollectionRead","linenumber":445,"message":"Failed
        to connect to collections Kopia
        repository"},"file":"kasten.io/k10/kio/kopiaapiserver/api_server.go:390","function":"kasten.io/k10/kio/kopiaapiserver.SetupAPIServerForCollectionRead","linenumber":390,"message":"Failed
        to initialize Kopia API
        server"},"file":"kasten.io/k10/kio/collections/kopia/handler_kopia.go:213","function":"kasten.io/k10/kio/collections/kopia.(*KopiaHandler).setupAPIServerForImport","linenumber":213,"message":"Failed
        to prepare Kopia API server for collections
        read"},"file":"kasten.io/k10/kio/collections/kopia/manager.go:418","function":"kasten.io/k10/kio/collections/kopia.(*KopiaManager).ListByTags","linenumber":418,"message":"Failed
        to connect to kopia for
        read"},"fields":[{"name":"ManifestID","value":"7d9ea36f-9382-11ee-8344-ba58ab829f00"}],"file":"kasten.io/k10/kio/exec/phases/phase/migrate_cleanup.go:83","function":"kasten.io/k10/kio/exec/phases/phase.(*migrateCleanupPhase).run","linenumber":83,"message":"Failed
        to list snapshots"},"fields":[],"message":"Failed to cleanup
        collections"}'
      message: Failure in collections cleanup phase. Collections may be orphaned.
  actionDetails:
    phases:
      - attempt: 3
        endTime: 2023-12-05T15:28:13Z
        errors:
          - cause: '{"cause":{"cause":{"cause":{"cause":{"message":"Failed to exec command
              in pod: command terminated with exit code
              1"},"file":"kasten.io/k10/kio/kopia/repository.go:657","function":"kasten.io/k10/kio/kopia.ConnectToKopiaRepository","linenumber":657,"message":"Failed
              to connect to the backup
              repository"},"file":"kasten.io/k10/kio/kopiaapiserver/api_server.go:246","function":"kasten.io/k10/kio/kopiaapiserver.SetupAPIServerForCollectionExport","linenumber":246,"message":"Failed
              to initialize Kopia API
              server"},"file":"kasten.io/k10/kio/collections/kopia/handler_kopia.go:123","function":"kasten.io/k10/kio/collections/kopia.(*KopiaHandler).setupAPIServerForExport","linenumber":123,"message":"Failed
              to prepare Kopia API server for collections
              export"},"file":"kasten.io/k10/kio/exec/phases/phase/migrate.go:155","function":"kasten.io/k10/kio/exec/phases/phase.(*migrateSendPhase).Run","linenumber":155,"message":"Failed
              to export collection"}'
            message: Job failed to be executed
          - cause: '{"cause":{"cause":{"cause":{"cause":{"message":"Failed to exec command
              in pod: command terminated with exit code
              1"},"file":"kasten.io/k10/kio/kopia/repository.go:657","function":"kasten.io/k10/kio/kopia.ConnectToKopiaRepository","linenumber":657,"message":"Failed
              to connect to the backup
              repository"},"file":"kasten.io/k10/kio/kopiaapiserver/api_server.go:246","function":"kasten.io/k10/kio/kopiaapiserver.SetupAPIServerForCollectionExport","linenumber":246,"message":"Failed
              to initialize Kopia API
              server"},"file":"kasten.io/k10/kio/collections/kopia/handler_kopia.go:123","function":"kasten.io/k10/kio/collections/kopia.(*KopiaHandler).setupAPIServerForExport","linenumber":123,"message":"Failed
              to prepare Kopia API server for collections
              export"},"file":"kasten.io/k10/kio/exec/phases/phase/migrate.go:155","function":"kasten.io/k10/kio/exec/phases/phase.(*migrateSendPhase).Run","linenumber":155,"message":"Failed
              to export collection"}'
            message: Job failed to be executed
          - cause: '{"cause":{"cause":{"cause":{"cause":{"message":"Failed to exec command
              in pod: command terminated with exit code
              1"},"file":"kasten.io/k10/kio/kopia/repository.go:657","function":"kasten.io/k10/kio/kopia.ConnectToKopiaRepository","linenumber":657,"message":"Failed
              to connect to the backup
              repository"},"file":"kasten.io/k10/kio/kopiaapiserver/api_server.go:246","function":"kasten.io/k10/kio/kopiaapiserver.SetupAPIServerForCollectionExport","linenumber":246,"message":"Failed
              to initialize Kopia API
              server"},"file":"kasten.io/k10/kio/collections/kopia/handler_kopia.go:123","function":"kasten.io/k10/kio/collections/kopia.(*KopiaHandler).setupAPIServerForExport","linenumber":123,"message":"Failed
              to prepare Kopia API server for collections
              export"},"file":"kasten.io/k10/kio/exec/phases/phase/migrate.go:155","function":"kasten.io/k10/kio/exec/phases/phase.(*migrateSendPhase).Run","linenumber":155,"message":"Failed
              to export collection"}'
            message: Job failed to be executed
        exceptions:
          - cause: '{"cause":{"cause":{"cause":{"cause":{"cause":{"cause":{"cause":{"message":"Failed
              to exec command in pod: command terminated with exit code
              1"},"file":"kasten.io/k10/kio/kopia/repository.go:587","function":"kasten.io/k10/kio/kopia.ConnectToKopiaRepositoryNoStateChange","linenumber":587,"message":"Failed
              to connect to the backup
              repository"},"file":"kasten.io/k10/kio/kopiaapiserver/api_server.go:445","function":"kasten.io/k10/kio/kopiaapiserver.setupAPIServerForCollectionRead","linenumber":445,"message":"Failed
              to connect to collections Kopia
              repository"},"file":"kasten.io/k10/kio/kopiaapiserver/api_server.go:390","function":"kasten.io/k10/kio/kopiaapiserver.SetupAPIServerForCollectionRead","linenumber":390,"message":"Failed
              to initialize Kopia API
              server"},"file":"kasten.io/k10/kio/collections/kopia/handler_kopia.go:213","function":"kasten.io/k10/kio/collections/kopia.(*KopiaHandler).setupAPIServerForImport","linenumber":213,"message":"Failed
              to prepare Kopia API server for collections
              read"},"file":"kasten.io/k10/kio/collections/kopia/manager.go:418","function":"kasten.io/k10/kio/collections/kopia.(*KopiaManager).ListByTags","linenumber":418,"message":"Failed
              to connect to kopia for
              read"},"fields":[{"name":"ManifestID","value":"7d9ea36f-9382-11ee-8344-ba58ab829f00"}],"file":"kasten.io/k10/kio/exec/phases/phase/migrate_cleanup.go:83","function":"kasten.io/k10/kio/exec/phases/phase.(*migrateCleanupPhase).run","linenumber":83,"message":"Failed
              to list snapshots"},"fields":[],"message":"Failed to cleanup
              collections"}'
            message: Failure in collections cleanup phase. Collections may be orphaned.
        name: Exporting Metadata
        startTime: 2023-12-05T15:25:16Z
        state: failed
        updatedTime: 2023-12-05T15:28:13Z
      - attempt: 3
        endTime: 2023-12-05T15:28:13Z
        errors:
          - cause: '{"cause":{"cause":{"cause":{"cause":{"message":"Failed to exec command
              in pod: command terminated with exit code
              1"},"file":"kasten.io/k10/kio/kopia/repository.go:657","function":"kasten.io/k10/kio/kopia.ConnectToKopiaRepository","linenumber":657,"message":"Failed
              to connect to the backup
              repository"},"file":"kasten.io/k10/kio/kopiaapiserver/api_server.go:246","function":"kasten.io/k10/kio/kopiaapiserver.SetupAPIServerForCollectionExport","linenumber":246,"message":"Failed
              to initialize Kopia API
              server"},"file":"kasten.io/k10/kio/collections/kopia/handler_kopia.go:123","function":"kasten.io/k10/kio/collections/kopia.(*KopiaHandler).setupAPIServerForExport","linenumber":123,"message":"Failed
              to prepare Kopia API server for collections
              export"},"file":"kasten.io/k10/kio/exec/phases/phase/migrate.go:155","function":"kasten.io/k10/kio/exec/phases/phase.(*migrateSendPhase).Run","linenumber":155,"message":"Failed
              to export collection"}'
            message: Job failed to be executed
          - cause: '{"cause":{"cause":{"cause":{"cause":{"message":"Failed to exec command
              in pod: command terminated with exit code
              1"},"file":"kasten.io/k10/kio/kopia/repository.go:657","function":"kasten.io/k10/kio/kopia.ConnectToKopiaRepository","linenumber":657,"message":"Failed
              to connect to the backup
              repository"},"file":"kasten.io/k10/kio/kopiaapiserver/api_server.go:246","function":"kasten.io/k10/kio/kopiaapiserver.SetupAPIServerForCollectionExport","linenumber":246,"message":"Failed
              to initialize Kopia API
              server"},"file":"kasten.io/k10/kio/collections/kopia/handler_kopia.go:123","function":"kasten.io/k10/kio/collections/kopia.(*KopiaHandler).setupAPIServerForExport","linenumber":123,"message":"Failed
              to prepare Kopia API server for collections
              export"},"file":"kasten.io/k10/kio/exec/phases/phase/migrate.go:155","function":"kasten.io/k10/kio/exec/phases/phase.(*migrateSendPhase).Run","linenumber":155,"message":"Failed
              to export collection"}'
            message: Job failed to be executed
          - cause: '{"cause":{"cause":{"cause":{"cause":{"message":"Failed to exec command
              in pod: command terminated with exit code
              1"},"file":"kasten.io/k10/kio/kopia/repository.go:657","function":"kasten.io/k10/kio/kopia.ConnectToKopiaRepository","linenumber":657,"message":"Failed
              to connect to the backup
              repository"},"file":"kasten.io/k10/kio/kopiaapiserver/api_server.go:246","function":"kasten.io/k10/kio/kopiaapiserver.SetupAPIServerForCollectionExport","linenumber":246,"message":"Failed
              to initialize Kopia API
              server"},"file":"kasten.io/k10/kio/collections/kopia/handler_kopia.go:123","function":"kasten.io/k10/kio/collections/kopia.(*KopiaHandler).setupAPIServerForExport","linenumber":123,"message":"Failed
              to prepare Kopia API server for collections
              export"},"file":"kasten.io/k10/kio/exec/phases/phase/migrate.go:155","function":"kasten.io/k10/kio/exec/phases/phase.(*migrateSendPhase).Run","linenumber":155,"message":"Failed
              to export collection"}'
            message: Job failed to be executed
        exceptions:
          - cause: '{"cause":{"cause":{"cause":{"cause":{"cause":{"cause":{"cause":{"message":"Failed
              to exec command in pod: command terminated with exit code
              1"},"file":"kasten.io/k10/kio/kopia/repository.go:587","function":"kasten.io/k10/kio/kopia.ConnectToKopiaRepositoryNoStateChange","linenumber":587,"message":"Failed
              to connect to the backup
              repository"},"file":"kasten.io/k10/kio/kopiaapiserver/api_server.go:445","function":"kasten.io/k10/kio/kopiaapiserver.setupAPIServerForCollectionRead","linenumber":445,"message":"Failed
              to connect to collections Kopia
              repository"},"file":"kasten.io/k10/kio/kopiaapiserver/api_server.go:390","function":"kasten.io/k10/kio/kopiaapiserver.SetupAPIServerForCollectionRead","linenumber":390,"message":"Failed
              to initialize Kopia API
              server"},"file":"kasten.io/k10/kio/collections/kopia/handler_kopia.go:213","function":"kasten.io/k10/kio/collections/kopia.(*KopiaHandler).setupAPIServerForImport","linenumber":213,"message":"Failed
              to prepare Kopia API server for collections
              read"},"file":"kasten.io/k10/kio/collections/kopia/manager.go:418","function":"kasten.io/k10/kio/collections/kopia.(*KopiaManager).ListByTags","linenumber":418,"message":"Failed
              to connect to kopia for
              read"},"fields":[{"name":"ManifestID","value":"7d9ea36f-9382-11ee-8344-ba58ab829f00"}],"file":"kasten.io/k10/kio/exec/phases/phase/migrate_cleanup.go:83","function":"kasten.io/k10/kio/exec/phases/phase.(*migrateCleanupPhase).run","linenumber":83,"message":"Failed
              to list snapshots"},"fields":[],"message":"Failed to cleanup
              collections"}'
            message: Failure in collections cleanup phase. Collections may be orphaned.
        name: Monitoring Actions
        startTime: 2023-12-05T15:25:16Z
        state: succeeded
        updatedTime: 2023-12-05T15:28:13Z
  progress: 100
spec:
  subject:
    apiVersion: internals.kio.kasten.io/v1alpha1
    kind: Manifest
    name: 7d8f046a-9382-11ee-8344-ba58ab829f00
  scheduledTime: 2023-12-05T15:25:00Z
  frequency: "@hourly"
  receiveString: bIzAPpoan.....
  profile:
    name: s3-profile
    namespace: kasten-io
  exportData:
    enabled: false

 

Also my Retentionconfigurations is not working as I expect.

I expect that I never have more than 2 backups in my K10 system and so never have more than 2 VolumeSnapshots in my cluster (make by K10). But in reality, no backups get deleted ever, it keeps growing. 

 

I have another K10 Disaster Policy, here the export to my S3 location works as I expect.

 

Using Version 6.5.0.

2 comments

  • Author
  • Comes here often
  • 10 comments
  • December 5, 2023

I dont know why, but it seems to backup now without any errors and the retention seems to work, since the data usage is now as expected (2x30GB).

Nevertheless, I still see nothing from this Backup/Export action in my S3 Bucket.

Here it the Details from the Export Action:

artifacts:
  - meta:
      spec:
        version: v1
        resource: persistentvolumeclaims
        type: persistentvolumeclaim
        name: data-mariadb-live-0
        namespace: staplerbatterie
        config: '{"metadata":{"name":"data-mariadb-live-0","namespace":"staplerbatterie","uid":"747e096d-82d2-4451-abe2-74f5c75a1958","resourceVersion":"1534690398","creationTimestamp":"2023-10-23T09:29:20Z","labels":{"app.kubernetes.io/component":"primary","app.kubernetes.io/instance":"staplerbatterie","app.kubernetes.io/name":"mariadb-live","k10.kasten.io/actionType":"snapshot","k10.kasten.io/appName":"staplerbatterie","k10.kasten.io/policyName":"staplerbatterie-live-backup"},"annotations":{"pv.kubernetes.io/bind-completed":"yes","pv.kubernetes.io/bound-by-controller":"yes","volume.beta.kubernetes.io/storage-provisioner":"cinder.csi.openstack.org","volume.kubernetes.io/storage-provisioner":"cinder.csi.openstack.org"},"finalizers":["kubernetes.io/pvc-protection"],"managedFields":[{"manager":"executor-server","operation":"Update","apiVersion":"v1","time":"2023-10-23T09:29:20Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:labels":{".":{},"f:app.kubernetes.io/component":{},"f:app.kubernetes.io/instance":{},"f:app.kubernetes.io/name":{},"f:k10.kasten.io/actionType":{},"f:k10.kasten.io/appName":{},"f:k10.kasten.io/policyName":{}}},"f:spec":{"f:accessModes":{},"f:dataSource":{},"f:resources":{"f:requests":{".":{},"f:storage":{}}},"f:storageClassName":{},"f:volumeMode":{}}}},{"manager":"kube-controller-manager","operation":"Update","apiVersion":"v1","time":"2023-10-23T09:29:21Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:pv.kubernetes.io/bind-completed":{},"f:pv.kubernetes.io/bound-by-controller":{},"f:volume.beta.kubernetes.io/storage-provisioner":{},"f:volume.kubernetes.io/storage-provisioner":{}}},"f:spec":{"f:volumeName":{}}}},{"manager":"kube-controller-manager","operation":"Update","apiVersion":"v1","time":"2023-10-23T09:29:21Z","fieldsType":"FieldsV1","fieldsV1":{"f:status":{"f:accessModes":{},"f:capacity":{".":{},"f:storage":{}},"f:phase":{}}},"subresource":"status"}]},"spec":{"accessModes":["ReadWriteMany"],"resources":{"requests":{"storage":"32212254720"}},"volumeName":"ovh-managed-kubernetes-ngf5x2-pvc-747e096d-82d2-4451-abe2-74f5c75a1958","storageClassName":"csi-cinder-high-speed","volumeMode":"Filesystem","dataSource":{"apiGroup":"snapshot.storage.k8s.io","kind":"VolumeSnapshot","name":"k10-csi-snap-kh9c8glgfslj9zd7"},"dataSourceRef":{"apiGroup":"snapshot.storage.k8s.io","kind":"VolumeSnapshot","name":"k10-csi-snap-kh9c8glgfslj9zd7"}},"status":{"phase":"Bound","accessModes":["ReadWriteMany"],"capacity":{"storage":"30Gi"}}}'
    source:
      kind: namespace
      name: staplerbatterie
      namespace: staplerbatterie
  - meta:
      spec:
        group: storage.k8s.io
        version: v1
        resource: storageclasses
        type: storageclass
        name: csi-cinder-high-speed
        config: '{"metadata":{"name":"csi-cinder-high-speed","uid":"227b57d5-f737-411e-abfa-8f73cba97ce2","resourceVersion":"373420198","creationTimestamp":"2023-08-15T08:13:18Z","labels":{"k10.kasten.io/actionType":"snapshot","k10.kasten.io/appName":"staplerbatterie","k10.kasten.io/policyName":"staplerbatterie-live-backup","mks.ovh/version":"1.27.4-0"},"annotations":{"storageclass.kubernetes.io/is-default-class":"true"},"managedFields":[{"manager":"OpenAPI-Generator","operation":"Update","apiVersion":"storage.k8s.io/v1","time":"2023-09-05T15:30:44Z","fieldsType":"FieldsV1","fieldsV1":{"f:allowVolumeExpansion":{},"f:metadata":{"f:annotations":{".":{},"f:storageclass.kubernetes.io/is-default-class":{}},"f:labels":{".":{},"f:mks.ovh/version":{}}},"f:parameters":{".":{},"f:availability":{},"f:fsType":{},"f:type":{}},"f:provisioner":{},"f:reclaimPolicy":{},"f:volumeBindingMode":{}}}]},"provisioner":"cinder.csi.openstack.org","parameters":{"availability":"nova","fsType":"ext4","type":"high-speed"},"reclaimPolicy":"Delete","allowVolumeExpansion":true,"volumeBindingMode":"Immediate"}'
    source:
      kind: namespace
      name: staplerbatterie
      namespace: staplerbatterie
  - meta:
      spec:
        version: v1
        resource: persistentvolumeclaims
        type: persistentvolumeclaim
        name: data-mariadb-live-0
        namespace: staplerbatterie
        config: '{"metadata":{"name":"data-mariadb-live-0","namespace":"staplerbatterie","uid":"747e096d-82d2-4451-abe2-74f5c75a1958","resourceVersion":"1534690398","creationTimestamp":"2023-10-23T09:29:20Z","labels":{"app.kubernetes.io/component":"primary","app.kubernetes.io/instance":"staplerbatterie","app.kubernetes.io/name":"mariadb-live","k10.kasten.io/actionType":"snapshot","k10.kasten.io/appName":"staplerbatterie","k10.kasten.io/policyName":"staplerbatterie-live-backup"},"annotations":{"pv.kubernetes.io/bind-completed":"yes","pv.kubernetes.io/bound-by-controller":"yes","volume.beta.kubernetes.io/storage-provisioner":"cinder.csi.openstack.org","volume.kubernetes.io/storage-provisioner":"cinder.csi.openstack.org"},"finalizers":["kubernetes.io/pvc-protection"],"managedFields":[{"manager":"executor-server","operation":"Update","apiVersion":"v1","time":"2023-10-23T09:29:20Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:labels":{".":{},"f:app.kubernetes.io/component":{},"f:app.kubernetes.io/instance":{},"f:app.kubernetes.io/name":{},"f:k10.kasten.io/actionType":{},"f:k10.kasten.io/appName":{},"f:k10.kasten.io/policyName":{}}},"f:spec":{"f:accessModes":{},"f:dataSource":{},"f:resources":{"f:requests":{".":{},"f:storage":{}}},"f:storageClassName":{},"f:volumeMode":{}}}},{"manager":"kube-controller-manager","operation":"Update","apiVersion":"v1","time":"2023-10-23T09:29:21Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:pv.kubernetes.io/bind-completed":{},"f:pv.kubernetes.io/bound-by-controller":{},"f:volume.beta.kubernetes.io/storage-provisioner":{},"f:volume.kubernetes.io/storage-provisioner":{}}},"f:spec":{"f:volumeName":{}}}},{"manager":"kube-controller-manager","operation":"Update","apiVersion":"v1","time":"2023-10-23T09:29:21Z","fieldsType":"FieldsV1","fieldsV1":{"f:status":{"f:accessModes":{},"f:capacity":{".":{},"f:storage":{}},"f:phase":{}}},"subresource":"status"}]},"spec":{"accessModes":["ReadWriteMany"],"resources":{"requests":{"storage":"32212254720"}},"volumeName":"ovh-managed-kubernetes-ngf5x2-pvc-747e096d-82d2-4451-abe2-74f5c75a1958","storageClassName":"csi-cinder-high-speed","volumeMode":"Filesystem","dataSource":{"apiGroup":"snapshot.storage.k8s.io","kind":"VolumeSnapshot","name":"k10-csi-snap-kh9c8glgfslj9zd7"},"dataSourceRef":{"apiGroup":"snapshot.storage.k8s.io","kind":"VolumeSnapshot","name":"k10-csi-snap-kh9c8glgfslj9zd7"}},"status":{"phase":"Bound","accessModes":["ReadWriteMany"],"capacity":{"storage":"30Gi"}}}'
    source:
      kind: statefulset
      name: mariadb-live
      namespace: staplerbatterie
  - meta:
      snapshot:
        creationTime: 2023-12-05T16:20:32Z
        id: k10-csi-snap-hdfpf22rr948kz2f
        k8sVolume:
          pvcName: data-mariadb-live-0
          storageClassName: csi-cinder-high-speed
        k8sSnapshot:
          driver: cinder.csi.openstack.org
          handle: ae3d8ae9-8a3e-44ca-ba58-8779400d3e3d
          volumeSnapshotClassName: csi-cinder-snapclass-in-use-v1
        region: DE1
        size: 32212254720
        sizeUnit: B
        tags:
          - key: kasten_io_manifestid
            value: 2a6cd1cb-938a-11ee-8344-ba58ab829f00
          - key: kasten_io_pvc
            value: data-mariadb-live-0
          - key: name
            value: kasten__snapshot-staplerbatterie-ns-2023-12-05t16-20-00z-00
          - key: kasten_io_appnamespace
            value: staplerbatterie
          - key: kasten_io_jobid
            value: 2aa9de11-938a-11ee-bcc8-8247b3ecba3d
        type: CSI
        volume:
          attributes: null
          creationTime: null
          id: data-mariadb-live-0
          size: 32212254720
          sizeUnit: B
          type: CSI
    source:
      kind: statefulset
      name: mariadb-live
      namespace: staplerbatterie
phases:
  - attempt: 1
    endTime: 2023-12-05T16:20:49Z
    name: Exporting RestorePoint
    startTime: 2023-12-05T16:20:47Z
    state: succeeded
    updatedTime: 2023-12-05T16:20:49Z

 


Forum|alt.badge.img+1
  • Comes here often
  • 89 comments
  • January 3, 2024

Hello @mario.t 

 

So, the error “command terminated with exit code 1” shows that the error is external from executor. You will need to rerun the task and gather the logs from all three executor pods to see what was occuing on the export pods during this time.

 

Thanks

Emmanuel


Comment