Skip to content

awx restore loop #2083

@birb57

Description

@birb57

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that the AWX Operator is open source software provided for free and that I might not receive a timely response.

Bug Summary

Hi

I am trying to restore awx backup taken from old host under redhat to a new one

Seems that awx restore role complete succeefully but non stop loop

awx version 👍 | 2.19.1 | 24.6.1 |

[IAAS - root@awx-on-k3s]$ kubectl version
Client Version: v1.28.5+k3s1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.5+k3s1
[IAAS - root@awx-on-k3s]$ more restore/awxrestore.yaml

apiVersion: awx.ansible.com/v1beta1
kind: AWXRestore
metadata:
name: awxrestore-2025-10-02
namespace: awx
spec:
deployment_name: awx

Parameters to restore from AWXBackup object

#backup_name: awxbackup-2021-06-06

Parameters to restore from existing files on PVC (without AWXBackup object)

backup_pvc: awx-backup-claim
backup_dir: /backups/tower-openshift-backup-2025-10-02-105434

Uncomment to reveal "censored" logs

#no_log: false

Thanks

AWX Operator version

2.19.1

AWX version

24.6.1

Kubernetes platform

kubernetes

Kubernetes/Platform version

v1.28.5+k3s1

Modifications

no

Steps to reproduce

backup awx via role on old system under 24.6.1/2.19.1
restore awx backup on new system under same RH/AWX/Operator release

Expected results

NAME READY STATUS RESTARTS AGE
awx-operator-controller-manager-745b55d94b-9j2sr 2/2 Running 4 (48m ago) 109m
awx-postgres-15-0 1/1 Running 0 36m
awx-migration-24.6.1-xbg4c 0/1 Completed 0 35m
awx-web-7c78fbd657-zv9zz 3/3 Running 0 4m21s
awx-task-678d56774d-dgkdn 4/4 Running 4 (55s ago) 4m19s
[IAAS - root@awx-on-k3s]$ more restore/

Actual results

NAME READY STATUS RESTARTS AGE
awx-operator-controller-manager-745b55d94b-9j2sr 2/2 Running 4 (59m ago) 119m
awx-postgres-15-0 1/1 Running 0 47m
awx-migration-24.6.1-6d6xp 0/1 Error 0 46m
awx-migration-24.6.1-xbg4c 0/1 Completed 0 46m
awx-web-7c78fbd657-dkdkp 3/3 Running 0 3m37s
awx-task-678d56774d-jcstn 3/4 CrashLoopBackOff 3 (34s ago) 3m35s
awxrestore-2025-10-02-db-management 1/1 Terminating 0 4m39s

Additional information

No response

Operator Logs

restore command] ****************************************\r\ntask path: /opt/ansible/roles/restore/tasks/postgres.yml:75\nok: [localhost] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false}\n\r\nTASK [restore : Set drop db command] *******************************************\r\ntask path: /opt/ansible/roles/restore/tasks/postgres.yml:87\nskipping: [localhost] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false}\n\r\nTASK [restore : Set create db command] *****************************************\r\ntask path: /opt/ansible/roles/restore/tasks/postgres.yml:97\nskipping: [localhost] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false}\n\r\nTASK [restore : Set complete pg restore command] *******************************\r\ntask path: /opt/ansible/roles/restore/tasks/postgres.yml:107\nskipping: [localhost] => {"changed": false, "false_condition": "force_drop_db", "skip_reason": "Conditional result was False"}\n\r\nTASK [restore : Restore database dump to the new postgresql container] *********\r\ntask path: /opt/ansible/roles/restore/tasks/postgres.yml:114\nfatal: [localhost]: FAILED! => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true}\n\r\nPLAY RECAP *********************************************************************\r\nlocalhost : ok=50 changed=8 unreachable=0 failed=1 skipped=19 rescued=0 ignored=0 \n","job":"200270453323133515","name":"awxrestore-2025-10-02","namespace":"awx","error":"exit status 2","stacktrace":"github.com/operator-framework/ansible-operator-plugins/internal/ansible/runner.(*runner).Run.func1\n\tansible-operator-plugins/internal/ansible/runner/runner.go:269"}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions