registration fails with 'can't dup nilClass'
If you try to register a client when one of its interfaces has no ip address, registration fails with this error.
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
#2 Updated by Justin Sherrill over 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