Uploaded image for project: 'OpenShift API for Data Protection'
  1. OpenShift API for Data Protection
  2. OADP-6139 Able to perform the NonAdminBackup successfully with a BackedOff NABSL
  3. OADP-6164

[IBM QE-Z] Verify Bug OADP-6139 - Able to perform the NonAdminBackup successfully with a BackedOff NABSL

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • OADP 1.5.0
    • None
    • None
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

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

      Description of problem:

      When the NABSL is in BackedOff state due to some reason, but the Velero BSL is in Available state, the NAB can be performed successfully.

      Just another version of this github issue reported earlier.

      https://github.com/migtools/oadp-non-admin/issues/246

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

      1.5.0

      How reproducible:

      Always

      Steps to Reproduce:

      1. Created DPA with accessMode: ReadWrite enforcement
      2. Created NABSL with accessMode: ReadWrite and it creates the BSL successfully.
      3. Edited DPA enforcement accessMode to ReadOnly
      The NABSL goes to BackingOff but corresponding BSL remains available.
      Performed NAB, and it was sucessfull.

      Actual results:

      NAB passing

      Expected results:

      NAB should not pass

      Additional info:

      oc get nab nab4 -o yaml
      apiVersion: oadp.openshift.io/v1alpha1
      kind: NonAdminBackup
      metadata:
        creationTimestamp: "2025-05-16T08:23:21Z"
        finalizers:
        - nonadminbackup.oadp.openshift.io/finalizer
        generation: 1
        labels:
          app.kubernetes.io/created-by: oadp-operator
          app.kubernetes.io/instance: nonadminbackup-sample
          app.kubernetes.io/managed-by: kustomize
          app.kubernetes.io/name: nonadminbackup
          app.kubernetes.io/part-of: oadp-operator
        name: nab4
        namespace: oadp-test-namespace-1
        resourceVersion: "73245"
        uid: 9d22e22b-505d-44e6-a1a3-10d7525db9d1
      spec:
        backupSpec:
          csiSnapshotTimeout: 10m0s
          defaultVolumesToFsBackup: true
          metadata: {}
          snapshotMoveData: false
          storageLocation: nabsl2
      status:
        conditions:
        - lastTransitionTime: "2025-05-16T08:23:21Z"
          message: backup accepted
          reason: BackupAccepted
          status: "True"
          type: Accepted
        - lastTransitionTime: "2025-05-16T08:23:21Z"
          message: Created Velero Backup object
          reason: BackupScheduled
          status: "True"
          type: Queued
        dataMoverDataUploads: {}
        fileSystemPodVolumeBackups:
          completed: 2
          total: 2
        phase: Created
        queueInfo:
          estimatedQueuePosition: 0
        veleroBackup:
          nacuuid: oadp-test-namespace-1-nab4-c6b0a1d8-e353-4a2c-9e94-3de6cb140918
          name: oadp-test-namespace-1-nab4-c6b0a1d8-e353-4a2c-9e94-3de6cb140918
          namespace: openshift-adp
          spec:
            csiSnapshotTimeout: 10m0s
            defaultVolumesToFsBackup: true
            excludedResources:
            - nonadminbackups
            - nonadminrestores
            - nonadminbackupstoragelocations
            - securitycontextconstraints
            - clusterroles
            - clusterrolebindings
            - priorityclasses
            - customresourcedefinitions
            - virtualmachineclusterinstancetypes
            - virtualmachineclusterpreferences
            hooks: {}
            includedNamespaces:
            - oadp-test-namespace-1
            itemOperationTimeout: 4h0m0s
            metadata: {}
            snapshotMoveData: false
            storageLocation: oadp-test-namespace-1-nabs-6ea3344a-3692-49f6-bfdd-d6e34c385b70
            ttl: 720h0m0s
          status:
            completionTimestamp: "2025-05-16T08:23:35Z"
            expiration: "2025-06-15T08:23:21Z"
            formatVersion: 1.1.0
            hookStatus: {}
            phase: Completed
            progress:
              itemsBackedUp: 50
              totalItems: 50
            startTimestamp: "2025-05-16T08:23:21Z"
            version: 1
      
      apiVersion: oadp.openshift.io/v1alpha1
      kind: NonAdminBackupStorageLocation
      metadata:
        creationTimestamp: "2025-05-16T08:22:18Z"
        finalizers:
        - nonadminbackupstoragelocation.oadp.openshift.io/finalizer
        generation: 1
        name: nabsl2
        namespace: oadp-test-namespace-1
        resourceVersion: "77249"
        uid: 0d7743f1-4d93-4096-bbc0-800b16f7460d
      spec:
        backupStorageLocationSpec:
          accessMode: ReadWrite
          credential:
            key: cloud
            name: cloud-credentials
          objectStorage:
            bucket: oadp119371fft8r
            prefix: velero
          provider: gcp
      status:
        conditions:
        - lastTransitionTime: "2025-05-16T08:37:08Z"
          message: 'the administrator has restricted spec.backupStorageLocationSpec.accessMode
            field to: ReadOnly'
          reason: BslSpecValidation
          status: "False"
          type: Accepted
        - lastTransitionTime: "2025-05-16T08:22:18Z"
          message: NonAdminBackupStorageLocationRequest approval decision set to Approve
          reason: BslSpecApproved
          status: "True"
          type: ClusterAdminApproved
        - lastTransitionTime: "2025-05-16T08:22:18Z"
          message: Secret successfully created in the OADP namespace
          reason: SecretCreated
          status: "True"
          type: SecretSynced
        - lastTransitionTime: "2025-05-16T08:22:18Z"
          message: BackupStorageLocation successfully created in the OADP namespace
          reason: BackupStorageLocationCreated
          status: "True"
          type: BackupStorageLocationSynced
        phase: BackingOff
        veleroBackupStorageLocation:
          nacuuid: oadp-test-namespace-1-nabs-6ea3344a-3692-49f6-bfdd-d6e34c385b70
          name: oadp-test-namespace-1-nabs-6ea3344a-3692-49f6-bfdd-d6e34c385b70
          namespace: openshift-adp
          status:
            lastSyncedTime: "2025-05-16T08:36:30Z"
            lastValidationTime: "2025-05-16T08:36:20Z"
            phase: Available
      

              uprasad@redhat.com Ukthi Prasad
              akarol@redhat.com Aziza Karol
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: