Project

General

Profile

Actions

Bug #26640

closed

Registering a host with the same hostname as another host unregisters the original host

Added by Jonathon Turel almost 6 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
High
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Description of problem:
Let us have systems System1, System2.
When we register System1 to the Satellite and then set the same hostname to System2 as System1 has and register System2, System2 gets registered and System1 is removed from Satellite. The System2 content host has the same id as the original System1 content host but it has System2's UUID.

This happens regardless of if we register through login/password or activation key.

Note only locally set hostname is taken into acount. Anyone can set it. This results to the fact that anyone who is able to register is also able to unregister any other host.

How reproducible:
Deterministic

Steps to Reproduce:
1. system1# hostname
system-1-hostname.localdomain
2. system1# subscription-manager register --org Default_Organization --activationkey ak
[...]
The system has been registered with ID: <UUID1>
[...]
3. Open the content host page, note ID (in URL), note UUID
4. system2# hostnameclt set-hostname system-1-hostname.localdomain
5. system2# subscription-manager register --org Default_Organization --activationkey ak
[...]
The system has been registered with ID: <UUID2>
[...]
6. system1# subscription-manager status
Consumer profile "<UUID>" has been deleted from the server. You can use command clean or unregister to remove local profile.
7. In WebUI, refresh the content host page. Note the content host with same ID has UUID=<UUID2>.

Actual results:
System1 got unregistered. Anyone who can register can also unregister any system registered to the Satellite.

Expected results:
Another content host should have been created.

Actions #1

Updated by The Foreman Bot almost 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/8083 added
Actions #2

Updated by James Jeffers almost 6 years ago

  • Subject changed from Registering a host with the same hostname as another host unregisters the original host to Registering a host with the same hostname as another host unregisters the original host
  • Target version set to Katello 3.12.0
  • Triaged changed from No to Yes
Actions #3

Updated by Jonathon Turel almost 6 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by The Foreman Bot over 5 years ago

  • Pull request https://github.com/Katello/katello/pull/8124 added
Actions #5

Updated by Jonathon Turel over 5 years ago

  • Pull request deleted (https://github.com/Katello/katello/pull/8124)
Actions #6

Updated by Clarence Gallant over 4 years ago

Project and all term of the use is filed for the induction for all people. The reforms of the chance and best cv writers uk is authenticated for the turns. Goal is piled for the mode of the true way for the quantum and patterns for the citizens.

Actions

Also available in: Atom PDF