Bug 1377178 - [RFE] When the systems have the same hostname, only the last one can be kept registered in satellite6.2.
Summary: [RFE] When the systems have the same hostname, only the last one can be kept ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-19 05:57 UTC by qianzhan
Modified: 2021-12-10 14:58 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-04 13:09:01 UTC
Target Upstream Version:


Attachments (Terms of Use)
task-export-1474263771.tar.gz (123.17 KB, application/x-gzip)
2016-09-19 05:57 UTC, qianzhan
no flags Details
register_client1_successfully.png (129.25 KB, image/png)
2016-09-19 05:58 UTC, qianzhan
no flags Details
register_client2_successfully_with_client1_missing_in_satellite_UI.png (130.26 KB, image/png)
2016-09-19 05:58 UTC, qianzhan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-6902 0 None None None 2021-12-10 14:58:22 UTC

Description qianzhan 2016-09-19 05:57:07 UTC
Description of problem:
When the systems have the same hostname, only the last one can be kept registered in satellite6.2.

Version-Release number of selected component (if applicable):
Satellite-6.2.0-RHEL-7-20160907.6

How reproducible:
always

Steps to Reproduce:
1. Install 2 systems: RHEL-7.3-Snapshot-4.0-server-x86_64.
2. Make sure the 2 systems have the same hostname 'test'.
3. Register system 1 to Satellite-6.2.0-RHEL-7-20160907.6, and the system is recorded in satellite UI. (Please see attachment 'register_client1_successfully.png')
4. Register system 2 to Satellite-6.2.0-RHEL-7-20160907.6, and check the 2 records in satellite UI: the system 2 is recorded while the record of system 1 is missing. (Please see attachment 'register_client2_successfully_with_client1_missing_in_satellite_UI.png')

5. Check the identity of system 1 in CLI:
[root@test ~]# subscription-manager identity
Unit c1666704-99a2-4fc1-b9e7-70b87810aeb3 has been deleted

Actual results:
As step 4 and step 5..

Expected results:
All the systems can be registered with the same hostname. And all the systems should be recorded in satellite UI.

Additional info:
foreman-debug log is the attachment 'task-export-1474263771.tar.gz'

Comment 1 qianzhan 2016-09-19 05:57:28 UTC
Created attachment 1202309 [details]
task-export-1474263771.tar.gz

Comment 2 qianzhan 2016-09-19 05:58:14 UTC
Created attachment 1202310 [details]
register_client1_successfully.png

Comment 3 qianzhan 2016-09-19 05:58:43 UTC
Created attachment 1202311 [details]
register_client2_successfully_with_client1_missing_in_satellite_UI.png

Comment 4 Brad Buckingham 2016-09-20 18:06:23 UTC
Justin, this is expected behavior, correct?  I.e. hostnames of registered systems should be unique.

Comment 5 Justin Sherrill 2016-09-20 20:38:14 UTC
Yes, starting in 6.2 this is expected behavior.  If you'd like to see this behavior return please write up some good use cases.  Generally having multiple hosts with the same fqdn is not a corrects situation.

Comment 6 qianzhan 2016-09-21 02:53:35 UTC
Hi, Justin

I have not some scenarios need registering systems with the same hostname. Due to curiosity,I tried against stage candlepin. The stage can identify two systems with the same hostname by different consumer IDs. (Please see attachment 'stage_can_identify_systems_with_same_hostname.png')

Does the satellite need to keep in line with stage candlepin?

Comment 7 Justin Sherrill 2016-09-21 13:30:11 UTC
Hi,

Satellite is based upon foreman which adds this restriction (and has always had this restriction, we've just now properly unified with it).  

I don't think there is a need to allow duplicate hostnames with the same name just because stage does.  If there is some user requirement that requires it, it could be considered to be added back as part of foreman.

Comment 12 Bryan Kearney 2018-11-30 15:01:19 UTC
The Satellite Team is attempting to provide an accurate backlog of bugzilla requests which we feel will be resolved in the next few releases. We do not believe this bugzilla will meet that criteria, and have plans to close it out in 1 month. This is not a reflection on the validity of the request, but a reflection of the many priorities for the product. If you have any concerns about this, feel free to contact Rich Jerrido or Bryan Kearney or your account team. If we do not hear from you, we will close this bug out. Thank you.

Comment 13 Bryan Kearney 2019-01-04 13:09:01 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this, please do not reopen. Instead, feel free to contact Red Hat Technical Support. Thank you.


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