Project

General

Profile

Actions

Bug #20642

closed

network.hostname-override defaults to "localhost" if no fqdn set

Added by Ivan Necas over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Client/Agent
Target version:
Fixed in Releases:
Found in Releases:

Description

When you install the generated katello-ca-consumer rpm from a satellite server, it sets the network.hostname-override to result of the "hostname -f" command.

If no fqdn or domain name is actually set on the system, then that command just returns "localhost".

When the system is actually registered to satellite the host will be called localhost instead of the actual hostname (or short hostname if one is set). I actually have a set hostname on the system which could be used instead if not for the override fact being set:

[root@centos7 ~]# jq . /var/lib/rhsm/facts/facts.json | grep hostname
"network.hostname": "centos7.localdomain",
"network.hostname-override": "localhost",

Also, if you have 2 different systems that no fqdn set and you register them both to the same satellite, than only a single host is created in satellite called "localhost" and one registration just overwrites the other one.

Would it be possible to default to "hostname" if "hostname -f" returns localhost?

Should hosts created in satellite be overwriting one another if they only share the value of "localhost" for their fqdn?


Related issues 2 (0 open2 closed)

Related to Katello - Bug #16134: Registering system with shotname hostname results in duplicate host entriesClosedJustin Sherrill08/16/2016Actions
Related to Katello - Bug #20816: Don't consider localhost as valid host name when parsing rhsm factsClosedJustin Sherrill08/31/2017Actions
Actions

Also available in: Atom PDF