Hide Forgot
Description of problem: IPA needs a check to ensure host-names with 'underscore' are not allowed as it affects the host-* commands like trying to delete a host entry, etc. Replica hostname: ============== [root@x86_64e(107) ~] hostname x86_64e.yzhang.redhat.com [root@x86_64e(107) ~] ============== On master, attempt to delete the replica host entry: ============== [root@x86_64c(105) ~] ipa host-del x86_64e.yzhang.redhat.com ipa: ERROR: invalid 'hostname': may only include letters, numbers, and - [root@x86_64c(105) ~] ============== Version-Release number of selected component (if applicable): ============== [root@x86_64c(105) ~] rpm -qi ipa-server Name : ipa-server Relocations: (not relocatable) Version : 2.1.3 Vendor: Red Hat, Inc. Release : 9.el6 Build Date: Mon 07 Nov 2011 12:00:54 PM PST Install Date: Tue 08 Nov 2011 01:14:02 PM PST Build Host: x86-001.build.bos.redhat.com Group : System Environment/Base Source RPM: ipa-2.1.3-9.el6.src.rpm ==============
Upstream ticket: https://fedorahosted.org/freeipa/ticket/2089
FYI: this is already automated ... rlPhaseStartTest "ipa-host-cli-53: Negative - add host with _" command="ipa host-add host_underscore.$RELM --force" expmsg="ipa: ERROR: invalid 'hostname': may only include letters, numbers, and -" rlRun "verifyErrorMsg \"$command\" \"$expmsg\"" 0 "Verify expected error message." rlPhaseEnd It appears that it is not checked when installing a replica with "_" in the name.
Fixed upstream. master: 61af2c9b1efe021fd6fac2c6c62160cde96ea3cb ipa-2-2: ae8876e93c02c39c562bcdaa1396fcccaf1280c0 Host name validation should now be consistent.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: No documentation needed.
Verified using ipa-server-2.2.0-12.el6.x86_64 # ipa-replica-prepare --ip-address 10.16.65.43 ipareplica_2.us.testrelm.com Directory Manager (existing master) password: Invalid hostname 'ipareplica_2.us.testrelm.com', only letters, numbers, and - are allowed. DNS label may not start or end with -
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. http://rhn.redhat.com/errata/RHBA-2012-0819.html