ansible / awx-ee

An Ansible execution environment for AWX project
https://quay.io/ansible/awx-ee
Other
132 stars 158 forks source link

ModuleNotFoundError: No module named 'packaging' with latest docker image #159

Closed aniketpawar1305 closed 1 year ago

aniketpawar1305 commented 1 year ago

Please confirm the following

Bug Summary

Hello,

We are using latest docker image for our AWX deployment. But, facing one issue while running our playbooks which we have developed based on azure modules. Here we are using azure modules like: azure_rm_manageddisk, azure_rm_networkinterface etc. While running the ansible playbooks on AWX it is throwing "ModuleNotFoundError" error for 'packaging'. On the other hand playbooks are working as expected with Ansible. Please find the below error screenshot: image

AWX Environment Details:

ansible-playbook [core 2.12.5.post0] 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 ansible collection location = /runner/requirements_collections:/home/runner/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible-playbook python version = 3.8.13 (default, Jun 24 2022, 15:27:57) [GCC 8.5.0 20210514 (Red Hat 8.5.0-13)] jinja version = 2.11.3 libyaml = True

Sample Playbooks:

image

Please do let me know if you need any further details.

AWX version

19.3.0

Select the relevant components

Installation method

kubernetes

Modifications

no

Ansible version

2.12.5

Operating system

No response

Web browser

Chrome

Steps to reproduce

Step1: Create credentials with Credential Type: Source Control

Step2: Create a project with Source Control Type: Git and provide the Source Control URL of your playbook repository. Also, provide Source Control Credential which we have created in Step-1.

Step3: Create the Template: Provide Inventory, Project, Select the playbook from repository ( Sample playbook you can use which I have provided in bug summery), Provide the Variables in below format: image

Step4: Now Launch the template

Expected results

Playbook should run without any error and perform the delete operation for provided disks

Actual results

Getting "ModuleNotFoundError" error for 'packaging' module. Please find the below error screenshot: image

Additional information

No response

akus062381 commented 1 year ago

Hi @aniketpawar1305, are you still encountering this issue with our latest docker image?

relrod commented 1 year ago

Moving this to ansible/awx-ee

akus062381 commented 1 year ago

Hi @aniketpawar1305, Thank you very much for for this issue. It means a lot to us that you have taken time to contribute by opening this report.

On this issue, there were comments added but it has been some time since then without response. At this time we are closing this issue. If you get time to address the comments we can reopen the issue if you can contact us by using any of the communication methods listed in the page below:

https://github.com/ansible/awx/#get-involved

Thank you once again for this and your interest in AWX!