Bug 2009114

Summary: IDM Web UI creates invalid PTR records
Product: Red Hat Enterprise Linux 8 Reporter: Sunny Wu <suwu>
Component: ipaAssignee: Petr Vobornik <pvoborni>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.6CC: frenaud, mpolovka, ndehadra, pvoborni, rcritten, rjeffman, ssidhaye, sumenon, tscherf
Target Milestone: rcKeywords: Desktop, Triaged
Target Release: 8.6   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ipa-4.9.8-2.module+el8.6.0+13621+937b8cd9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-10 14:08:46 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:

Comment 5 Florence Blanc-Renaud 2021-09-30 07:41:19 UTC
The provided attachment displays the output of ipa dns* command, not the ldapsearch specifically asked for.

ipa dns* commands normalize the output and it's possible that the LDAP entry is missing the trailing dot but the ipa dnszone-show command displays the zone name with the trailing dot. That's why the output of ldapsearch is interesting in order to understand why the PTR record is built without the trailing dot.

Comment 10 Petr Vobornik 2021-10-04 21:08:57 UTC
I have a patch: https://github.com/pvoborni/freeipa/commits/ptr-from-host-master , can create pull request when this is ticket is cloned upstream.

Comment 15 Florence Blanc-Renaud 2021-12-09 13:39:30 UTC
The upstream fix also includes a test: ipatests/test_webui/test_dns.py::test_dns::test_ptr_from_host_creation

Comment 18 Michal Polovka 2022-01-14 13:09:57 UTC
Pre-verified using automation located at ipatests/test_webui/test_dns.py::test_dns::test_ptr_from_host_creation using RHEL8.6 with latest test compose containing ipa-server-dns-4.9.8-2.module+el8.6.0+13621+937b8cd9.noarch

============================= test session starts ==============================
platform linux -- Python 3.6.8, pytest-3.10.1, py-1.11.0, pluggy-1.0.0 -- /usr/libexec/platform-python
cachedir: /home/cloud-user/.pytest_cache
metadata: {'Python': '3.6.8', 'Platform': 'Linux-4.18.0-358.el8.x86_64-x86_64-with-redhat-8.6-Ootpa', 'Packages': {'pytest': '3.10.1', 'py': '1.11.0', 'pluggy': '1.0.0'}, 'Plugins': {'metadata': '1.11.0', 'html': '1.22.1', 'multihost': '3.0', 'sourceorder': '0.5'}}
rootdir: /usr/lib/python3.6/site-packages/ipatests, inifile:
plugins: metadata-1.11.0, html-1.22.1, multihost-3.0, sourceorder-0.5
collecting ... collected 5 items

test_webui/test_dns.py::test_dns::test_zone_record_crud PASSED           [ 20%]
test_webui/test_dns.py::test_dns::test_forward_zone PASSED               [ 40%]
test_webui/test_dns.py::test_dns::test_last_entry_deletion PASSED        [ 60%]
test_webui/test_dns.py::test_dns::test_config_crud PASSED                [ 80%]
test_webui/test_dns.py::test_dns::test_ptr_from_host_creation PASSED     [100%]


Tests passed, therefore marking as pre-verified - tested.

Comment 22 Michal Polovka 2022-01-17 10:14:52 UTC
Verified using RHEL8.6 machine with ipa-server-4.9.8-2.module+el8.6.0+13621+937b8cd9.x86_64.


============================= test session starts ==============================
platform linux -- Python 3.6.8, pytest-3.10.1, py-1.11.0, pluggy-1.0.0 -- /usr/libexec/platform-python
cachedir: /home/cloud-user/.pytest_cache
metadata: {'Python': '3.6.8', 'Platform': 'Linux-4.18.0-359.el8.x86_64-x86_64-with-redhat-8.6-Ootpa', 'Packages': {'pytest': '3.10.1', 'py': '1.11.0', 'pluggy': '1.0.0'}, 'Plugins': {'metadata': '1.11.0', 'html': '1.22.1', 'multihost': '3.0', 'sourceorder': '0.5'}}
rootdir: /usr/lib/python3.6/site-packages/ipatests, inifile:
plugins: metadata-1.11.0, html-1.22.1, multihost-3.0, sourceorder-0.5
collecting ... collected 5 items

test_webui/test_dns.py::test_dns::test_zone_record_crud PASSED           [ 20%]
test_webui/test_dns.py::test_dns::test_forward_zone PASSED               [ 40%]
test_webui/test_dns.py::test_dns::test_last_entry_deletion PASSED        [ 60%]
test_webui/test_dns.py::test_dns::test_config_crud PASSED                [ 80%]
test_webui/test_dns.py::test_dns::test_ptr_from_host_creation PASSED     [100%]

---------------- generated xml file: /home/cloud-user/junit.xml ----------------
==================== 5 passed, 0 warnings in 239.46 seconds ====================


Therefore marking as verified. Automation exists.

Comment 26 errata-xmlrpc 2022-05-10 14:08:46 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 (idm:client and idm:DL1 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:1884

Comment 27 Red Hat Bugzilla 2023-09-15 01:36:19 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 365 days