Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 855152

Summary: Katello deployment allows for duplicate names in the same organization and environment.
Product: Red Hat Satellite Reporter: Eric Sammons <esammons>
Component: Content ManagementAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED NOTABUG QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: lzap, tomckay
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 855153 (view as bug list) Environment:
Last Closed: 2012-09-07 12:25:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 855153    

Description Eric Sammons 2012-09-06 19:53:36 UTC
Description of problem:
Katello master currently allows the same system to register using the same name multiple times, leaving previous copies of the name in the system list.

Version-Release number of selected component (if applicable):
katello-common-1.1.9-1.git.148.307e03b.fc16.noarch

Steps to Reproduce:
1. subscription-manager register --user admin --password admin --org ACME_Corporation --env DEV
2. subscription-manager clean
3. subscription-manager register --user admin --password admin --org ACME_Corporation --env DEV
  
Actual results:
When viewing the list of systems, via the ui or cli you will find multiple copies of the same system name.

headpin> system list --org ACME_Corporation
--------------------------------------------------------------------------------
                  Systems List For Org [ ACME_Corporation ]

 Name              Uuid                                   Ipv4 Address   Service Level  
--------------------------------------------------------------------------------
 localhost-12345   e18ae6a2-1857-4b0d-9d5c-21b81603ad09   x.x.x.x
 localhost-12345   c42390fe-d591-49d3-8285-2863fb741fad   x.x.x.x          

Expected results:
subscription-manager should have returned an error that the name is already taken and to use the --force option.

Additional info:

Comment 2 Tom McKay 2012-09-07 12:25:32 UTC
As discussed on IRC, this is not a bug but expected behaviour. There are valid use cases for a system to be registered, then cleaned, and another system registered. Systems with the same name is also a valid scenario.