Bug 1636052 - "404 Not Found" when querying images without OS selected in Create Host dialogue
Summary: "404 Not Found" when querying images without OS selected in Create Host dialogue
Alias: None
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Compute Resources - RHEV
Version: 6.4
Hardware: Unspecified
OS: Unspecified
low vote
Target Milestone: Released
Assignee: satellite6-bugs
QA Contact: Lukáš Hellebrandt
Depends On:
TreeView+ depends on / blocked
Reported: 2018-10-04 10:53 UTC by Lukáš Hellebrandt
Modified: 2019-10-07 17:18 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2019-05-14 12:38:11 UTC

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

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2019:1222 None None None 2019-05-14 12:38:19 UTC

Description Lukáš Hellebrandt 2018-10-04 10:53:15 UTC
Created attachment 1490468 [details]

Description of problem:
When creating a host in RHEV, with architecture selected and OS not selected in VM tab, selecting Image Based provisioning causes traceback.

The request is "Parameters: {"template_id"=>"null", "id"=>"1-rhev3"}" and the null causes "Fog::Ovirt::Errors::OvirtEngineError: Ovirt client returned an error: 404 Not Found". Traceback attached.

This only happens when OS hasn't been selected on the page yet. Selecting and de-selecting the OS doesn't make it reproducible.

This doesn't cause any trouble creating the host. This is NOT a 6.4 regression.

Version-Release number of selected component (if applicable):
Reproduced in Sat 6.4 AND 6.3 (with a slightly different traceback - but it's 404 again).

How reproducible:

Steps to Reproduce:
1. Have a RHEV with Template and in Foreman, have a CR with Image based on this Template, and some OS kickstart synced.
2. Hosts -> Create Host
3. Fill the necessary info, including CR, select architecture, do NOT select OS, select Image Based while tailing production.log.

Actual results:

Expected results:
No traceback (no request sent at all)

Comment 2 Shira Maximov 2018-11-06 11:01:14 UTC
From the logs you provieded it seems that the 404 error related to POST method that was preform earlier: 
2018-10-04T06:34:08 [I|app|] Started POST "/compute_resources/1-rhev3/template_selected" for at 2018-10-04 06:34:08 -0400
2018-10-04T06:34:08 [I|app|8a35a] Processing by ComputeResourcesController#template_selected as */*
2018-10-04T06:34:08 [I|app|8a35a]   Parameters: {"template_id"=>"null", "id"=>"1-rhev3"}
2018-10-04T06:34:08 [I|app|8a35a] Current user: admin (administrator)
2018-10-04T06:34:09 [W|app|8a35a] Action failed
Fog::Ovirt::Errors::OvirtEngineError: Ovirt client returned an error: 404 Not Found

Also, I wasn't able to reproduce this BZ, Lukas please try to reproduce again and update he BZ.

Comment 3 Lukáš Hellebrandt 2018-11-07 10:12:28 UTC
I have just reproduced this on Sat 6.4. The traceback is in production.log and I am positive that it happens when clicking "Image based".

Comment 4 Shira Maximov 2018-11-12 10:13:55 UTC
Lukas, can you please try to reproduce it on 6.5 and let me know what are the results?

Comment 5 Lukáš Hellebrandt 2018-11-12 12:44:46 UTC
Unable to reproduce on Sat 6.5 snap 3.

Comment 6 Lukáš Hellebrandt 2018-11-12 13:05:15 UTC
Verified on Sat 6.5 snap 3. Used reproducer from OP with RHEV, both API v3 and v4. The image list was empty and got filled after selecting OS. No traceback.

Comment 9 errata-xmlrpc 2019-05-14 12:38:11 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.


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