Bug 1379036 - hostname -f check schould be done later
Summary: hostname -f check schould be done later
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: documentation
Version: 9.0 (Mitaka)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Dan Macpherson
QA Contact: RHOS Documentation Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-24 07:34 UTC by Fred van Zwieten
Modified: 2018-03-19 11:05 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-19 11:05:31 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Fred van Zwieten 2016-09-24 07:34:29 UTC
Description of problem:
wrong sequence of commands and checks in 4.3

Version-Release number of selected component (if applicable):
Director Installation and Usage, par 4.3 Setting the hostname for the system

How reproducible:
Installed RHEL7.2 from ISO and gave it a fqdn in anaconda - network. Then, the command "hostname" works, but "hostname -f" not. After doing the hostnamectl commands in 4.3 "hostname -f" still does not work. Only after adding the fqdn to /etc/hosts as explained in the last bit of 4.3 "hostname -f" works.

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
This is hugely confusing for a first time admin. Suggest to specify the /etc/hosts modification bits first and all the other stuff after that.

Comment 1 Dan Macpherson 2018-03-19 11:05:31 UTC
Scoping old bug.

So the "hostname -f" command in this case is meant to check if the FQDN hostname is set. If it results in an error, that means the full hostname isn't set. So it acts as a test.

The wording has now been clarified: "f either commands do not report the correct hostname or report an error, use hostnamectl to set a hostname:"

https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/12/html-single/director_installation_and_usage/#sect-Setting_the_Hostname_for_the_System

Closing this BZ, but if further changes are required please let us know.


Note You need to log in before you can comment on or make changes to this bug.