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:
Created redmine issue http://projects.theforeman.org/issues/22305 from this bug
I am unable to reproduce this on the latest 6.3 snap (33).
Hey Justin, do you happen to have a reproducer?
Moving to POST as upstream issue is merged.
[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 ~]#
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:
VERIFIED with sat6.3.0-snap34.0
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