Bug #25276
"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
Related issues
Associated revisions
History
#1
Updated by Ori Rabin over 4 years ago
- Assignee set to Ori Rabin
- Status changed from New to Assigned
#2
Updated by Ori Rabin about 4 years ago
- Has duplicate Bug #26168: Ovirt client returned an error: undefined method `href' for nil:NilClass added
#3
Updated by Ori Rabin about 4 years ago
The fix exists in fog-ovirt 1.1.6
#4
Updated by Shira Maximov over 3 years ago
- Assignee changed from Ori Rabin to Shira Maximov
#5
Updated by The Foreman Bot over 3 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/7014 added
#6
Updated by The Foreman Bot over 3 years ago
- Fixed in Releases 1.24.0 added
#7
Updated by Shira Maximov over 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset cd8d94440318e8ed4f8a943df5142b776bba5d62.
Fixes #26168,#25276 - Create ovirt interface/volume if not empty