Bug 1438668
| Summary: | DNS forwarder address added during IPA installation shouldn't add IP-Address '0.0.0.0' | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Sudhir Menon <sumenon> |
| Component: | python-netaddr | Assignee: | Petr Vobornik <pvoborni> |
| Status: | CLOSED ERRATA | QA Contact: | ipa-qe <ipa-qe> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.4 | CC: | akasurde, ksiddiqu, myusuf, pvoborni, rcritten, tscherf |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | python-netaddr-0.7.5-9.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-04-10 17:56:43 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: | |||
|
Description
Sudhir Menon
2017-04-04 06:26:46 UTC
This is missing in IPA required netaddr RPM - https://github.com/drkjam/netaddr/blob/rel-0.7.x/netaddr/ip/__init__.py#L1876 With RHEL 7.4, the installed version of python-netaddr is python-netaddr.noarch 0.7.5-7.el7 If this package is updated through pip, the issue does not happen any more: # Install EPEL $ wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm $ yum install ./epel-release-latest-7.noarch.rpm # Install python-pip $ yum install python-pip python-wheel # Upgrade netaddr $ pip install --upgrade netaddr $ pip show netaddr Name: netaddr Version: 0.7.19 # Install ipa-server and try to configure 0.0.0.0 as forwarder $ ipa-server-install [...] Checking DNS domain example.com., please wait ... Do you want to configure DNS forwarders? [yes]: Following DNS servers are configured in /etc/resolv.conf: x.x.x.x, y.y.y.y Do you want to configure these servers as DNS forwarders? [yes]: All DNS servers from /etc/resolv.conf were added. You can enter additional addresses now: Enter an IP address for a DNS forwarder, or press Enter to skip: 0.0.0.0 Error: Invalid IP Address 0.0.0.0: cannot use IANA reserved IP address 0.0.0.0 DNS forwarder 0.0.0.0 not added. Enter an IP address for a DNS forwarder, or press Enter to skip: [...] This is a duplicate of python-netaddr issue 71: https://github.com/drkjam/netaddr/issues/71 and the issue was fixed in netaddr-0.7.16 Per comments 2 and 3, moving to python-netaddr. Fixed upstream rel-0.7.x: https://github.com/drkjam/netaddr/commit/5fc038bd9820b95caa41527d937c1fe5427d8391 https://github.com/drkjam/netaddr/commit/f1b9d14a5320acac603f75684d9b68bd9f0f0a1c https://github.com/drkjam/netaddr/commit/31e2abf0b94b6fc21e04dbcc5527de9fe2e3683a https://github.com/drkjam/netaddr/commit/c682bcb4da55176597b537933c42da0856de2684 https://github.com/drkjam/netaddr/commit/d22715e3b6ce2e1a9a0b0c22250d0e95c10954a4 https://github.com/drkjam/netaddr/commit/77a042eeae7ca0705204c5e4f5c47d167a863006 https://github.com/drkjam/netaddr/commit/abbfe9abedaf491a1cc8e473bc52da29985eb073 https://github.com/drkjam/netaddr/commit/88073beda4f4203a3759d3ffecbc1dc573465575 Upstream ticket: https://pagure.io/freeipa/issue/6894 Fixed upstream master: https://pagure.io/freeipa/c/0784e53f7f8a323acafbbff26a9d1c0276a229b0 Fixed upstream ipa-4-5: https://pagure.io/freeipa/c/ecccd6cb843c44093449cc45a7d94bb14fa65513 version: ipa-server-4.5.4-7.el7.x86_64 python-netaddr-0.7.5-9.el7.noarch Steps: 1. Install IPA-server with integrated DNS 2. On the below steps enter the forwarder IP-address as 0.0.0.0 Do you want to configure these servers as DNS forwarders? [yes]: All DNS servers from /etc/resolv.conf were added. You can enter additional addresses now: Enter an IP address for a DNS forwarder, or press Enter to skip: 0.0.0.0 3. On the below steps enter the forwarder IP-address 255.255.255.255 All DNS servers from /etc/resolv.conf were added. You can enter additional addresses now: Enter an IP address for a DNS forwarder, or press Enter to skip: 255.255.255.255 Actual result: [root@master ~]# ipa-server-install [..] Checking DNS domain testrelm.test., please wait ... Do you want to configure DNS forwarders? [yes]: yes Following DNS servers are configured in /etc/resolv.conf: 10.16.36.29, 10.11.5.19, 10.5.30.160 Do you want to configure these servers as DNS forwarders? [yes]: All DNS servers from /etc/resolv.conf were added. You can enter additional addresses now: Enter an IP address for a DNS forwarder, or press Enter to skip: 0.0.0.0 Error: Invalid IP Address 0.0.0.0: cannot use IANA reserved IP address 0.0.0.0 DNS forwarder 0.0.0.0 not added. Enter an IP address for a DNS forwarder, or press Enter to skip: 255.255.255.255 Error: Invalid IP Address 255.255.255.255: cannot use IANA reserved IP address 255.255.255.255 DNS forwarder 255.255.255.255 not added. Enter an IP address for a DNS forwarder, or press Enter to skip: Checking DNS forwarders, please wait ... [..] Based on above observation, marking bug as verified. 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, 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-2018:0957 |