Bug 1850536

Summary: Can't add RHEV with APIv3 through Hammer
Product: Red Hat Satellite Reporter: Lukáš Hellebrandt <lhellebr>
Component: Compute Resources - RHEVAssignee: Shira Maximov <mshira>
Status: CLOSED ERRATA QA Contact: Lukáš Hellebrandt <lhellebr>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.8.0CC: ehelms, inecas, mshira, orabin, tbrisker
Target Milestone: 6.8.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-2.1.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 13:03:32 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:
Attachments:
Description Flags
foreman-tail.log
none
ovirt-engine.log none

Description Lukáš Hellebrandt 2020-06-24 13:12:38 UTC
Created attachment 1698596 [details]
foreman-tail.log

Description of problem:
Can't add RHEV with APIv3 through Hammer, it fails and says:

"""
Could not create the compute resource:
  Ovirt client returned an error: 404 Not Found
"""

Version-Release number of selected component (if applicable):
Sat 6.8 snap 5.0. Regression, this works in 6.7.1.

How reproducible:
Deterministic

Steps to Reproduce:
1. # hammer compute-resource create --name testv4Hammer4 --provider Ovirt --url https://<RHEV_FQDN>/ovirt-engine/api --user <rhev_username> --password <rhev_password> --datacenter Satellite-Devel --use-v4 0

Actual results:
Failure, error

Expected results:
Successfully added CR

Additional info:
RHEV APIv3 hasn't been supported for some time now. Maybe this is a good opportuniny to remove it from the Satellite completely.

Comment 1 Lukáš Hellebrandt 2020-06-24 13:16:09 UTC
Created attachment 1698597 [details]
ovirt-engine.log

Attaching log from RHEV

Comment 3 Shira Maximov 2020-07-12 13:17:24 UTC
Created redmine issue https://projects.theforeman.org/issues/30372 from this bug

Comment 4 Bryan Kearney 2020-07-12 16:02:34 UTC
Upstream bug assigned to mshira

Comment 5 Bryan Kearney 2020-07-12 16:02:36 UTC
Upstream bug assigned to mshira

Comment 6 Bryan Kearney 2020-07-14 12:02:46 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/30372 has been resolved.

Comment 7 Lukáš Hellebrandt 2020-09-01 14:43:56 UTC
Verified with Sat 6.8 snap 13.1.

Used reproducer from OP, successfully added CR. I've also been able to create a Host on it. Tried adding {v3, v4} through {API, WebUI}, all passed.

Comment 10 errata-xmlrpc 2020-10-27 13:03:32 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 (Important: Satellite 6.8 release), 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:4366