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.

Bug 2110539

Summary: [ansible-freeipa] ipadnsconfig requires a fix for boolean value changes.
Product: Red Hat Enterprise Linux 8 Reporter: Varun Mylaraiah <mvarun>
Component: ansible-freeipaAssignee: Thomas Woerner <twoerner>
Status: CLOSED ERRATA QA Contact: Varun Mylaraiah <mvarun>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.7CC: ipa-qe, twoerner
Target Milestone: rcKeywords: Regression, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ansible-freeipa-1.8.2-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2110538 Environment:
Last Closed: 2022-11-08 09:39:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2110538    
Bug Blocks:    

Description Varun Mylaraiah 2022-07-25 15:00:34 UTC
+++ This bug was initially created as a clone of Bug #2110538 +++

Description of problem:
Due to boolean value changes in the latest FreeIPA, ipadnsconfig requires a fix.

Version-Release number of selected component (if applicable):
ansible-freeipa-1.8.1-1

How reproducible:


Steps to Reproduce:
Failed	ansible_freeipa_tests/upstream/test_upstream.py::TestUpstreamDNS::test_dnsconfig
*
*
*
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 PLAYBOOK: test_dnsconfig.yml ***************************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 1 plays in /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 PLAY [Test dnsconfig] **********************************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 TASK [Gathering Facts] *********************************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:2
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 ok: [master.ipadomain.test]
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 META: ran handlers
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 TASK [Ensure forwarders are absent.] *******************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:9
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 ok: [master.ipadomain.test] => {"changed": false}
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 TASK [Set config to invalid IPv4.] *********************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:23
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 ok: [master.ipadomain.test] => {"changed": false, "failed_when_result": false, "msg": "Invalid IP for DNS forwarder: 1.2.3.500"}
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 TASK [Set config to invalid IP.] ***********************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:32
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 ok: [master.ipadomain.test] => {"changed": false, "failed_when_result": false, "msg": "Invalid IP for DNS forwarder: 1.in.va.lid"}
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 TASK [Set config to invalid IPv6.] *********************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:41
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 ok: [master.ipadomain.test] => {"changed": false, "failed_when_result": false, "msg": "Invalid IP for DNS forwarder: fd00::invalid"}
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 TASK [Set dnsconfig.] **********************************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:50
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 changed: [master.ipadomain.test] => {"changed": true, "failed_when_result": false}
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 TASK [Set dnsconfig, with the same values.] ************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:64
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 fatal: [master.ipadomain.test]: FAILED! => {"changed": false, "failed_when_result": true, "msg": "dnsconfig_mod: no modifications to be performed"}
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 PLAY RECAP *********************************************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd6:transport.py:563 master.ipadomain.test      : ok=6    changed=1    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

Comment 1 Thomas Woerner 2022-07-25 15:05:01 UTC
Here is the upstream PR: https://github.com/freeipa/ansible-freeipa/pull/863

Comment 5 Varun Mylaraiah 2022-08-05 11:06:13 UTC
Verified

ansible-2.9.27-1.el8ae.noarch
ansible-freeipa-1.8.2-1.el8.noarch
ipa-server-4.9.10-5.module+el8

Passed	ansible_freeipa_tests/upstream/test_upstream.py::TestUpstreamDNS::test_dnsconfig


DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 PLAYBOOK: test_dnsconfig.yml ***************************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 1 plays in /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 PLAY [Test dnsconfig] **********************************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 TASK [Gathering Facts] *********************************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:2
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 ok: [master.ipadomain.test]
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 META: ran handlers
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 TASK [Ensure forwarders are absent.] *******************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:9
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 ok: [master.ipadomain.test] => {"changed": false}
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 TASK [Set forward with invalid IPv4.] ******************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:20
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 ok: [master.ipadomain.test] => {"changed": false, "failed_when_result": false, "msg": "Invalid IP for DNS forwarder: 1.2.3.500"}
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 TASK [Set config to invalid IP.] ***********************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:29
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 ok: [master.ipadomain.test] => {"changed": false, "failed_when_result": false, "msg": "Invalid IP for DNS forwarder: 1.in.va.lid"}
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 TASK [Set config to invalid IPv6.] *********************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:38
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 ok: [master.ipadomain.test] => {"changed": false, "failed_when_result": false, "msg": "Invalid IP for DNS forwarder: fd00::invalid"}
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 TASK [Set dnsconfig.] **********************************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:47
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 changed: [master.ipadomain.test] => {"changed": true, "failed_when_result": false}
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 TASK [Set dnsconfig, with the same values.] ************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:59
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 ok: [master.ipadomain.test] => {"changed": false, "failed_when_result": false}
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 TASK [Ensure forwarder 8.8.8.8 is absent.] *************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:71
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 changed: [master.ipadomain.test] => {"changed": true, "failed_when_result": false}
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 TASK [Ensure forwarder 8.8.8.8 is absent, again.] ******************************
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:82
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 ok: [master.ipadomain.test] => {"changed": false, "failed_when_result": false}
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 TASK [Check if forwarder 8.8.4.4 is present.] **********************************
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:93
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 ok: [master.ipadomain.test] => {"changed": false, "failed_when_result": false}
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 TASK [Ensure forwarder 8.8.8.8 is present.] ************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:103
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 changed: [master.ipadomain.test] => {"changed": true, "failed_when_result": false}
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 TASK [Check forwarder 8.8.4.4 is still present.] *******************************
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:112
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 changed: [master.ipadomain.test] => {"changed": true, "failed_when_result": false}
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 TASK [Disable global forwarders.] **********************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:122
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 changed: [master.ipadomain.test] => {"changed": true, "failed_when_result": false}
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 TASK [Disable global forwarders, again.] ***************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:130
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 ok: [master.ipadomain.test] => {"changed": false, "failed_when_result": false}
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 TASK [Re-enable global forwarders.] ********************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:138
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 changed: [master.ipadomain.test] => {"changed": true, "failed_when_result": false}
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 TASK [Re-enable global forwarders, again.] *************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:146
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 ok: [master.ipadomain.test] => {"changed": false, "failed_when_result": false}
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 TASK [Disable PTR record synchronization.] *************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:154
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 changed: [master.ipadomain.test] => {"changed": true, "failed_when_result": false}
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 TASK [Disable PTR record synchronization, again.] ******************************
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:162
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 ok: [master.ipadomain.test] => {"changed": false, "failed_when_result": false}
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 TASK [Re-enable PTR record synchronization.] ***********************************
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:170
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 changed: [master.ipadomain.test] => {"changed": true, "failed_when_result": false}
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 TASK [Re-enable PTR record synchronization, again.] ****************************
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:178
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 ok: [master.ipadomain.test] => {"changed": false, "failed_when_result": false}
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 TASK [Ensure forwarders are absent.] *******************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 task path: /usr/share/ansible-freeipa/tests/dnsconfig/test_dnsconfig.yml:186
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 changed: [master.ipadomain.test] => {"changed": true}
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 META: ran handlers
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 META: ran handlers
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 PLAY RECAP *********************************************************************
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 master.ipadomain.test      : ok=21   changed=9    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:563 
DEBUG    paramiko.transport:channel.py:1212 [chan 2] EOF received (2)
DEBUG    paramiko.transport:channel.py:1212 [chan 2] EOF sent (2)
DEBUG    pytest_multihost.host.Host.ansible.cmd2:transport.py:217 Exit code: 0



Based on the test result, marking the bug Verified

Comment 7 errata-xmlrpc 2022-11-08 09:39:16 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 (ansible-freeipa 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/RHEA-2022:7556