Bug #22305

sub-man registration fails if system has checked in with puppet (and no org has been assigned)

Added by Justin Sherrill almost 3 years ago. Updated over 2 years ago.

Target version:
Bugzilla link:
Fixed in Releases:
Found in Releases:


Cloned from

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):

How reproducible:

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:

trace trace 23.7 KB server logs Andrew Kofink, 01/23/2018 03:41 PM

Associated revisions

Revision 4176ba11 (diff)
Added by Andrew Kofink over 2 years ago

Fixes #22305: Unscope Host find on create via sub


#1 Updated by Justin Sherrill almost 3 years ago

  • Legacy Backlogs Release (now unused) set to 339
  • Target version set to 242

#2 Updated by Andrew Kofink almost 3 years ago

  • Assignee set to Andrew Kofink

#3 Updated by Brad Buckingham over 2 years ago

  • Target version changed from 242 to 245

#4 Updated by Andrew Kofink over 2 years ago

I am unable to reproduce this on the latest release, Katello 3.5; however, it has been reported in nightly.

#5 Updated by Andrew Kofink over 2 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`: '').save!
2. Register

#6 Updated by Andrew Kofink over 2 years ago

#7 Updated by The Foreman Bot over 2 years ago

  • Status changed from New to Ready For Testing
  • Pull request added

#8 Updated by Andrew Kofink over 2 years ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF