Project

General

Custom queries

Profile

Actions

Bug #16134

closed

Registering system with shotname hostname results in duplicate host entries

Added by Justin Sherrill over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Category:
Upgrades
Target version:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1362592
Description of problem:

After upgrading to satellite 6.2, all content hosts may be duplicated one with the shortname and one with the long name:

foo
foo.example.com

The reason for this is that the hosts have their hostnames configured such that the hostname command reports the shortname, while the 'hostname -f' command reports the fqdn. The problem does not occur if 'hostname' reports the fqdn.

Version-Release number of selected component (if applicable):
6.2.1

How reproducible:
Always

Steps to Reproduce:
1. Install 6.1
2. Register a host with sub-man and puppet, such that the host reports its shortname via the 'hostname' command
3. Upgrade to 6.2

Actual results:
Duplicated hosts

Expected results:
Only one host

Additional info:

'subscription-manager facts' seems to not report the fqdn at all if the host is configured this way.


Related issues 1 (0 open1 closed)

Related to Katello - Bug #20642: network.hostname-override defaults to "localhost" if no fqdn setClosedIvan Necas08/18/2017Actions
Actions #2

Updated by Ohad Levy over 8 years ago

is this a dup of #16270 ?

Actions #5

Updated by Justin Sherrill over 8 years ago

Ohad, This is not a dupe. This issue handles future registration whereas #16270 is meant to handle unifying hosts that were duplicated during the upgrade process. Renaming the title to make it more clear

Actions #6

Updated by Justin Sherrill over 8 years ago

Temporary workaround for new registrations:

run the following on a client prior to registration:

if [ -d /etc/rhsm/facts/ ]; then
  echo "{\"network.hostname\":\"`hostname -f`\"}" > /etc/rhsm/facts/katello.facts
fi

Actions #12

Updated by Justin Sherrill over 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF