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 1533201 - sub-man registration fails if system has checked in with puppet (and no org has been assigned)
Summary: sub-man registration fails if system has checked in with puppet (and no org h...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts - Content
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Andrew Kofink
QA Contact: Kedar Bidarkar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-10 17:37 UTC by Justin Sherrill
Modified: 2019-09-26 14:37 UTC (History)
6 users (show)

Fixed In Version: tfm-rubygem-katello-3.4.5.55-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 16:54:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 22305 0 'Normal' 'Closed' 'sub-man registration fails if system has checked in with puppet (and no org has been assigned)' 2019-12-05 19:49:31 UTC

Description Justin Sherrill 2018-01-10 17:37:33 UTC
Description of problem:

If a host has checked in with puppet, but is not assigned to any org, and you try to register it with sub-man, you get:

Validation failed: Name has already been taken



Version-Release number of selected component (if applicable):
satellite-6.3.0-23.0.el7sat.noarch


How reproducible:
Always

Steps to Reproduce:
1.  Install satellite 6.3.0
2.  Try to register the satellite to itself


Actual results:
Fails with "Name has already been taken"

Expected results:

Should register normally, and the host should be assigned to the specified org.


Additional info:

Comment 5 Justin Sherrill 2018-01-17 18:10:41 UTC
Created redmine issue http://projects.theforeman.org/issues/22305 from this bug

Comment 6 Andrew Kofink 2018-01-23 14:22:55 UTC
I am unable to reproduce this on the latest 6.3 snap (33).

Comment 7 Brad Buckingham 2018-01-23 15:22:43 UTC
Hey Justin, do you happen to have a reproducer?

Comment 8 Brad Buckingham 2018-01-24 18:36:54 UTC
Moving to POST as upstream issue is merged.

Comment 11 Kedar Bidarkar 2018-02-02 04:23:47 UTC
[root@qe-sat6 ~]# subscription-manager register
Registering to: qe-sat6.redhat.com:443/rhsm
Username: admin
Password: 
Organization: Default_Organization
Environment: Library 
The system has been registered with ID: 5570b1ce-dcbd-4f43-850c-e4060d4a1d2e 
[root@qe-sat6 ~]# subscription-manager attach --auto 


Installed Product Current Status:
Product Name: Red Hat Software Collections (for RHEL Server)
Status:       Subscribed

Product Name: Red Hat Enterprise Linux Server
Status:       Subscribed

[root@qe-sat6 ~]#

Comment 12 Kedar Bidarkar 2018-02-02 04:28:13 UTC
As seen below the self-registered sat6 belongs to the org specified during registration.

[root@qe-sat6 ~]# hammer -u admin -p changeme host info --id 1
Id:                       1
Name:                     qe-sat6.redhat.com
Organization:             Default Organization
Environment:              production
Puppet CA Id:             1
Puppet Master Id:         1
Cert name:                qe-sat6.redhat.com
Managed:                  no
Installed at:             
Last report:              2018/02/02 04:09:04
Network:                  
    IP:     11.x.x.x
    MAC:    52:54:00:32:9e:c6
    Domain: .redhat.com
Network interfaces:       
 1) Id:          1
    Identifier:  eth0
    Type:        interface (primary, provision)
    MAC address: 52:54:00:32:9e:c6
    IP address:  11.x.x.x
    FQDN:
Operating system:         
    Architecture:           x86_64
    Operating System:       RedHat 7.4
    Build:                  no
    Custom partition table:
Parameters:               

All parameters:           

Additional info:          
    Owner Id:   3
    Owner Type: User
    Enabled:    yes
    Model:      Standard PC (i440FX + PIIX, 1996)
    Comment:
OpenSCAP Proxy:           
Content Information:      
    Content View:          
        ID:   1
        Name: Default Organization View
    Lifecycle Environment: 
        ID:   1
        Name: Library
    Content Source:        
        ID:   
        Name:
    Kickstart Repository:  
        ID:   
        Name:
    Applicable Packages:   0
    Upgradable Packages:   0
    Applicable Errata:     
        Enhancement: 0
        Bug Fix:     0
        Security:    0
Subscription Information: 
    UUID:            5570b1ce-dcbd-4f43-850c-e4060d4a1d2e
    Last Checkin:    2018-02-02 04:08:15 UTC
    Service Level:   
    Release Version: 
    Autoheal:        true
    Registered To:   qe-sat6.redhat.com
    Registered At:   2018-02-02 04:07:56 UTC
Host Collections:

Comment 13 Kedar Bidarkar 2018-02-02 04:30:33 UTC
VERIFIED with sat6.3.0-snap34.0

Comment 14 Satellite Program 2018-02-21 16:54:17 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
> 
> For information on the advisory, and where to find the updated files, follow the link below.
> 
> If the solution does not work for you, open a new bug report.
> 
> https://access.redhat.com/errata/RHSA-2018:0336


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