Bug 1593647

Summary: EC2 CR create with invalid data -> uninitialized constant ComputeResourcesController::OVIRT
Product: Red Hat Satellite Reporter: Lukáš Hellebrandt <lhellebr>
Component: Compute ResourcesAssignee: orabin
Status: CLOSED ERRATA QA Contact: Lukáš Hellebrandt <lhellebr>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.4CC: bbuckingham, bkearney, egolov, inecas, mhulan, oprazak, orabin, pnguyen
Target Milestone: 6.5.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-1.19.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-14 12:37:27 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 none

Description Lukáš Hellebrandt 2018-06-21 10:09:14 UTC
Created attachment 1453396 [details]
foreman-tail

Description of problem:
When creating a compute resource of type EC2 (with some made up values), I click submit and get the error message:
"""
Oops, we're sorry but something went wrong uninitialized constant ComputeResourcesController::OVIRT Did you mean? Ovirt
"""
However, EC2 shouldn't have anything to do with oVirt(?).
Traceback attached.
This is a regression against 6.3.
The resource is not created after this.

Version-Release number of selected component (if applicable):
Sat 6.4, tested with snap 8

How reproducible:
Deterministic

Steps to Reproduce:
1. Infrastructure -> Compute Resources -> Create
2. Select provider EC2, fill in some random values
3. Submit

Actual results:
Error message, traceback, resource not created

Expected results:
Error message about invalid values, nothing about oVirt.

Comment 3 orabin 2018-06-24 10:56:46 UTC
Created redmine issue https://projects.theforeman.org/issues/24053 from this bug

Comment 4 Satellite Program 2018-06-24 12:15:19 UTC
Upstream bug assigned to orabin

Comment 5 Satellite Program 2018-06-24 12:15:22 UTC
Upstream bug assigned to orabin

Comment 6 Satellite Program 2018-06-24 18:15:04 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/24053 has been resolved.

Comment 11 Lukáš Hellebrandt 2019-01-08 10:46:15 UTC
Verified with EC2 and OpenStack on Sat 6.5 snap 10.

Loading regions with incorrect credentials now results in a pop up box saying "Unable to save: AuthFailure => AWS was not able to validate the provided access credentials".
Submitting with incorrect credentials now results in traceback: "Fog::Compute::AWS::Error: AuthFailure => AWS was not able to validate the provided access credentials" and a pop up box saying "Error while trying to create resource: AuthFailure => AWS was not able to validate the provided access credentials".
The same with correct credentials completes the action successfully.
Similarly for OpenStack.

Comment 14 errata-xmlrpc 2019-05-14 12:37:27 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:1222