AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
14.07k
stars
3.42k
forks
source link
Find and replace the use of distutils awx_collection #13278
[X] I understand that AWX is open source software provided for free and that I might not receive a timely response.
Bug Summary
The distutils package is being deprecated from the standard library in python. We get a warning message from the import sanity test outlining the timeline as well as where we can look for replacements.
ERROR: plugins/modules/workflow_launch.py:93:0: traceback: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives (at plugins/module_utils/controller_api.py:14:0)
We have a few options to move to but wanted to open an issue to start the discussion. These errors will be suppressed going forward for the time being by the ignore file entries added in #13238 once that is merged.
AWX version
awx: 21.5.1.dev437+g99e0e06cc3
Select the relevant components
[ ] UI
[ ] API
[ ] Docs
[X] Collection
[ ] CLI
[ ] Other
Installation method
N/A
Modifications
no
Ansible version
ansible [core 2.14.0]
Operating system
Fedora 36
Web browser
No response
Steps to reproduce
run the ansible-test sanity suite over top of the collection via make test_collection_santiy or via being in the ~/.ansible/collection/ansible_collections/awx/awx dir and running ansible-test sanity --docker.
Expected results
Import tests pass successfully without warning.
Actual results
Running sanity test "import" on Python 3.10
ERROR: Found 45 import issue(s) on python 3.10 which need to be resolved:
ERROR: plugins/inventory/controller.py:76:0: traceback: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives (at plugins/module_utils/controller_api.py:14:0)
Additional information
This error will show up on all relevant python version import tests starting at version 3.9.
Please confirm the following
Bug Summary
The distutils package is being deprecated from the standard library in python. We get a warning message from the import sanity test outlining the timeline as well as where we can look for replacements.
We have a few options to move to but wanted to open an issue to start the discussion. These errors will be suppressed going forward for the time being by the ignore file entries added in #13238 once that is merged.
AWX version
awx: 21.5.1.dev437+g99e0e06cc3
Select the relevant components
Installation method
N/A
Modifications
no
Ansible version
ansible [core 2.14.0]
Operating system
Fedora 36
Web browser
No response
Steps to reproduce
run the ansible-test sanity suite over top of the collection via
make test_collection_santiy
or via being in the~/.ansible/collection/ansible_collections/awx/awx
dir and runningansible-test sanity --docker
.Expected results
Import tests pass successfully without warning.
Actual results
Additional information
This error will show up on all relevant python version import tests starting at version 3.9.