Closed bogdanmuresan closed 6 months ago
Can confirm we are seeing this same lookup error with the invalid "is_aap" field. We are running Ansible Automation Platform 2.4 with Controller 4.4.5.
We dropped the Execution Environment back to 1.0.0.-464 which runs Ansible Core 2.15.5 as pointed out by @bogdanmuresan already and then we were able to run the filetree_create commands etc as normal
we will have to look into this more, we cannot use FQCN in this case because some users use awx.awx and others use ansible.controller
I confirm i see this as well running AWX 23.2 to 23.8. I can not run the filetree_create role on any ansible core newer than 2.15.6. I just target an older EE "awx-ee:23.4.0" until this is resolved.
I found that using a debug task to perform a useless lookup before the filetree_create role can temporary suppress the problem using current EE
- name: TODO - work around
ansible.builtin.debug:
msg: "{{ lookup('ansible.controller.controller_api', 'ping',
host=controller_hostname, oauth_token=controller_oauthtoken, verify_ssl=controller_validate_certs) }}"
This issue comes from this change from ansible 2.15.7: https://github.com/ansible/ansible/issues/82708.
It seems it is solved for 2.16 https://github.com/ansible/ansible/pull/82759/files
The fix was backported to 2.14 and 2.15. I think we can close this issue because it is a bug in Ansible Core. It was solved and it will be working property again in next releases. Meanwhile, I suggest to use ansible 2.15.6 while it is possible.
https://github.com/ansible/ansible/pull/82791 https://github.com/ansible/ansible/pull/82790
Summary
With latest AAP installation (Ansible Automation Platform 2.4.3 - controller 4.4.8) we get following error: We could also replicate it by updating the execution env image, to one that has ansible [core 2.15.8] It works on ones with ansible [core 2.15.5]
pointing the issue to the code here: https://github.com/redhat-cop/controller_configuration/blob/2.5.2/roles/object_diff/tasks/main.yml#L55
After doing some debugging, I could only make it work by replacing the "controller_api_plugin" variable in the lookup with the actual value - 'awx.awx.controller_api'.
next failure is
same unmarshallable error, this time with query.
Issue Type
Ansible, Collection, Controller details
OS / ENVIRONMENT
AAP
Desired Behavior
Actual Behavior
Please give some details of what is actually happening. Include a minimum complete verifiable example with:
STEPS TO REPRODUCE