Project

General

Profile

Actions

Bug #22305

closed

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

Added by Justin Sherrill over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hosts
Target version:
Difficulty:
Triaged:
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:


Files

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

Updated by Justin Sherrill over 6 years ago

  • Target version set to 242
  • translation missing: en.field_release set to 339
Actions #2

Updated by Andrew Kofink about 6 years ago

  • Assignee set to Andrew Kofink
Actions #3

Updated by Brad Buckingham about 6 years ago

  • Target version changed from 242 to 245
Actions #4

Updated by Andrew Kofink about 6 years ago

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

Actions #5

Updated by Andrew Kofink about 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

Actions #6

Updated by Andrew Kofink about 6 years ago

Actions #7

Updated by The Foreman Bot about 6 years ago

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

Updated by Andrew Kofink about 6 years ago

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

Also available in: Atom PDF