Uploaded image for project: 'OpenShift API for Data Protection'
  1. OpenShift API for Data Protection
  2. OADP-3005 csiVolumeSnapshotsCompleted field missing in backup status
  3. OADP-3530

[IBM QE-P] Verify Bug OADP-3005 - csiVolumeSnapshotsCompleted field missing in backup status

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • OADP 1.3.1
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • ToDo
    • 0
    • 0
    • Very Likely
    • 0
    • None
    • Unset
    • Unknown

      Description of problem:

      Created a DPA with CSI plugin added and performed a CSI backup, but it looks like the backup status is missing the csiVolumeSnapshotsCompleted field in the YAML

      Version-Release number of selected component (if applicable):

      1.3.0

      How reproducible:

      Always

      Steps to Reproduce:
      1. Deploy any stateful application in namespace
      2. Create DPA with CSI plugin, and perform a CSI backup
      3. Check Backup status

      Additional info:

      $ oc get backup test-backup -o yaml
      apiVersion: velero.io/v1
      kind: Backup
      metadata:
        annotations:
          velero.io/resource-timeout: 10m0s
          velero.io/source-cluster-k8s-gitversion: v1.26.9+636f2be
          velero.io/source-cluster-k8s-major-version: "1"
          velero.io/source-cluster-k8s-minor-version: "26"
        creationTimestamp: "2023-10-30T14:01:46Z"
        generation: 8
        labels:
          velero.io/storage-location: ts-dpa-1
        name: test-backup
        namespace: openshift-adp
        resourceVersion: "215584"
        uid: 61296de2-2573-45db-8519-0606a50e8392
      spec:
        csiSnapshotTimeout: 10m0s
        defaultVolumesToFsBackup: false
        includedNamespaces:
        - test422
        itemOperationTimeout: 4h0m0s
        storageLocation: ts-dpa-1
        ttl: 720h0m0s
      status:
        backupItemOperationsAttempted: 4
        backupItemOperationsCompleted: 4
        completionTimestamp: "2023-10-30T14:02:24Z"
        csiVolumeSnapshotsAttempted: 2
        expiration: "2023-11-29T14:01:46Z"
        formatVersion: 1.1.0
        phase: Completed
        progress:
          itemsBackedUp: 39
          totalItems: 39
        startTimestamp: "2023-10-30T14:01:46Z"
        version: 1
      
      

      DPA

      $ oc get dpa -o yaml
      apiVersion: v1
      items:
      - apiVersion: oadp.openshift.io/v1alpha1
        kind: DataProtectionApplication
        metadata:
          creationTimestamp: "2023-10-30T09:13:47Z"
          generation: 2
          name: ts-dpa
          namespace: openshift-adp
          resourceVersion: "214609"
          uid: f368f797-7798-45db-95bb-1b7904cd78f4
        spec:
          backupLocations:
          - velero:
              credential:
                key: cloud
                name: cloud-credentials-gcp
              default: true
              objectStorage:
                bucket: oadpbucket243516
                prefix: velero
              provider: gcp
          configuration:
            velero:
              defaultPlugins:
              - openshift
              - csi
              - gcp
        status:
          conditions:
          - lastTransitionTime: "2023-10-30T09:13:47Z"
            message: Reconcile complete
            reason: Complete
            status: "True"
            type: Reconciled
      kind: List
      metadata:
      
      

      When the backup fails, it shows the field:

        csiVolumeSnapshotsAttempted: 21
      *  csiVolumeSnapshotsCompleted: 9
      *  errors: 12
        expiration: "2023-11-25T13:39:08Z"
        formatVersion: 1.1.0
        phase: WaitingForPluginOperationsPartiallyFailed
        progress:
          itemsBackedUp: 8353
          totalItems: 8353
        startTimestamp: "2023-10-26T13:39:08Z"
        version: 1
      

              anayek Aniruddha Nayek
              akarol@redhat.com Aziza Karol
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: