Project

General

Profile

Actions

Bug #31883

closed

"HTTP response code is 404. The response body is empty." when trying to view an oVirt Compute Resource

Added by Evgeni Golov almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Compute resources - oVirt
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Ohai,

when you create an oVirt CR, and then add a Compute Profile to it, that points to a non-existing cluster, you cannot view the CR via the API anymore and only get a HTTP response code is 404. The response body is empty.

Steps to reproduce:
  1. Create an oVirt CR (UI, API, whatever)
  2. Create a Compute Profile (API POST {"compute_profile"=>{"name"=>"lol-nope"}} to /api/compute_profiles)
  3. Set Compute Attributes for that Profile to have an invalid Cluster (API POST {"compute_attribute"=>{"vm_attrs"=>{"cluster"=>"lol-nope"}}, "compute_profile_id"=>"4", "compute_resource_id"=>"1"} to /api/compute_profiles/4/compute_resources/1/compute_attributes)
  4. Try to fetch /api/compute_resources/1

Actual Result:

{
  "error": {"message":"HTTP response code is 404. The response body is empty."}
}

Expected Result:
The actual API respinse

Additional Info:
This ought to be fixed in #25281, but seems it wasn't completely?


Related issues 2 (1 open1 closed)

Related to Foreman - Bug #25281: Unable to provision a host, if RHV resource created through CLIClosedyifat makiasActions
Related to Foreman - Tracker #27680: API bugs that need workarounds in foreman-ansible-modulesNew

Actions
Actions

Also available in: Atom PDF