Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAR CR goes into BackingOff phase when associated backup is removed #178

Open
PrasadJoshi12 opened this issue Feb 7, 2025 · 0 comments
Open

Comments

@PrasadJoshi12
Copy link

Steps followed:-
Create Non Admin Backup
Created NonAdminRestore. (wait for restore to complete)

$ oc get nar -n test -o yaml
apiVersion: v1
items:
- apiVersion: oadp.openshift.io/v1alpha1
  kind: NonAdminRestore
  metadata:
    creationTimestamp: "2025-02-06T11:01:02Z"
    finalizers:
    - nonadminrestore.oadp.openshift.io/finalizer
    generation: 2
    name: test-nar
    namespace: test
    resourceVersion: "126191"
    uid: eceae35a-e6a9-4a95-855a-073c2c8132e8
  spec:
    restoreSpec:
      backupName: test
      hooks: {}
      itemOperationTimeout: 0s
  status:
    conditions:
    - lastTransitionTime: "2025-02-06T11:01:02Z"
      message: restore accepted
      reason: RestoreAccepted
      status: "True"
      type: Accepted
    - lastTransitionTime: "2025-02-06T11:01:02Z"
      message: Created Velero Restore object
      reason: RestoreScheduled
      status: "True"
      type: Queued
    phase: Created
    queueInfo:
      estimatedQueuePosition: 0
    veleroRestore:
      nacuuid: test-test-nar-465e530d-2de7-4598-94ca-4d85d9f3f892
      name: test-test-nar-465e530d-2de7-4598-94ca-4d85d9f3f892
      namespace: openshift-adp
      status:
        completionTimestamp: "2025-02-06T11:01:04Z"
        hookStatus: {}
        phase: Completed
        progress:
          itemsRestored: 15
          totalItems: 15
        startTimestamp: "2025-02-06T11:01:02Z"
        warnings: 4
  1. Now delete NonAdminBackup CR by setting deleteBackup: true
  2. Observe NAR CR
apiVersion: oadp.openshift.io/v1alpha1
  kind: NonAdminRestore
  metadata:
    creationTimestamp: "2025-02-06T11:01:02Z"
    finalizers:
    - nonadminrestore.oadp.openshift.io/finalizer
    generation: 2
    name: test-nar
    namespace: test
    resourceVersion: "126418"
    uid: eceae35a-e6a9-4a95-855a-073c2c8132e8
  spec:
    restoreSpec:
      backupName: test
      hooks: {}
      itemOperationTimeout: 0s
  status:
    conditions:
    - lastTransitionTime: "2025-02-06T11:01:46Z"
      message: 'NonAdminRestore spec.restoreSpec.backupName is invalid: NonAdminBackup
        is not ready to be restored'
      reason: InvalidRestoreSpec
      status: "False"
      type: Accepted
    - lastTransitionTime: "2025-02-06T11:01:02Z"
      message: Created Velero Restore object
      reason: RestoreScheduled
      status: "True"
      type: Queued
    phase: BackingOff
    queueInfo:
      estimatedQueuePosition: 0
    veleroRestore:
      nacuuid: test-test-nar-465e530d-2de7-4598-94ca-4d85d9f3f892
      name: test-test-nar-465e530d-2de7-4598-94ca-4d85d9f3f892
      namespace: openshift-adp
      status:
        completionTimestamp: "2025-02-06T11:01:04Z"
        hookStatus: {}
        phase: Completed
        progress:
          itemsRestored: 15
          totalItems: 15
        startTimestamp: "2025-02-06T11:01:02Z"
        warnings: 4

Actual Result:- NAR gets reconciled again which should not happen when velero restore is completed.

Expected Result:- There should be no errors on NAR CR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant