Project

General

Profile

Bug #22305

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

Added by Justin Sherrill 7 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

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:

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

Associated revisions

Revision 4176ba11 (diff)
Added by Andrew Kofink 7 months ago

Fixes #22305: Unscope Host find on create via sub

History

#1 Updated by Justin Sherrill 7 months ago

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

#2 Updated by Andrew Kofink 7 months ago

  • Assignee set to Andrew Kofink

#3 Updated by Brad Buckingham 7 months ago

  • Target version changed from 242 to 245

#4 Updated by Andrew Kofink 7 months 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 7 months 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

#6 Updated by Andrew Kofink 7 months ago

#7 Updated by The Foreman Bot 7 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7168 added

#8 Updated by Andrew Kofink 7 months ago

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

Also available in: Atom PDF