Bug 1679593

Summary: Ovirt client returned an error: undefined method `href' for nil:NilClass
Product: Red Hat Satellite Reporter: Lukáš Hellebrandt <lhellebr>
Component: Compute Resources - RHEVAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Lukáš Hellebrandt <lhellebr>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.5.0CC: bbuckingham, bkearney, inecas, mshira, orabin
Target Milestone: 6.7.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-14 13:23:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1634760    
Bug Blocks:    
Attachments:
Description Flags
production.log none

Description Lukáš Hellebrandt 2019-02-21 13:57:52 UTC
Created attachment 1537095 [details]
production.log

Description of problem:
When using APIv4, host creatin always fails with "Failed to create a compute rhev4 (RHV) instance ramon-rozycki.testdom: Ovirt client returned an error: undefined method `href' for nil:NilClass"

Version-Release number of selected component (if applicable):
Reproduced on Sat 6.5 snap 15. It worked in some previous snap.

How reproducible:
Deterministic.

Steps to Reproduce:
1. Have a RHEV, add it as a CR to Satellite using APIv4
2. Hosts -> Create host -> fill -> submit

Actual results:
Failure

"Failed to create a compute rhev4 (RHV) instance ramon-rozycki.testdom: Ovirt client returned an error: undefined method `href' for nil:NilClass"

Traceback (attached)

Expected results:
Successfully created Host and VM

Comment 5 orabin 2019-02-26 19:29:26 UTC
Created redmine issue https://projects.theforeman.org/issues/26168 from this bug

Comment 6 orabin 2019-02-26 19:36:15 UTC
This is caused by the same issue as: https://bugzilla.redhat.com/show_bug.cgi?id=1634760 so they will be fixed together.

Comment 7 Lukáš Hellebrandt 2019-02-27 12:42:53 UTC
I've just reproduced this bug with a Sat 6.4.1 instance. That means it's probably NOT a regression (still might be 6.4.1 x 6.4, not likely though).

Ori discovered this only happened with some RHEV instances, and not with some others (which initially made me think this was a regression). The instances on which the bug is reproducible may be somehow broken but it can also be caused by some valid state, we don't know yet. However, even if those instances were broken, the bug is still valid because "undefined method" is not an acceptable response to an invalid RHEV instance state.

Comment 8 orabin 2019-02-27 13:37:30 UTC
I agree and the bug I mentioned in Comment 6 will fix this. The fix was merged upstream but needs a new version of fog-ovirt.

Due to the dependency bump needed, the fact that the connected bug was not aligned to 6.5 and that it is not a regression, could this bug be moved out of 6.5?

Comment 11 Shira Maximov 2019-11-06 08:06:44 UTC
Based on comment #8, I'm moving this to POST, since https://bugzilla.redhat.com/show_bug.cgi?id=1634760 is in POST.

Comment 13 Lukáš Hellebrandt 2020-03-06 14:03:00 UTC
Verified with Sat 6.7 snap 14, using reproducer from OP.

Comment 16 errata-xmlrpc 2020-04-14 13:23:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:1454