Uploaded image for project: 'OpenShift API for Data Protection'
  1. OpenShift API for Data Protection
  2. OADP-6675

Registry secret not found when performing imagestream backup on azure-sts

XMLWordPrintable

    • Quality / Stability / Reliability
    • 3
    • False
    • Hide

      None

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

      Description of problem:

      Backups are failing for the applications containing imagestreams on azure-sts platform.

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

      1.5.1

      How reproducible:

      Always

      Steps to Reproduce:
      1. Deploy an app with imagestream, lets say django
      2. Perform Backup

      Actual results:

      BSL:

      oc get bsl -o yaml
      apiVersion: v1
      items:
      - apiVersion: velero.io/v1
        kind: BackupStorageLocation
        metadata:
          creationTimestamp: "2025-09-09T16:12:38Z"
          generation: 6
          name: ts-dpa-1
          namespace: openshift-adp
          ownerReferences:
          - apiVersion: oadp.openshift.io/v1alpha1
            blockOwnerDeletion: true
            controller: true
            kind: DataProtectionApplication
            name: ts-dpa
            uid: 367d2775-937b-488e-9d23-071485281508
          resourceVersion: "188798"
          uid: 778b8592-3a36-41f0-94b8-24d88e53f625
        spec:
          config:
            storageAccount: oadp127811z5w6m
            useAAD: "true"
          credential:
            key: azurekey
            name: cloud-credentials-azure
          default: true
          objectStorage:
            bucket: oadp127811z5w6m
            prefix: velero-e2e-47fa7252-8d89-11f0-ba02-0a58ac1202df
          provider: azure
        status:
          lastSyncedTime: "2025-09-09T16:15:44Z"
          lastValidationTime: "2025-09-09T16:15:04Z"
          phase: Available
      kind: List
      metadata:
        resourceVersion: ""
      

      Backup:

      velero describe backup django-persistent-ec5803ac-8d91-11f0-ba02-0a58ac1202df -n openshift-adp --details
      Name:         django-persistent-ec5803ac-8d91-11f0-ba02-0a58ac1202df
      Namespace:    openshift-adp
      Labels:       velero.io/storage-location=ts-dpa-1
      Annotations:  velero.io/resource-timeout=10m0s
                    velero.io/source-cluster-k8s-gitversion=v1.32.6
                    velero.io/source-cluster-k8s-major-version=1
                    velero.io/source-cluster-k8s-minor-version=32
      
      Phase:  PartiallyFailed (run `velero backup logs django-persistent-ec5803ac-8d91-11f0-ba02-0a58ac1202df` for more information)
      
      
      Errors:
        Velero:    message: /[is-backup] Error getting UdistributionTransportForLocation: errors getting registryenv: secrets "oadp-ts-dpa-1-azure-registry-secret" not found
                   name: /django-psql-persistent message: /Error backing up item error: /error executing custom action (groupResource=imagestreams.image.openshift.io, namespace=test-oadp-402, name=django-psql-persistent): rpc error: code = Unknown desc = errors getting registryenv: secrets "oadp-ts-dpa-1-azure-registry-secret" not found
        Cluster:    <none>
        Namespaces: <none>
      
      Namespaces:
        Included:  test-oadp-402
        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:          true
      Data Mover:                  velero
      
      TTL:  720h0m0s
      
      CSISnapshotTimeout:    10m0s
      ItemOperationTimeout:  4h0m0s
      
      Hooks:  <none>
      
      Backup Format Version:  1.1.0
      
      Started:    2025-09-09 21:02:36 +0530 IST
      Completed:  2025-09-09 21:04:09 +0530 IST
      
      Expiration:  2025-10-09 21:02:36 +0530 IST
      
      Total items to be backed up:  88
      Items backed up:              88
      
      Backup Item Operations:
        Operation for persistentvolumeclaims test-oadp-402/postgresql:
          Backup Item Action Plugin:  velero.io/csi-pvc-backupper
          Operation ID:               du-cb88f447-2396-42af-a7bb-67b5d262ad7a.a3f55617-5f6a-4755fe184
          Items to Update:
                                 datauploads.velero.io openshift-adp/django-persistent-ec5803ac-8d91-11f0-ba02-0a58ac1202df-g6dj6
          Phase:                 Completed
          Progress:              50188091 of 50188091 complete (Bytes)
          Progress description:  Completed
          Created:               2025-09-09 21:02:44 +0530 IST
          Started:               2025-09-09 21:03:09 +0530 IST
          Updated:               2025-09-09 21:03:56 +0530 IST
      Resource List:
        apps.openshift.io/v1/DeploymentConfig:
          - test-oadp-402/django-psql-persistent
          - test-oadp-402/postgresql
        authorization.openshift.io/v1/RoleBinding:
          - test-oadp-402/admin
          - test-oadp-402/system:deployers
          - test-oadp-402/system:image-builders
          - test-oadp-402/system:image-pullers
        build.openshift.io/v1/Build:
          - test-oadp-402/django-psql-persistent-1
        build.openshift.io/v1/BuildConfig:
          - test-oadp-402/django-psql-persistent
        discovery.k8s.io/v1/EndpointSlice:
          - test-oadp-402/django-psql-persistent-cm6c4
          - test-oadp-402/postgresql-g99fv
        image.openshift.io/v1/ImageStream:
          - test-oadp-402/django-psql-persistent
        image.openshift.io/v1/ImageStreamTag:
          - test-oadp-402/django-psql-persistent:latest
        image.openshift.io/v1/ImageTag:
          - test-oadp-402/django-psql-persistent:latest
        rbac.authorization.k8s.io/v1/RoleBinding:
          - test-oadp-402/admin
          - test-oadp-402/system:deployers
          - test-oadp-402/system:image-builders
          - test-oadp-402/system:image-pullers
        route.openshift.io/v1/Route:
          - test-oadp-402/django-psql-persistent
        template.openshift.io/v1/Template:
          - test-oadp-402/mtc-test-django-psql-persistent
        v1/ConfigMap:
          - test-oadp-402/django-psql-persistent-1-ca
          - test-oadp-402/django-psql-persistent-1-global-ca
          - test-oadp-402/django-psql-persistent-1-sys-config
          - test-oadp-402/kube-root-ca.crt
          - test-oadp-402/openshift-service-ca.crt
        v1/Endpoints:
          - test-oadp-402/django-psql-persistent
          - test-oadp-402/postgresql
        v1/Event:
          - test-oadp-402/django-psql-persistent-1-build.1863a6f94e3b1d6d
          - test-oadp-402/django-psql-persistent-1-build.1863a6f96d5bd326
          - test-oadp-402/django-psql-persistent-1-build.1863a6f9716042c3
          - test-oadp-402/django-psql-persistent-1-build.1863a6f983489a50
          - test-oadp-402/django-psql-persistent-1-build.1863a6f984187566
          - test-oadp-402/django-psql-persistent-1-build.1863a6f9d99c2549
          - test-oadp-402/django-psql-persistent-1-build.1863a6f9e7fc3544
          - test-oadp-402/django-psql-persistent-1-build.1863a6f9e905205a
          - test-oadp-402/django-psql-persistent-1-build.1863a6fa15078236
          - test-oadp-402/django-psql-persistent-1-build.1863a6fa2583476b
          - test-oadp-402/django-psql-persistent-1-build.1863a6fa268d7783
          - test-oadp-402/django-psql-persistent-1-deploy.1863a7083997e708
          - test-oadp-402/django-psql-persistent-1-deploy.1863a70858b83d78
          - test-oadp-402/django-psql-persistent-1-deploy.1863a7085b88ef0e
          - test-oadp-402/django-psql-persistent-1-deploy.1863a7086178a661
          - test-oadp-402/django-psql-persistent-1-deploy.1863a708628d2afe
          - test-oadp-402/django-psql-persistent-1-fdswf.1863a7087181103a
          - test-oadp-402/django-psql-persistent-1-fdswf.1863a7088e3676c3
          - test-oadp-402/django-psql-persistent-1-fdswf.1863a708905adda6
          - test-oadp-402/django-psql-persistent-1-fdswf.1863a7093701e20a
          - test-oadp-402/django-psql-persistent-1-fdswf.1863a7093c415d61
          - test-oadp-402/django-psql-persistent-1-fdswf.1863a7093d14b0c6
          - test-oadp-402/django-psql-persistent-1.1863a6f9a24802eb
          - test-oadp-402/django-psql-persistent-1.1863a70870591123
          - test-oadp-402/django-psql-persistent-1.1863a708a8025437
          - test-oadp-402/django-psql-persistent.1863a70833d467d9
          - test-oadp-402/postgresql-1-d7gss.1863a6fa7a81e2a6
          - test-oadp-402/postgresql-1-d7gss.1863a6fdeef941d0
          - test-oadp-402/postgresql-1-d7gss.1863a6fe4594b135
          - test-oadp-402/postgresql-1-d7gss.1863a6fe4a0cb9b3
          - test-oadp-402/postgresql-1-d7gss.1863a6fe53a7570c
          - test-oadp-402/postgresql-1-d7gss.1863a6fe549561fc
          - test-oadp-402/postgresql-1-deploy.1863a6f95352e777
          - test-oadp-402/postgresql-1-deploy.1863a6f973e64ec3
          - test-oadp-402/postgresql-1-deploy.1863a6f97635224a
          - test-oadp-402/postgresql-1-deploy.1863a6f97b1e805b
          - test-oadp-402/postgresql-1-deploy.1863a6f97c516023
          - test-oadp-402/postgresql-1.1863a6f98a6e4c5f
          - test-oadp-402/postgresql.1863a6f948509cb2
          - test-oadp-402/postgresql.1863a6f950380cee
          - test-oadp-402/postgresql.1863a6f98c370b7f
          - test-oadp-402/postgresql.1863a6f98c42eeab
          - test-oadp-402/postgresql.1863a6fa6611434b
        v1/Namespace:
          - test-oadp-402
        v1/PersistentVolume:
          - pvc-a3f55617-5f6a-4755-b132-2dafc24d6e86
        v1/PersistentVolumeClaim:
          - test-oadp-402/postgresql
        v1/Pod:
          - test-oadp-402/django-psql-persistent-1-build
          - test-oadp-402/django-psql-persistent-1-deploy
          - test-oadp-402/django-psql-persistent-1-fdswf
          - test-oadp-402/postgresql-1-d7gss
          - test-oadp-402/postgresql-1-deploy
        v1/ReplicationController:
          - test-oadp-402/django-psql-persistent-1
          - test-oadp-402/postgresql-1
        v1/Secret:
          - test-oadp-402/builder-dockercfg-4pm8q
          - test-oadp-402/default-dockercfg-skz8h
          - test-oadp-402/deployer-dockercfg-bnj54
          - test-oadp-402/django-psql-persistent
        v1/Service:
          - test-oadp-402/django-psql-persistent
          - test-oadp-402/postgresql
        v1/ServiceAccount:
          - test-oadp-402/builder
          - test-oadp-402/default
          - test-oadp-402/deployer
      
      Backup Volumes:
        Velero-Native Snapshots: <none included>
      
        CSI Snapshots:
          test-oadp-402/postgresql:
            Data Movement:
              Operation ID: du-cb88f447-2396-42af-a7bb-67b5d262ad7a.a3f55617-5f6a-4755fe184
              Data Mover: velero
              Uploader Type: kopia
              Moved data Size (bytes): 50188091
              Result: succeeded
      
        Pod Volume Backups: <none included>
      
      HooksAttempted:  0
      HooksFailed:     0
      

      Expected results:

      Backup should be passing

      Additional info:

              tkaovila@redhat.com Tiger Kaovilai
              rhn-support-ssingla Sachin Singla
              Sachin Singla Sachin Singla
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: