Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1636067 - APIv4 - "undefined method `href' for false:FalseClass" while importing a VM
Summary: APIv4 - "undefined method `href' for false:FalseClass" while importing a VM
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Compute Resources - RHEV
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.6.0
Assignee: orabin
QA Contact: Lukáš Hellebrandt
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-04 11:56 UTC by Lukáš Hellebrandt
Modified: 2021-07-21 14:10 UTC (History)
5 users (show)

Fixed In Version: foreman-1.21.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-22 19:48:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
production.log (22.39 KB, text/plain)
2018-10-04 11:56 UTC, Lukáš Hellebrandt
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 25328 0 Normal Resolved ovirt API V4 - "undefined method `href' for false:FalseClass" in image based provisioning 2020-09-03 04:52:22 UTC

Description Lukáš Hellebrandt 2018-10-04 11:56:42 UTC
Created attachment 1490486 [details]
production.log

Description of problem:
When importing a VM, I get the error message: "Failed to update a compute rhev4 (RHV) instance elena-claro.example.com: undefined method `href' for false:FalseClass".
This does NOT happen when creating a new host with the same values that import would pre-fill.

Version-Release number of selected component (if applicable):
Noticed this in snap 25. At some point before in 6.4, it worked.

How reproducible:
Deterministic

Steps to Reproduce:
1. Infra -> CR -> <cr> -> VMs -> <vm> -> Import
2. Fill in the rest of the form
3. Submit

Actual results:
Fail, error, traceback

Expected results:
Machine added to VM, no error, no traceback

Additional info:
Traceback attached

Comment 1 Lukáš Hellebrandt 2018-10-04 12:51:50 UTC
This only happened to me with CR using APIv4.

Comment 5 orabin 2018-10-28 06:22:14 UTC
This was fixed by the fix for: https://bugzilla.redhat.com/show_bug.cgi?id=1578021 which is now ON_QA so I'm moving this as well.

Comment 6 orabin 2018-10-28 13:35:44 UTC
I was able to reproduce this even with the fix with image based provisioning.

Comment 7 orabin 2018-10-28 13:43:22 UTC
Connecting redmine issue https://projects.theforeman.org/issues/25328 from this bug

Comment 8 Bryan Kearney 2019-03-12 10:00:33 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/25328 has been resolved.

Comment 9 Lukáš Hellebrandt 2019-05-29 14:34:11 UTC
Ori, how is this BZ related to the issue you linked in comment 7? If it's caused by different issue, I suggest creating a separate BZ from it.

Comment 10 orabin 2019-05-30 13:09:25 UTC
I thought originally this was related only to: https://bugzilla.redhat.com/show_bug.cgi?id=1578021
but I found there was another value getting false and that was fixed.

There were 2 PRs fixing boolean values but version 1.1.5 of fog-ovirt contains both.

Comment 12 Lukáš Hellebrandt 2019-08-02 10:55:45 UTC
Verified with Sat 6.6 snap 13, using reproducer from OP (both Managed and Unmanaged host).

Comment 13 Bryan Kearney 2019-10-22 19:48:12 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-2019:3172


Note You need to log in before you can comment on or make changes to this bug.