-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: use tox-lsr 3.3.0 which uses ansible-test 2.17 #205
Conversation
Upgrade ci tests to use tox-lsr 3.3.0 tox-lsr 3.3.0 uses ansible-test 2.17 Create the ansible-test ignore file for 2.17 Signed-off-by: Rich Megginson <[email protected]>
[citest] |
When running Ansible 2.17 locally, I ran into several issues. I'd like to see if the issues exist in CI as well. RHEL 8 with Ansible 2.17 fails when trying to install packages:
According to ansible/ansible#82068 (comment) and ansible/ansible#82068 (comment), Ansible 2.17+ is not supported on RHEL 8. RHEL 9 with Ansible 2.17 fails when configuring the firewall:
This looks like an issue with the firewall role. The root cause seems to be changes to
Ansible 2.17 no longer has this mapping. That causes Ansible to use Python 3.10+ (3.9 is no longer supported with Ansible 2.17, so Python 3.10+ must be installed to run it). Then, it is unable to import Python backend module for firewall, as those modules seem to be shipped for Python 3.9 (as that's the RHEL 9 base Python). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Workflow and ignore files LGTM
ok - we'll need to skip el8 managed nodes when testing with ansible 2.17 - I'm assuming ansible 2.17 does not support python2 either, which means we'll also need to skip el7 too
How are you running ansible? I see the host is |
It's a RHEL 9.4 machine with Python 3.11 installed from AppStream. Ansible is installed in a Python virtual environment created with Python 3.11. (OS default Python is 3.9 and the latest it can install is ansible-core 2.15). To run a playbook, I activate the virtual environment and run
|
I believe you are running into this: https://access.redhat.com/solutions/6726561 - but if you are using |
Upgrade ci tests to use tox-lsr 3.3.0
tox-lsr 3.3.0 uses ansible-test 2.17
Create the ansible-test ignore file for 2.17
Signed-off-by: Rich Megginson [email protected]