Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
Package python3-netaddr is a dependency of ansible-core. Nevertheless ansible does not see that package:
# rpm -q python3-netaddr
python3-netaddr-0.7.19-8.el8.noarch
# ansible-playbook -i ansible-inventory.yml test-east-west.yml
PLAY [Ensure that the role runs with default parameters] ***********************
TASK [Gathering Facts] *********************************************************
ok: [west]
ok: [east]
TASK [linux-system-roles.vpn : set platform/version specific variables] ********
included: /usr/share/ansible/roles/rhel-system-roles.vpn/tasks/set_vars.yml for west, east
TASK [linux-system-roles.vpn : Set platform/version specific variables] ********
skipping: [west] => (item=RedHat.yml)
skipping: [west] => (item=RedHat.yml)
ok: [west] => (item=RedHat_8.yml)
skipping: [west] => (item=RedHat_8.6.yml)
skipping: [east] => (item=RedHat.yml)
skipping: [east] => (item=RedHat.yml)
ok: [east] => (item=RedHat_8.yml)
skipping: [east] => (item=RedHat_8.6.yml)
TASK [linux-system-roles.vpn : Ensure required packages are installed] *********
ok: [east]
ok: [west]
TASK [linux-system-roles.vpn : Enforce default auth method as needed] **********
ok: [west -> localhost]
TASK [linux-system-roles.vpn : Make sure that the hosts list is not empty] *****
skipping: [west]
TASK [linux-system-roles.vpn : Ensure cert_names are populated when auth_method is cert] ***
skipping: [west]
TASK [linux-system-roles.vpn : generate psks] **********************************
ok: [west -> localhost]
TASK [linux-system-roles.vpn : set psks for hosts] *****************************
ok: [west]
ok: [east]
TASK [linux-system-roles.vpn : create ipsec.conf files] ************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleFilterError: The ipaddr filter requires python's netaddr be installed on the ansible controller
failed: [west] (item=east) => {"ansible_loop_var": "item", "changed": false, "item": "east", "msg": "AnsibleFilterError: The ipaddr filter requires python's netaddr be installed on the ansible controller"}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleFilterError: The ipaddr filter requires python's netaddr be installed on the ansible controller
failed: [east] (item=west) => {"ansible_loop_var": "item", "changed": false, "item": "west", "msg": "AnsibleFilterError: The ipaddr filter requires python's netaddr be installed on the ansible controller"}
PLAY RECAP *********************************************************************
east : ok=5 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
west : ok=7 changed=0 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0
Version-Release number of selected component (if applicable):
ansible-core-2.12.1-1.el8.x86_64
python3-netaddr-0.7.19-8.el8.noarch
How reproducible:
100%
Steps to Reproduce:
1. Use a role that uses ipaddr filter (eg. vpn role)
Actual results:
See above.
Expected results:
No issues.
Additional info:
On RHEL-8.5 the same scenario worked fine with ansible-2.9.27-1.el8.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (rhel-system-roles bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2022:1896
Description of problem: Package python3-netaddr is a dependency of ansible-core. Nevertheless ansible does not see that package: # rpm -q python3-netaddr python3-netaddr-0.7.19-8.el8.noarch # ansible-playbook -i ansible-inventory.yml test-east-west.yml PLAY [Ensure that the role runs with default parameters] *********************** TASK [Gathering Facts] ********************************************************* ok: [west] ok: [east] TASK [linux-system-roles.vpn : set platform/version specific variables] ******** included: /usr/share/ansible/roles/rhel-system-roles.vpn/tasks/set_vars.yml for west, east TASK [linux-system-roles.vpn : Set platform/version specific variables] ******** skipping: [west] => (item=RedHat.yml) skipping: [west] => (item=RedHat.yml) ok: [west] => (item=RedHat_8.yml) skipping: [west] => (item=RedHat_8.6.yml) skipping: [east] => (item=RedHat.yml) skipping: [east] => (item=RedHat.yml) ok: [east] => (item=RedHat_8.yml) skipping: [east] => (item=RedHat_8.6.yml) TASK [linux-system-roles.vpn : Ensure required packages are installed] ********* ok: [east] ok: [west] TASK [linux-system-roles.vpn : Enforce default auth method as needed] ********** ok: [west -> localhost] TASK [linux-system-roles.vpn : Make sure that the hosts list is not empty] ***** skipping: [west] TASK [linux-system-roles.vpn : Ensure cert_names are populated when auth_method is cert] *** skipping: [west] TASK [linux-system-roles.vpn : generate psks] ********************************** ok: [west -> localhost] TASK [linux-system-roles.vpn : set psks for hosts] ***************************** ok: [west] ok: [east] TASK [linux-system-roles.vpn : create ipsec.conf files] ************************ An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleFilterError: The ipaddr filter requires python's netaddr be installed on the ansible controller failed: [west] (item=east) => {"ansible_loop_var": "item", "changed": false, "item": "east", "msg": "AnsibleFilterError: The ipaddr filter requires python's netaddr be installed on the ansible controller"} An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleFilterError: The ipaddr filter requires python's netaddr be installed on the ansible controller failed: [east] (item=west) => {"ansible_loop_var": "item", "changed": false, "item": "west", "msg": "AnsibleFilterError: The ipaddr filter requires python's netaddr be installed on the ansible controller"} PLAY RECAP ********************************************************************* east : ok=5 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 west : ok=7 changed=0 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0 Version-Release number of selected component (if applicable): ansible-core-2.12.1-1.el8.x86_64 python3-netaddr-0.7.19-8.el8.noarch How reproducible: 100% Steps to Reproduce: 1. Use a role that uses ipaddr filter (eg. vpn role) Actual results: See above. Expected results: No issues. Additional info: On RHEL-8.5 the same scenario worked fine with ansible-2.9.27-1.el8.