Closed e3b0c442 closed 9 months ago
I was unable to duplicate on a clean k3s install on a new VM.
Further digging led me to this issue: https://github.com/ansible-collections/kubernetes.core/issues/659, which was interesting to me because the AWX operator had worked previously for me, but I recently added Kubevirt to my cluster.
From there I was able to determine that there are several places where the incorrect api_version
v1
is used to refer to the Deployment
resource, instead of the correct api_version
apps/v1
.
Once I corrected those, I was able to successfully deploy AWX with the operator.
I will work with my employer to get permission to open a contribution PR, but that may take time; if somebody else wants to address, the following lines are the offending usages of v1
:
https://github.com/ansible/awx-operator/blob/582701d94971480978b568e5f281f0ef38ebc0e5/roles/installer/tasks/install.yml#L5 https://github.com/ansible/awx-operator/blob/582701d94971480978b568e5f281f0ef38ebc0e5/roles/installer/tasks/main.yml#L12 https://github.com/ansible/awx-operator/blob/582701d94971480978b568e5f281f0ef38ebc0e5/roles/installer/tasks/main.yml#L20
Hope this helps, and thanks for the efforts here.
For anyone dealing with this issue right now, it is fixed in the devel
branch via commit https://github.com/ansible/awx-operator/commit/07427be0b79411f5c8fd2ffd7caf4fd92fcce47a#diff-7180b7befb3d9c94f8c887bcc704d8c4ffdd87fc711d3efd313fa3740fb9e639
Thanks for following up here @David-Igou Looks like we can close this one now.
Please confirm the following
Bug Summary
Installing an AWX cluster fails; logging from the operator indicates
ValueError: too many values to unpack (expected 2)
on step[installer : Check for presence of old awx Deployment]
AWX Operator version
2.9.0
AWX version
n/a (install failing)
Kubernetes platform
other (please specify in additional information)
Kubernetes/Platform version
k3s v1.27.8+k3s2
Modifications
no
Steps to reproduce
Expected results
AWX cluster is installed as expected
Actual results
No cluster, error in log
Additional information
Operator Logs