-
Bug
-
Resolution: Done-Errata
-
Major
-
OADP 1.4.0
-
4
-
False
-
-
False
-
oadp-operator-bundle-container-1.4.1-28
-
ToDo
-
-
-
0
-
0.000
-
Very Likely
-
0
-
None
-
Unset
-
Unknown
-
None
Description of problem:
On performing a backup of an application using buildconfig like django, the application results in error while restoring on a different cluster, when backed up from OCP 4.15
Version-Release number of selected component (if applicable):
OCP 4.15 -> 4.16 OR 4.15 -> 4.15
How reproducible:
Always
Steps to Reproduce:
1. Deploy django application on the first cluster 4.15
2. Perform a VSL Backup of the application on the first cluster
3. Restore the application on the target cluster 4.16
Actual results:
Buildconfig results in image push error while connecting to internal image registry.
Expected results:
The application should be restored correctly and should be running.
Additional info:
BuildConfig Describe logs
Getting image source signatures
Copying blob sha256:34a74cea385f3f022973f63ccd2ef8a768ba9cb5fce887926956e24abc05ffa3
Copying blob sha256:6521843dd4764da8f455aa0734384e4e056cab523fba813770cda18edf0e32c3
Copying blob sha256:4bb16177726caec64d3e9592403e6b642602b0b5b9c3ce3efeb9c00e117772ca
Copying blob sha256:e3d99f7cb76394ee652bf34d2e1f636d26ad33a5728e836827c09dd61ff6aef6
Copying blob sha256:a9644f686a26ba8fb5115ea69971272c42a1b776e4c63ae77667d7d59f5a4094
Copying blob sha256:e1f4200769a3ea28c2056b415a759ab26953310ff5a53e3a5d5b969110653d39
Warning: Push failed, retrying in 5s ...
Registry server Address:
Registry server User Name: <token>
Registry server Email:
Registry server Password: <<non-empty>>
error: build error: Failed to push image: trying to reuse blob sha256:4bb16177726caec64d3e9592403e6b642602b0b5b9c3ce3efeb9c00e117772ca at destination: pinging container registry image-registry.openshift-image-registry.svc:5000: Get "https://image-registry.openshift-image-registry.svc:5000/v2/": tls: failed to verify certificate: x509: certificate signed by unknown authority
Exit Code: 1
Started: Tue, 13 Aug 2024 22:14:11 +0530
Finished: Tue, 13 Aug 2024 22:14:56 +0530
Ready: False
$ oc get pods -n django
NAME READY STATUS RESTARTS AGE django-psql-persistent-1-build 0/1 Error 0 12m django-psql-persistent-1-deploy 0/1 Completed 0 12m django-psql-persistent-1-kgr6l 1/1 Running 4 (11m ago) 12m postgresql-1-deploy 0/1 Completed 0 13m postgresql-1-xx8xr 1/1 Running 0 13m
DPA:
apiVersion: v1 items: - apiVersion: oadp.openshift.io/v1alpha1 kind: DataProtectionApplication metadata: creationTimestamp: "2024-08-13T16:43:22Z" generation: 1 name: ts-dpa namespace: openshift-adp resourceVersion: "47778" uid: 360f9c23-1c68-4e3c-8eaf-72fe17104810 spec: backupLocations: - velero: credential: key: cloud name: cloud-credentials default: true objectStorage: bucket: oadp933219v5f4 prefix: velero provider: gcp configuration: velero: defaultPlugins: - openshift - gcp snapshotLocations: - velero: credential: key: cloud name: cloud-credentials provider: gcp status: conditions: - lastTransitionTime: "2024-08-13T16:43:22Z" message: Reconcile complete reason: Complete status: "True" type: Reconciled
backup
apiVersion: velero.io/v1 kind: Backup metadata: annotations: velero.io/resource-timeout: 10m0s velero.io/source-cluster-k8s-gitversion: v1.28.12+396c881 velero.io/source-cluster-k8s-major-version: "1" velero.io/source-cluster-k8s-minor-version: "28" creationTimestamp: "2024-08-13T16:41:27Z" generation: 8 labels: velero.io/storage-location: ts-dpa-1 name: test namespace: openshift-adp resourceVersion: "55138" uid: 3a7a001d-23cc-41ec-a6be-69a33bfa7ff7 spec: csiSnapshotTimeout: 10m0s defaultVolumesToFsBackup: false includedNamespaces: - django itemOperationTimeout: 4h0m0s snapshotMoveData: false storageLocation: ts-dpa-1 ttl: 720h0m0s volumeSnapshotLocations: - ts-dpa-1 status: completionTimestamp: "2024-08-13T16:41:42Z" expiration: "2024-09-12T16:41:27Z" formatVersion: 1.1.0 hookStatus: {} phase: Completed progress: itemsBackedUp: 94 totalItems: 94 startTimestamp: "2024-08-13T16:41:27Z" version: 1 volumeSnapshotsAttempted: 1 volumeSnapshotsCompleted: 1
Restore
apiVersion: velero.io/v1 kind: Restore metadata: creationTimestamp: "2024-08-13T16:43:49Z" finalizers: - restores.velero.io/external-resources-finalizer generation: 9 name: test namespace: openshift-adp resourceVersion: "48203" uid: 6f79815d-5a30-4ed1-880c-164e9ef38fbf spec: backupName: test excludedResources: - nodes - events - events.events.k8s.io - backups.velero.io - restores.velero.io - resticrepositories.velero.io - csinodes.storage.k8s.io - volumeattachments.storage.k8s.io - backuprepositories.velero.io itemOperationTimeout: 4h0m0s status: completionTimestamp: "2024-08-13T16:44:04Z" hookStatus: {} phase: Completed progress: itemsRestored: 45 totalItems: 45 startTimestamp: "2024-08-13T16:43:49Z" warnings: 6
- links to
-
RHBA-2024:132893 OpenShift API for Data Protection (OADP) 1.4.1 security and bug fix update
- mentioned on