Bug #22305
closedsub-man registration fails if system has checked in with puppet (and no org has been assigned)
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1533201
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:
Files
Updated by Justin Sherrill over 6 years ago
- Target version set to 242
- Translation missing: en.field_release set to 339
Updated by Brad Buckingham over 6 years ago
- Target version changed from 242 to 245
Updated by Andrew Kofink over 6 years ago
I am unable to reproduce this on the latest release, Katello 3.5; however, it has been reported in nightly.
Updated by Andrew Kofink over 6 years ago
I am able to reproduce this on master. If you don't want to use puppet to repro, you can do the following:
1. Add a new host in `rake console`:
Host.new(name: 'katello.example.com').save!
2. Register katello.example.com
Updated by The Foreman Bot over 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/7168 added
Updated by Andrew Kofink over 6 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|4176ba119fb0b3b0269921e4c2bf0a5a9045dcf0.