Trouble with control plane EE ansible/awx-ee:0.6.0 in AWX 19.3.0

419 views
Skip to first unread message

rodo...@gmail.com

unread,
Dec 9, 2021, 3:47:50 AM12/9/21
to AWX Project
I have AWX 19.3.0 running. I have a custom EE based on built with ansible-builder (based on "ansible-runner:stable-2.9-latest" not "ansible/awx-ee", config below) which works which is used (successfully) as the EE for job_template execution and inventory source updating. However with "control_plane_ee_image" set to "ansible/awx-ee:0.6.0" the update of a dynamic inventory against Nautobot fails as below (debug level 3) while when set to "ansible/awx-ee:latest" everything seems to work fine.

Are there any additional troubleshooting steps that I can take to see the cause of the Nautobot inventory sync failure?

I think the only significant difference between "develop" and "0.6.0", from "https://github.com/ansible/awx-ee/compare/0.6.0...devel", is the source image of "receptor" which changes from "project-receptor/receptor:1.0.0a2" to "ansible/receptor:devel". The former's last update was 6 months ago and the latter has only a single image with the tag "latest"

I'm wondering what makes sense regarding the control plan EE. I don't like to use images with mutable tags such as "latest". Should I build from scratch a control plane EE image which consumes a receptor image with an immutable tag or be patient and wait for an immutably tagged image of "ansible/awx-ee" which consumes an immutably tagged image of "ansible/receptor" and use "ansible/awx-ee:latest" in the meantime?


```
Stdout
ansible-inventory 2.9.24
  config file = None
  configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.8/site-packages/ansible
  python version = 3.8.8 (default, Aug 25 2021, 16:13:02) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)]
setting up inventory plugins
host_list declined parsing /runner/project/nautobot.yml as it did not pass its verify_file() method
Skipping due to inventory source not existing or not being readable by the current user
auto declined parsing /runner/project/nautobot.yml as it did not pass its verify_file() method
yaml declined parsing /runner/project/nautobot.yml as it did not pass its verify_file() method
Skipping due to inventory source not existing or not being readable by the current user
ini declined parsing /runner/project/nautobot.yml as it did not pass its verify_file() method
toml declined parsing /runner/project/nautobot.yml as it did not pass its verify_file() method
[WARNING]: Unable to parse /runner/project/nautobot.yml as an inventory source
ERROR! No inventory was parsed, please check your configuration and options.
yaml declined parsing /runner/project/nautobot.yml as it did not pass its verify_file() method
Skipping due to inventory source not existing or not being readable by the current user
ini declined parsing /runner/project/nautobot.yml as it did not pass its verify_file() method
Skipping due to inventory source not existing or not being readable by the current user
toml declined parsing /runner/project/nautobot.yml as it did not pass its verify_file() method
```

Nautobot inventory source
nautobot.yml
---
plugin: "networktocode.nautobot.inventory"
validate_certs: false
config_context: true
flatten_custom_fields: true
group_by:
  - tenants
  - platforms
  - device_roles
compose:
  serial_nr: serial
  vendor: manufacturer.slug
device_query_filters:
  - has_primary_ip: true
interfaces: false

collections/requirements.yml
---
collections:
  - name: networktocode.nautobot
    version: 1.0.4


Ansible Builder configuration
execution-environment.yml
---
version: 1
dependencies:
  galaxy: requirements.yml
  python: requirements.txt

additional_build_steps:
  prepend: |
    RUN pip install --upgrade pip setuptools
  append:
    - RUN pip install ansible==2.9.24

build_arg_defaults:
  EE_BASE_IMAGE: 'quay-io.int.repositories.cloud.sap/ansible/ansible-runner:stable-2.9-latest'
  EE_BUILDER_IMAGE: 'quay-io.int.repositories.cloud.sap/ansible/ansible-builder:latest'

requirements.yml
---
collections:
  - name: community.general
    version: 2.2.0

requirements.txt
---
python-memcached
psutil
textfsm
pylint>=2.1.1
yapf>=0.2.4
ansible-core==2.11.4
paramiko
jmespath
scp
ciscoconfparse
ntc_templates
netaddr
genie
pyats
elasticsearch
pynetbox
objectpath
psycopg2-binary
pynautobot==1.0.2
hvac

Reply all
Reply to author
Forward
0 new messages