Ansible AWX - update using awx-operator - how to keep all secrets?

160 views
Skip to first unread message

Michał Chruściel

unread,
Jul 27, 2023, 5:45:05 AM7/27/23
to AWX Project

Hi all,

Upgrades using awx-operator work fine for me except on thing - credential secrets. After the upgrade it seems that the secrets cannot be unencrypted. Why is that?

I followed the following steps to upgrade from 2.3 to 2.4 awx operator.

 1. Adjust the kustomization.yaml file - change tags to point to version 2.4

2. Delete the old awx-operator:

 

·         kubectl -n awx delete deployment awx-operator-controller-manager

·         kubectl -n awx delete serviceaccount awx-operator-controller-manager

 

3. Then:

 

·         kustomize build . | kubectl apply -f -



The upgraded version of Ansible AWX is working fine except my credential secrets which cannot be unencrypted thus jobs/inventories fail to update.

What am I’m missing?

Kind regards,

Michał

 

AWX Project

unread,
Jul 28, 2023, 1:30:57 PM7/28/23
to AWX Project
what does kubectl get secrets return?

AWX Project

unread,
Jul 28, 2023, 1:39:28 PM7/28/23
to AWX Project
btw where did you find the upgrading instructions from? You shouldn't need to delete anything, just do a back up and then point to newer awx-operator image

Michał Chruściel

unread,
Aug 1, 2023, 8:12:09 AM8/1/23
to AWX Project
Thanks for you reply. So I just adjust kustiomization.yaml and:

# Prepare required files
cd ~
git clone https://github.com/kurokobo/awx-on-k3s.git
cd awx-on-k3s
git checkout 2.3.0  # Checkout the version to upgrade to

# Deploy AWX Operator
kubectl apply -k operator

That's all?

Reply all
Reply to author
Forward
0 new messages