Cannot connect to AWS EC2 Provider


#1

Hello everybody, i’m new at the forum and i’m facing a problem connecting my ManageIQ instance on my AWS Account.
My ManageIQ was built on an OpenStack Instance. I’ve made the setup for the AWS account and could validate and create it, but it tells me that the “Default Credentials” are with errors at the Provider Summary screen.
I will post the log messages thrown when i try to revalidate the credentials:

[----] I, [2017-08-18T12:11:43.973728 #2684:edd12c] INFO – : MIQ(ManageIQ::Providers::Amazon::CloudManager#with_provider_connection) Connecting through ManageIQ::Providers::Amazon::CloudManager: [ORAEX Amazon]
[----] E, [2017-08-18T12:11:46.094680 #2684:edd12c] ERROR – : MIQ(ManageIQ::Providers::Amazon::CloudManager#verify_credentials) Error Class=Seahorse::Client::NetworkingError, Message=Failed to open TCP connection to ec2.us-east-1.amazonaws.com:443 (getaddrinfo: Name or service not known)
[----] W, [2017-08-18T12:11:46.094802 #2684:edd12c] WARN – : MIQ(ManageIQ::Providers::Amazon::CloudManager#authentication_check_no_validation) type: [“default”] for [5] [ORAEX Amazon] Validation failed: error, Unexpected response returned from system: Failed to open TCP connection to ec2.us-east-1.amazonaws.com:443 (getaddrinfo: Name or service not known)
[----] I, [2017-08-18T12:11:46.118341 #2684:edd12c] INFO – : MIQ(MiqQueue.put) Message id: [14222], id: [], Zone: [default], Role: [], Server: [], Ident: [generic], Target id: [], Instance id: [], Task id: [], Command: [MiqEvent.raise_evm_event], Timeout: [600], Priority: [100], State: [ready], Deliver On: [], Data: [], Args: [[“ManageIQ::Providers::Amazon::CloudManager”, 5], “ems_auth_error”, {}]
[----] I, [2017-08-18T12:11:49.140568 #2684:edd12c] INFO – : MIQ(MiqGenericWorker::Runner#get_message_via_drb) Message id: [14222], MiqWorker id: [13], Zone: [default], Role: [], Server: [], Ident: [generic], Target id: [], Instance id: [], Task id: [], Command: [MiqEvent.raise_evm_event], Timeout: [600], Priority: [100], State: [dequeue], Deliver On: [], Data: [], Args: [[“ManageIQ::Providers::Amazon::CloudManager”, 5], “ems_auth_error”, {}], Dequeued in: [3.030705083] seconds
[----] I, [2017-08-18T12:11:49.172858 #2684:edd12c] INFO – : MIQ(MiqQueue.put) Message id: [14223], id: [], Zone: [default], Role: [automate], Server: [], Ident: [generic], Target id: [], Instance id: [], Task id: [], Command: [MiqAeEngine.deliver], Timeout: [3600], Priority: [20], State: [ready], Deliver On: [], Data: [], Args: [{:object_type=>“ManageIQ::Providers::Amazon::CloudManager”, :object_id=>5, :attrs=>{:event_type=>“ems_auth_error”, “MiqEvent::miq_event”=>3254, :miq_event_id=>3254, “EventStream::event_stream”=>3254, :event_stream_id=>3254}, :instance_name=>“Event”, :user_id=>1, :miq_group_id=>1, :tenant_id=>1, :automate_message=>nil}]
[----] I, [2017-08-18T12:11:54.061241 #2702:edd12c] INFO – : MIQ(MiqPriorityWorker::Runner#get_message_via_drb) Message id: [14223], MiqWorker id: [15], Zone: [default], Role: [automate], Server: [], Ident: [generic], Target id: [], Instance id: [], Task id: [], Command: [MiqAeEngine.deliver], Timeout: [3600], Priority: [20], State: [dequeue], Deliver On: [], Data: [], Args: [{:object_type=>“ManageIQ::Providers::Amazon::CloudManager”, :object_id=>5, :attrs=>{:event_type=>“ems_auth_error”, “MiqEvent::miq_event”=>3254, :miq_event_id=>3254, “EventStream::event_stream”=>3254, :event_stream_id=>3254}, :instance_name=>“Event”, :user_id=>1, :miq_group_id=>1, :tenant_id=>1, :automate_message=>nil}], Dequeued in: [4.900238378] seconds
[----] I, [2017-08-18T12:11:54.062602 #2702:edd12c] INFO – : MIQ(MiqAeEngine.deliver) Delivering {:event_type=>“ems_auth_error”, “MiqEvent::miq_event”=>3254, :miq_event_id=>3254, “EventStream::event_stream”=>3254, :event_stream_id=>3254} for object [ManageIQ::Providers::Amazon::CloudManager.5] with state [] to Automate
[----] I, [2017-08-18T12:11:54.210761 #2702:edd12c] INFO – : MIQ(MiqEvent#process_evm_event) target = [#<ManageIQ::Providers::Amazon::CloudManager id: 5, name: “ORAEX Amazon”, created_on: “2017-08-18 13:22:33”, updated_on: “2017-08-18 13:22:33”, guid: “4b0c9d26-8418-11e7-88ce-fa163e162dbf”, zone_id: 1, type: “ManageIQ::Providers::Amazon::CloudManager”, api_version: nil, uid_ems: nil, host_default_vnc_port_start: nil, host_default_vnc_port_end: nil, provider_region: “us-east-1”, last_refresh_error: nil, last_refresh_date: nil, provider_id: nil, realm: nil, tenant_id: 1, project: nil, parent_ems_id: nil, subscription: nil, last_metrics_error: nil, last_metrics_update_date: nil, last_metrics_success_date: nil, tenant_mapping_enabled: nil>]
[----] I, [2017-08-18T12:11:54.222319 #2702:edd12c] INFO – : MIQ(MiqAlert.evaluate_alerts) [ems_auth_error] Target: ManageIQ::Providers::Amazon::CloudManager Name: [ORAEX Amazon], Id: [5]

I can telnet to ec2.us-east-1.amazonaws.com on port 443 from the ManageIQ server. I’ve researched a lot and couldn’t find anything that helped me.

best regards and thanks in advance.


#2

Hi all!
My bad guys, after starting up my ManageIQ instance i’ve noticed a wrong DNS configuration so i changed the /etc/resolv.conf manualy, instead change through appliance_console.
So after changing on appliance_console and a restart, we’re done.
Sorry for that and thanks.
Best regards.