Project

General

Profile

Bug #13248

registration fails with 'can't dup nilClass'

Added by Justin Sherrill almost 4 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

If you try to register a client when one of its interfaces has no ip address, registration fails with this error.


Related issues

Blocks Katello - Feature #11435: Host Unification TrackerNew

Associated revisions

Revision 9472327a (diff)
Added by Justin Sherrill almost 4 years ago

Fixes #13248 - rely on foreman fact importer to import interfaces

This fixes a variety of issues around registration, including:

  • Registering fedora 20 (and possibly newer) machines
  • proper selection of a primary interface
  • proper detection of bringed and virt interfaces
  • No longer creates an empty primary interface on host creation

Revision 7c4a39bb
Added by Justin Sherrill almost 4 years ago

Merge pull request #5713 from jlsherrill/13248

Fixes #13248 - rely on foreman fact importer to import interfaces

History

#1 Updated by Justin Sherrill almost 4 years ago

#2 Updated by Justin Sherrill almost 4 years ago

Also getting another error registering a f20 client:

ERROR: null value in column "host_id" violates not-null constraint
DETAIL: Failing row contains (4, null, null, 2016-01-15 19:33:02.617248, null, null, f).

not sure why this doesn't with centos clients, but it seems to be related to this line: https://github.com/Katello/katello/blob/master/app/lib/actions/katello/host/register.rb#L112

#3 Updated by The Foreman Bot almost 4 years ago

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

#4 Updated by Justin Sherrill almost 4 years ago

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

Also available in: Atom PDF