Hi,
I have an AWX-operator deployment running and I am testing my disaster recovery procedures. I have made a backup of my AWX operator deployment and move the backup files to my laptop:
[red@BP22006.local tower-openshift-backup-2023-04-14-16:06:26]$ pwd /Users/russell.cecala/AWX/BACKUP_RESTORE/rocky/pvc-37ccc9bf-1ffb-4565-bd31-5c3eb1ad21cb_awx_awx-demo-backup-claim/tower-openshift-backup-2023-04-14-16:06:26 [red@BP22006.local tower-openshift-backup-2023-04-14-16:06:26]$ ls -l total 164360 -rw-r–r-- 1 red staff 1118 Apr 17 09:57 awx_object -rw-r–r-- 1 red staff 13164 Apr 17 09:57 secrets.yml -rw-r----- 1 red staff 72039972 Apr 17 09:57 tower.db
I think now I need to create a PVC on my laptop’s minikube system like so …
$ cat laptop-pvc.yml apiVersion: v1 kind: PersistentVolumeClaim metadata: name: awx-backup spec: accessModes: - ReadWriteOnce resources: requests: storage: 1Gi
$ kubectl apply -f laptop-pvc.yml
persistentvolumeclaim/awx-backup created
But when I do a describe on the PV I see a Path that does not exists!
$ kubectl describe pv pvc-3910cc84-e2bd-47cb-9830-8b13516cd56f | grep Path Annotations: hostPathProvisionerIdentity: ced76979-2cc1-4903-891e-9a30e656cf5b Type: HostPath (bare host directory volume) Path: /tmp/hostpath-provisioner/default/awx-backup HostPathType:
$ ls -l /tmp/hostpath-provisioner/default/awx-backup ls: /tmp/hostpath-provisioner/default/awx-backup: No such file or directory
Do I need to create that path first?
Please help. I am getting very confused and cannot figure out how to do a simple restore from a backup.