# Deployment of AWX-OPERATOR fails

**URL:** <https://forum.ansible.com/t/deployment-of-awx-operator-fails/39121>\
**Category:** Get Help\
**Tags:** awx-operator, awx\
**Created:** [December 13, 2024, 9:39am UTC](https://forum.ansible.com/t/deployment-of-awx-operator-fails/39121 "2024-12-13T09:39:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![moomin893](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/moomin893/32/6982_2.png) [@moomin893](https://forum.ansible.com/u/moomin893)\
**Post date:** [December 13, 2024, 9:39am UTC](https://forum.ansible.com/t/deployment-of-awx-operator-fails/39121/1 "2024-12-13T09:39:09Z")

</div>

AWX-OPERATOR version: 0.20

AWX web service will not start.

```auto
NAME READY STATUS RESTARTS AGE
pod/awx-demo-postgres-0 1/1 Running 0 53m
pod/awx-operator-controller-manager-579fd74d78-k7z2r 2/2 Running 0 54m

```

Output of awx-operator :

```auto
TASK [installer : Apply Resources] *********************************************
task path: /opt/ansible/roles/installer/tasks/resources_configuration.yml:30
changed: [localhost] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true}
changed: [localhost] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true}
changed: [localhost] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true}
changed: [localhost] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true}
failed: [localhost] (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false}
ok: [localhost] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false}
fatal: [localhost]: FAILED! => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true}

PLAY RECAP *********************************************************************
localhost : ok=39 changed=3 unreachable=0 failed=1 skipped=27 rescued=0 ignored=0

```

awx-demo.yml

```auto
---
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
  name: awx-demo
spec:
  service_type: nodeport
  postgres_storage_class: awx-postgres-volume

```

I want to install AWX-OPERATOR version: 0.20. Please tell me what I am doing wrong.

---

<div class="post-metadata">

**Author:** ![anon81884396](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@anon81884396](https://forum.ansible.com/u/anon81884396)\
**Post date:** [December 13, 2024, 1:18pm UTC](https://forum.ansible.com/t/deployment-of-awx-operator-fails/39121/2 "2024-12-13T13:18:36Z")

</div>

Are you really trying to install version 0.20 [Release 0.20.0 · ansible/awx-operator · GitHub](https://github.com/ansible/awx-operator/releases/tag/0.20.0), which was released in March of 2022? Is there any particular reason you aren’t trying a more recent version?

Regardless, it’s impossible to recommend anything based off what you’ve shown here obviously since everything has “the output has been hidden due to no\_log” thing. Per [the output has been hidden due to the fact that 'no\_log: true' was specified for this result · Issue #1574 · ansible/awx-operator · GitHub](https://github.com/ansible/awx-operator/issues/1574)  
you can add no\_log: False under “spec” on your awx CR yaml file and the logs should show up

---

<div class="post-metadata">

**Author:** ![moomin893](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/moomin893/32/6982_2.png) [@moomin893](https://forum.ansible.com/u/moomin893)\
**Post date:** [December 13, 2024, 1:59pm UTC](https://forum.ansible.com/t/deployment-of-awx-operator-fails/39121/3 "2024-12-13T13:59:54Z")

</div>

I want to deploy AWX 0.20 because many people want to use AWX that I have been using.

I added no\_log to awx-cr.yml but got an error.

```auto
\"reason\":\"Failed\"
,\"status\":\"True\",\"type\":\"Failure\"}]}}": strict decoding error: unknown field "spec.no_log"

```

---

<div class="post-metadata">

**Author:** ![anon81884396](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@anon81884396](https://forum.ansible.com/u/anon81884396)\
**Post date:** [December 13, 2024, 4:09pm UTC](https://forum.ansible.com/t/deployment-of-awx-operator-fails/39121/4 "2024-12-13T16:09:05Z")

</div>

Downloading [Release 0.20.0 · ansible/awx-operator · GitHub](https://github.com/ansible/awx-operator/releases/tag/0.20.0) and grepping for no\_log yields every single instance of no\_log hardcoded to True, so I guess this feature was added in a later version.

Someone with more knowledge can correct me if I’m mistaken.

```auto
~/awx-operator-0.20.0$ grep -ri no_log *
roles/backup/tasks/dump_generated_secret.yml: no_log: true
roles/backup/tasks/dump_generated_secret.yml: no_log: true
roles/backup/tasks/dump_generated_secret.yml: no_log: true
roles/backup/tasks/secrets.yml: no_log: true
roles/backup/tasks/secrets.yml: no_log: true
roles/backup/tasks/postgres.yml: no_log: true
roles/backup/tasks/postgres.yml: no_log: true
roles/backup/tasks/postgres.yml: no_log: true
roles/backup/tasks/postgres.yml: no_log: true
roles/backup/tasks/postgres.yml: no_log: true
roles/backup/tasks/dump_secret.yml: no_log: true
roles/backup/tasks/dump_secret.yml: no_log: true
roles/backup/tasks/dump_secret.yml: no_log: true
roles/installer/tasks/load_route_tls_secret.yml: no_log: true
roles/installer/tasks/load_route_tls_secret.yml: no_log: true
roles/installer/tasks/load_route_tls_secret.yml: no_log: true
roles/installer/tasks/load_ldap_cacert_secret.yml: no_log: true
roles/installer/tasks/load_ldap_cacert_secret.yml: no_log: true
roles/installer/tasks/cleanup.yml: no_log: true
roles/installer/tasks/admin_password_configuration.yml: no_log: true
roles/installer/tasks/admin_password_configuration.yml: no_log: true
roles/installer/tasks/admin_password_configuration.yml: no_log: true
roles/installer/tasks/admin_password_configuration.yml: no_log: true
roles/installer/tasks/admin_password_configuration.yml: no_log: true
roles/installer/tasks/admin_password_configuration.yml: no_log: true
roles/installer/tasks/admin_password_configuration.yml: no_log: true
roles/installer/tasks/migrate_data.yml: no_log: true
roles/installer/tasks/migrate_data.yml: no_log: true
roles/installer/tasks/migrate_data.yml: no_log: true
roles/installer/tasks/migrate_data.yml: no_log: true
<...>

```

As opposed to a more recent version:

```auto
~/awx-operator-2.19.1$ grep -ri no_log *
ansible/helm-release.yml: no_log: true
config/crd/bases/awx.ansible.com_awxrestores.yaml: no_log:
config/crd/bases/awx.ansible.com_awxrestores.yaml: description: Configure no_log for no_log tasks
config/crd/bases/awx.ansible.com_awxbackups.yaml: no_log:
config/crd/bases/awx.ansible.com_awxbackups.yaml: description: Configure no_log for no_log tasks
config/crd/bases/awx.ansible.com_awxs.yaml: no_log:
config/crd/bases/awx.ansible.com_awxs.yaml: description: Configure no_log for no_log tasks
config/manifests/bases/awx-operator.clusterserviceversion.yaml: path: no_log
config/manifests/bases/awx-operator.clusterserviceversion.yaml: path: no_log
config/manifests/bases/awx-operator.clusterserviceversion.yaml: path: no_log
docs/user-guide/advanced-configuration/no-log.md:Configure no_log for tasks with no_log
docs/user-guide/advanced-configuration/no-log.md:| no_log | No log configuration | 'true' |
docs/user-guide/advanced-configuration/no-log.md:Example configuration of `no_log` parameter
docs/user-guide/advanced-configuration/no-log.md: no_log: true
docs/troubleshooting/debugging.md:It is possible to show task output for debugging by setting no_log to false on the AWX CR spec.
docs/troubleshooting/debugging.md:This will show output in the awx-operator logs for any failed tasks where no_log was set to true.
docs/troubleshooting/debugging.md: no_log: false # <------------
molecule/default/templates/awx_cr_molecule.yml.j2: no_log: false
playbooks/awx.yml: no_log: true
playbooks/awx.yml: no_log: "{{ no_log }}"
roles/backup/tasks/dump_ingress_tls_secrets.yml: no_log: "{{ no_log }}"
roles/backup/tasks/dump_ingress_tls_secrets.yml: no_log: "{{ no_log }}"
roles/backup/tasks/dump_ingress_tls_secrets.yml: no_log: "{{ no_log }}"
roles/backup/tasks/dump_generated_secret.yml: no_log: "{{ no_log }}"
roles/backup/tasks/dump_generated_secret.yml: no_log: "{{ no_log }}"
roles/backup/tasks/dump_generated_secret.yml: no_log: "{{ no_log }}"
roles/backup/tasks/secrets.yml: no_log: "{{ no_log }}"
roles/backup/tasks/secrets.yml: no_log: "{{ no_log }}"
roles/backup/tasks/dump_receptor_secrets.yml: no_log: "{{ no_log }}"
roles/backup/tasks/dump_receptor_secrets.yml: no_log: "{{ no_log }}"
roles/backup/tasks/dump_receptor_secrets.yml: no_log: "{{ no_log }}"
roles/backup/tasks/postgres.yml: no_log: "{{ no_log }}"
roles/backup/tasks/postgres.yml: no_log: "{{ no_log }}"
roles/backup/tasks/postgres.yml: no_log: "{{ no_log }}"
roles/backup/tasks/postgres.yml: no_log: "{{ no_log }}"
roles/backup/tasks/postgres.yml: no_log: "{{ no_log }}"
roles/backup/tasks/dump_secret.yml: no_log: "{{ no_log }}"
roles/backup/tasks/dump_secret.yml: no_log: "{{ no_log }}"
roles/backup/tasks/dump_secret.yml: no_log: "{{ no_log }}"
roles/backup/defaults/main.yml:# Set no_log settings on certain tasks
roles/backup/defaults/main.yml:no_log: true
roles/installer/tasks/load_route_tls_secret.yml: no_log: "{{ no_log }}"
roles/installer/tasks/load_route_tls_secret.yml: no_log: "{{ no_log }}"
roles/installer/tasks/load_route_tls_secret.yml: no_log: "{{ no_log }}"
roles/installer/tasks/load_ldap_cacert_secret.yml: no_log: "{{ no_log }}"
roles/installer/tasks/load_ldap_cacert_secret.yml: no_log: "{{ no_log }}"
roles/installer/tasks/cleanup.yml: no_log: "{{ no_log }}"
roles/installer/tasks/admin_password_configuration.yml: no_log: "{{ no_log }}"
roles/installer/tasks/admin_password_configuration.yml: no_log: "{{ no_log }}"
roles/installer/tasks/admin_password_configuration.yml: no_log: "{{ no_log }}"
roles/installer/tasks/admin_password_configuration.yml: no_log: "{{ no_log }}"
roles/installer/tasks/admin_password_configuration.yml: no_log: "{{ no_log }}"
roles/installer/tasks/admin_password_configuration.yml: no_log: "{{ no_log }}"
roles/installer/tasks/admin_password_configuration.yml: no_log: "{{ no_log }}"
roles/installer/tasks/migrate_data.yml: no_log: "{{ no_log }}"
roles/installer/tasks/migrate_data.yml: no_log: "{{ no_log }}"
roles/installer/tasks/migrate_data.yml: no_log: "{{ no_log }}"
roles/installer/tasks/migrate_data.yml: no_log: "{{ no_log }}"
<...>

```

At any rate, this is probably why it would make sense to utilize a newer version of the operator instead of standing up additional instances of two-year-old software that has unaddressed bugs and missing features.

---

<div class="post-metadata">

**Author:** ![moomin893](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/moomin893/32/6982_2.png) [@moomin893](https://forum.ansible.com/u/moomin893)\
**Post date:** [December 13, 2024, 11:51pm UTC](https://forum.ansible.com/t/deployment-of-awx-operator-fails/39121/5 "2024-12-13T23:51:54Z")

</div>

Thank you for your research.

Error source.  
Changing hardcoded no\_log does not apply lo\_nog:false

> <https://github.com/ansible/awx-operator/blob/0.21.0/roles/installer/tasks/resources_configuration.yml#L30>

resources\_configuration.yml:30

```auto
- name: Apply Resources
k8s:
apply: yes
definition: "{{ lookup('template', item + '.yaml.j2') }}"
wait: yes
register: tower_resources_result
loop:
- 'config'
- 'app_credentials'
- 'service_account'
- 'persistent'
- 'service'
- 'ingress'
no_log: true

```

I really want to use AWX version 21.0.0.  
Is it possible to install AWX 21.0.0 using the latest AWXoperator?
