I am slowly upgrading all the AWX deployments in my company.
Basically what I’m doing is:
- Save all secrets from the old deployment
- Delete old namespace
- Redeploy using my own yamls
This works great, but for one environment I run into a problem doing step 2: Deleting the old namespace. The namespace stays in ‘terminating’ status.
When searching for reasons I found out that there’s an AWXBackup object that can’t be deleted.
How can I check the log of the backup to see what the problem is? My guess is that it’s trying to backup to a directory that does not exist (anymore?).
I found kubectl delete stuck - what to do and why this happen| Devops Junction which says ‘Just delete the finalizers’, but I’m hesitant to do that. kubectl describe awxbackup 'mybackup' -n myns
doesn’t show any errors or events, and kubectl logs awxbackup/mybackup -n myns
says error: no kind "AWXBackup" is registered for version "awx.ansible.com/v1beta1" in scheme "pkg/scheme/scheme.go:28"
, probably because the backup type is namespace bound.