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.
Bug 2048057 - incorrectly missing netaddr on a controller
Summary: incorrectly missing netaddr on a controller
Keywords:
Status: CLOSED ERRATA
Alias: None
Deadline: 2022-02-14
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: rhel-system-roles
Version: 8.6
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: rc
: 8.6
Assignee: Rich Megginson
QA Contact: David Jež
URL:
Whiteboard: role:vpn
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-29 09:04 UTC by Ondrej Moriš
Modified: 2022-05-10 14:39 UTC (History)
4 users (show)

Fixed In Version: rhel-system-roles-1.12.0-1.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-10 14:12:50 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-110285 0 None None None 2022-01-29 09:09:23 UTC
Red Hat Product Errata RHBA-2022:1896 0 None None None 2022-05-10 14:13:03 UTC

Description Ondrej Moriš 2022-01-29 09:04:28 UTC
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.

Comment 10 errata-xmlrpc 2022-05-10 14:12:50 UTC
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


Note You need to log in before you can comment on or make changes to this bug.