Bug #25276
closed"undefined method `href' for nil:NilClass" when provisioning host without --interface
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1634760
Description of problem:
Running 'hammer host create ...' without --interface specification leads to error in $SUBJ
I tried it with Sat 6.3 and didn't reproduce it (got a nice message "Could not create the host: Could not find virtual machine network interface matching 192.168.1.116") => seems like regression
Version-Release number of selected component (if applicable):
Reproduced on Sat 6.4 snap 24
How reproducible:
Deterministic
Steps to Reproduce:
1. Run 'hammer host create' command without specifying --interface parameter
Actual results:
[DEBUG 2018-10-01T16:19:57 Exception] Using exception handler HammerCLIForeman::ExceptionHandler#handle_unprocessable_entity
[ERROR 2018-10-01T16:19:57 Exception] Failed to create a compute rhev4 (RHV) instance fish.example.com: Ovirt client returned an error: undefined method `href' for nil:NilClass
Could not create the host:
Failed to create a compute rhev4 (RHV) instance fish.example.com: Ovirt client returned an error: undefined method `href' for nil:NilClass
Expected results:
Host created successfully
Additional info:
Traceback attached
Updated by Ori Rabin about 6 years ago
- Status changed from New to Assigned
- Assignee set to Ori Rabin
Updated by Ori Rabin over 5 years ago
- Has duplicate Bug #26168: Ovirt client returned an error: undefined method `href' for nil:NilClass added
Updated by Shira Maximov over 5 years ago
- Assignee changed from Ori Rabin to Shira Maximov
Updated by The Foreman Bot about 5 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/7014 added
Updated by Shira Maximov about 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset cd8d94440318e8ed4f8a943df5142b776bba5d62.