Uploaded image for project: 'OpenShift API for Data Protection'
  1. OpenShift API for Data Protection
  2. OADP-5111 Backups partially fails when backing up all namespaces
  3. OADP-5150

[IBM QE-Z] Verify Bug OADP-5111 - Backups partially fails when backing up all namespaces

XMLWordPrintable

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

      None

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

      Description of problem: 

      We noticed an issue with new build, all namespace backup stopped working. The backups are partially failing with error namespace not found.  Attached error log below:- 

       

      $ velero backup logs test-backup1 -n openshift-adp | grep level=error time="2024-10-24T14:31:07Z" level=error msg="error getting namespace *" backup=openshift-adp/test-backup1 error="Namespace \"*\" not found" logSource="/remote-source/velero/app/pkg/backup/backup.go:742"

       

       

      Version-Release number of selected component (if applicable):
      OADP 1.3.4-17  (Stage build)

       

      How reproducible:

      Always 

       

      Steps to Reproduce:
      1. Backup all namespace

       

      $ cat backup.yaml 

      apiVersion: velero.io/v1
      kind: Backup
      metadata:
        name: test-backup1
          #namespace: openshift-adp
      spec:
        includedNamespaces:
        - "*"

       

       

      Actual results:

      Backup is partially failing with error namespace not found. 

      $ oc get backup test-backup1 -o yaml
      apiVersion: velero.io/v1
      kind: Backup
      metadata:
        annotations:
          velero.io/resource-timeout: 10m0s
          velero.io/source-cluster-k8s-gitversion: v1.28.13+2ca1a23
          velero.io/source-cluster-k8s-major-version: "1"
          velero.io/source-cluster-k8s-minor-version: "28"
        creationTimestamp: "2024-10-24T14:31:07Z"
        generation: 36
        labels:
          velero.io/storage-location: ts-dpa-1
        name: test-backup1
        namespace: openshift-adp
        resourceVersion: "111760"
        uid: 6c7f5762-d9e1-4901-be75-7eb4b2c489af
      spec:
        csiSnapshotTimeout: 10m0s
        defaultVolumesToFsBackup: false
        includedNamespaces:
        - '*'
        itemOperationTimeout: 4h0m0s
        snapshotMoveData: false
        storageLocation: ts-dpa-1
        ttl: 720h0m0s
        volumeSnapshotLocations:
        - ts-dpa-1
      status:
        completionTimestamp: "2024-10-24T14:31:49Z"
        errors: 1
        expiration: "2024-11-23T14:31:07Z"
        formatVersion: 1.1.0
        phase: PartiallyFailed
        progress:
          itemsBackedUp: 8131
          totalItems: 8131
        startTimestamp: "2024-10-24T14:31:07Z"
        version: 1 

       

      Expected results:

      Backup should get completed successfully. 

       

      Additional info:

       

      $ velero describe backup test-backup1 -n openshift-adp 
      Name:         test-backup1
      Namespace:    openshift-adp
      Labels:       velero.io/storage-location=ts-dpa-1
      Annotations:  velero.io/resource-timeout=10m0s
                    velero.io/source-cluster-k8s-gitversion=v1.28.13+2ca1a23
                    velero.io/source-cluster-k8s-major-version=1
                    velero.io/source-cluster-k8s-minor-version=28
      
      Phase:  PartiallyFailed (run `velero backup logs test-backup1` for more information)
      
      
      Errors:
        Velero:    error: /Namespace "*" not found
        Cluster:    <none>
        Namespaces: <none>
      
      Namespaces:
        Included:  *
        Excluded:  <none>
      
      Resources:
        Included:        *
        Excluded:        <none>
        Cluster-scoped:  auto
      
      Label selector:  <none>
      
      Or label selector:  <none>
      
      Storage Location:  ts-dpa-1
      
      Velero-Native Snapshot PVs:  auto
      Snapshot Move Data:          false
      Data Mover:                  velero
      
      TTL:  720h0m0s
      
      CSISnapshotTimeout:    10m0s
      ItemOperationTimeout:  4h0m0s
      
      Hooks:  <none>
      
      Backup Format Version:  1.1.0
      
      Started:    2024-10-24 20:01:07 +0530 IST
      Completed:  2024-10-24 20:01:49 +0530 IST
      
      Expiration:  2024-11-23 20:01:07 +0530 IST
      
      Total items to be backed up:  8131
      Items backed up:              8131
      
      Velero-Native Snapshots: <none included> 

       

              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: