Bug 1595911
Summary: | [RFE] Have `adcli join` work without FQDN in `hostname` output | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Josip Vilicic <jvilicic> |
Component: | adcli | Assignee: | Sumit Bose <sbose> |
Status: | CLOSED ERRATA | QA Contact: | ipa-qe <ipa-qe> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.5 | CC: | cpelland, cww, jason.nagin, mike, ondrej.valousek, pcech, pkis, troels |
Target Milestone: | rc | Keywords: | FutureFeature |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | adcli-0.8.1-8.el7 | Doc Type: | Enhancement |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-08-06 13:11:03 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: | |||
Bug Blocks: | 1594286, 1647919 |
Description
Josip Vilicic
2018-06-27 18:09:15 UTC
In the RFE filed for RHEL 6: "Bug 1592974 - [RFE] If adcli requires FQDN in `hostname` output, would it be possible to have it use `hostname -f` instead?" https://bugzilla.redhat.com/show_bug.cgi?id=1592974 Sumit mentioned: -------------------------------------------- First, given that RHEL6 is in Maintenance Phase 2, most probable there will be no change to adcli in RHEL6 anymore, see https://access.redhat.com/support/policy/updates/errata for details. As the adcli man page says adcli uses gethostname() to get the hostname not the hostname command. gethostname() uses the hostname data from the kernel. adcli does this to have a reliable and unique source of the name. The plain hostname command uses the same call. 'hostname -f' tries to canonicalize the name with the help of a reverse DNS lookup. This might work in some environments but fail in others. Often AD DNS servers do not have the table needed for reverse lookups properly filled. Additionally you might run into issue if multiple network interfaces are used. That's why adcli does not use this as a fallback. If 'hostname -f' is reliable working in the given environment and given that the chances for a change in RHEL6 are minimal I would suggest to join with: adcli join --host-fqdn=$(hostname -f) --domin=... bye, Sumit -------------------------------------------- We communicated the above to the customer and asked if they would still like an RFE for RHEL 7, to which they responded: -------------------------------------------- Since RHEL 6 is on Maintenance Phase 2, I can understand the RFE being skipped. DNS servers are not the only location to get the fqdn. You can also check the hosts file. It would also be possible to concatenate the short name with the domain that is being joined. Setting ad_hostname has been sufficient for us, but evident by the bug reports you have found, we are not the only ones that have come across this problem. Looking up the fqdn in /etc/hosts or concatenating the shortname with the domain, would at least make the program more resilient to minor issues. Having an extremely fragile program is just bad coding. -------------------------------------------- So we have filed this RFE, with the focus being robustness in adcli's processing of the hostname. When is this making it to RHEL 7 general release? This is *not* a RFE. This is a bug. https://gitlab.freedesktop.org/realmd/adcli/issues/1 https://bugs.freedesktop.org/show_bug.cgi?id=86107 The current adcli package in RHEL 7 changelog notes a fix for this, but it does NOT fix it. * Wed Jan 16 2019 Sumit Bose <sbose> - 0.8.1-6.1 - join failed if hostname is not FQDN [#1666775] The Fedora package, fully patched (this patch), DOES fix this. (In reply to Michael Cronenworth from comment #9) > When is this making it to RHEL 7 general release? adcli-0.8.1-9 should fix this and is available in the current RHEL-7.7 beta version https://www.redhat.com/en/blog/red-hat-enterprise-linux-77-beta-now-available HTH bye, Sumit > > This is *not* a RFE. This is a bug. > > https://gitlab.freedesktop.org/realmd/adcli/issues/1 > https://bugs.freedesktop.org/show_bug.cgi?id=86107 > > The current adcli package in RHEL 7 changelog notes a fix for this, but it > does NOT fix it. > > * Wed Jan 16 2019 Sumit Bose <sbose> - 0.8.1-6.1 > - join failed if hostname is not FQDN [#1666775] > > The Fedora package, fully patched (this patch), DOES fix this. 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/RHEA-2019:2256 |