Bug 1848902

Summary: ERF42-0258 [Foreman::Exception]: <uuid> is not valid, enter id or name
Product: Red Hat Satellite Reporter: Lukáš Hellebrandt <lhellebr>
Component: Compute Resources - RHEVAssignee: Yifat Makias <ymakias>
Status: CLOSED ERRATA QA Contact: Lukáš Hellebrandt <lhellebr>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.8.0CC: ehelms, inecas, mshira, orabin
Target Milestone: 6.8.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-2.1.0.1-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 13:03:20 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

Description Lukáš Hellebrandt 2020-06-19 08:12:59 UTC
Description of problem:
When adding a new CR of type RHEV, upon selecting a datacenter that is NOT the first in the list, the following error occurs:

ERF42-0258 [Foreman::Exception]: <uuid> is not valid, enter id or name

Log attached but doens't contain any traceback.

Version-Release number of selected component (if applicable):
Sat 6.8 snap 5.0

How reproducible:
Deterministic

Steps to Reproduce:
1. Have a Satellite and RHEV instance
2. Infrastructure -> Compute Resources -> Create
3. Fill in details
4. Load Datacenters
5. Select non-default datacenter

Actual results:
Error, list of datacenters deleted

Expected results:
Successfully verified connection, CR can be added

Comment 2 Lukáš Hellebrandt 2020-06-19 08:25:40 UTC
Created attachment 1698059 [details]
foreman-tail.log

Comment 3 Tomer Brisker 2020-06-23 07:42:57 UTC
Created redmine issue https://projects.theforeman.org/issues/30195 from this bug

Comment 4 Lukáš Hellebrandt 2020-06-24 09:58:26 UTC
Another way to reproduce:

1) Add a CR through Hammer, selecting any Datacenter (not just the first one) works
2) In WebUI, try to change to another datacenter

Comment 5 Bryan Kearney 2020-06-25 12:04:21 UTC
Upstream bug assigned to ymakias

Comment 6 Bryan Kearney 2020-06-25 12:04:24 UTC
Upstream bug assigned to ymakias

Comment 8 Lukáš Hellebrandt 2020-07-29 11:47:28 UTC
Verified with Sat 6.8 snap 10.0.

Using reproducer from OP, it's now possible to add a RHEV CR with non-default datacenter.

Comment 11 errata-xmlrpc 2020-10-27 13:03:20 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