Bug 1380746

Summary: Can't add EC2 provider because of undefined variable or method when validating
Product: Red Hat CloudForms Management Engine Reporter: Matouš Mojžíš <mmojzis>
Component: ProvidersAssignee: Marcel Hild <mhild>
Status: CLOSED NOTABUG QA Contact: Matouš Mojžíš <mmojzis>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.7.0CC: cpelland, gblomqui, jfrey, jhardy, mfalesni, mmojzis, obarenbo, pakotvan, pmukhedk, simaishi
Target Milestone: GA   
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: provider:ec2
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-07 13:46:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: AWS Target Upstream Version:
Attachments:
Description Flags
ec2 provider validation none

Description Matouš Mojžíš 2016-09-30 13:11:24 UTC
Created attachment 1206256 [details]
ec2 provider validation

Description of problem:


Version-Release number of selected component (if applicable):
5.7.0.3

How reproducible:
Always

Steps to Reproduce:
1.Add an ec2 provider
2.
3.

Actual results:
[----] I, [2016-09-30T09:09:28.653159 #12847:18751a8]  INFO -- : MIQ(ManageIQ::Providers::Amazon::CloudManager#with_provider_connection) Connecting through ManageIQ::Providers::Amazon::CloudManager: [ec2-sao]
[----] E, [2016-09-30T09:09:28.653860 #12847:18751a8] ERROR -- : MIQ(ManageIQ::Providers::Amazon::CloudManager#verify_credentials) Error Class=NameError, Message=undefined local variable or method `http_proxy_uri' for #<ManageIQ::Providers::Amazon::CloudManager:0x00000016271788>
[----] W, [2016-09-30T09:09:28.653952 #12847:18751a8]  WARN -- : MIQ(ManageIQ::Providers::Amazon::CloudManager#authentication_check_no_validation) type: ["default"] for [] [ec2-sao] Validation failed: error, Unexpected response returned from system: undefined local variable or method `http_proxy_uri' for #<ManageIQ::Providers::Amazon::CloudManager:0x00000016271788>
[----] E, [2016-09-30T09:09:28.654070 #12847:18751a8] ERROR -- : MIQ(ems_cloud_controller-create): Credential validation was not successful: Unexpected response returned from system: undefined local variable or method `http_proxy_uri' for #<ManageIQ::Providers::Amazon::CloudManager:0x00000016271788>


Expected results:


Additional info:

Comment 3 Matouš Mojžíš 2016-10-06 11:55:25 UTC
*** Bug 1382310 has been marked as a duplicate of this bug. ***

Comment 6 Marcel Hild 2016-10-07 07:17:53 UTC
This is due to https://github.com/ManageIQ/manageiq-providers-amazon/pull/27 being merged earlier to euwe than https://github.com/ManageIQ/manageiq/pull/10368 being backported. Should be fixed in any build later than 16-09-30.

Comment 8 Greg Blomquist 2016-11-03 14:52:40 UTC
Marcel, should this just be moved to ON_QA, then? Or, at least POST?

Comment 10 Marcel Hild 2016-11-07 08:03:03 UTC
@Matouš, could you please verify that this is no longer an issue?
As I pointed out, I believe this was an intermittent issue.

Comment 11 Matouš Mojžíš 2016-11-07 11:01:01 UTC
Yes, it works on beta2.1 version.