Hi,
Just to add more information:
I have changed the log level of Fog to Debug, and was able to verify that MiQ is indeed changing to SSL connections: it tries first with non-SSL and fails with a EOF error; then MiQ tries again with SSL – and is seems to work with 200 codes.
There is no other information in the logs that seems useful at this point. The evm.log has three errors - the initial fog error (before failing over) and then the error showing up on the ManageIQ frontend (“Unexpected response returned from system, see log for details”). They seem to occur at the same time, which makes me wonder whether the first fog error (before failing over to SSL) is causing ManageIQ to think the connection failed. Anyway, this is about as much as we can see right now. If you have any further suggestions that would be most appreciated.
evm.log ERROR entries:
[----] E, [2015-03-12T09:53:45.349166 #2262:131de94] ERROR – : excon.error #<Excon::Errors::SocketError: end of file reached (EOFError)>
[fog][DEPRECATION] Fog::Connection is deprecated use Fog::Core::Connection instead (/opt/manageiq/lib/openstack/openstack_handle/identity_delegate.rb:19:in `visible_tenants’)
[----] E, [2015-03-12T09:53:45.556861 #2262:131de94] ERROR – : MIQ(EmsOpenstack.verify_api_credentials) Error Class=Excon::Errors::SocketError, Message=end of file reached (EOFError)
[----] E, [2015-03-12T09:53:45.557076 #2262:131de94] ERROR – : MIQ(ems_cloud_controller-update): Unexpected response returned from system, see log for details
I am adding the fog.log content as well below, in case it can be useful:
[----] D, [2015-03-12T09:53:44.736641 #2262:131de94] DEBUG – : excon.request
{:uri=>“http://os-a1.xyzprovider.com:7001/v2.0/tokens”,
:method=>“POST”,
:headers=>
{“User-Agent”=>“fog/1.28.0 fog-core/1.29.0”,
“Content-Type”=>“application/json”,
“Host”=>“os-a1.xyzprovider.com:7001”},
:body=>
{“auth”=>
{“passwordCredentials”=>{“username”=>"", “password”=>"********"},
“tenantName”=>""}}}
[----] E, [2015-03-12T09:53:45.349278 #2262:131de94] ERROR – : excon.error #<Excon::Errors::SocketError: end of file reached (EOFError)>
[----] D, [2015-03-12T09:53:45.351542 #2262:131de94] DEBUG – : excon.request
{:uri=>“https://os-a1.xyzprovider.com:7001/v2.0/tokens”,
:method=>“POST”,
:headers=>
{“User-Agent”=>“fog/1.28.0 fog-core/1.29.0”,
“Content-Type”=>“application/json”,
“Host”=>“os-a1.xyzprovider.com:7001”},
:body=>
{“auth”=>
{“passwordCredentials”=>{“username”=>"", “password”=>"********"},
“tenantName”=>""}}}
[----] D, [2015-03-12T09:53:45.428597 #2262:131de94] DEBUG – : excon.response
{:status=>200,
:headers=>
{“Vary”=>“X-Auth-Token”,
“X-Distribution”=>“Ubuntu”,
“Content-Type”=>“application/json”,
“Content-Length”=>“376”,
“Date”=>“Thu, 12 Mar 2015 09:53:41 GMT”},
:body=>
{“access”=>
{“token”=>
{“issued_at”=>“2015-03-12T09:53:41.274672”,
“expires”=>“2015-03-12T10:53:41Z”,
“id”=>“808d91bceec046f58c85d73686b18acc”,
“audit_ids”=>[“ETt_Feg4TkOVccxa_NOQOw”]},
“serviceCatalog”=>[],
“user”=>
{“username”=>"",
“roles_links”=>[],
“id”=>“c8fab46239b8439ba041ecfa10c4058e”,
“roles”=>[],
“name”=>""},
“metadata”=>{“is_admin”=>0, “roles”=>[]}}}}
[----] D, [2015-03-12T09:53:45.430179 #2262:131de94] DEBUG – : excon.request
{:uri=>“https://os-a1.xyzprovider.com:7001/v2.0/tenants”,
:method=>“GET”,
:headers=>
{“User-Agent”=>“fog/1.28.0 fog-core/1.29.0”,
“Content-Type”=>“application/json”,
“Accept”=>“application/json”,
“X-Auth-Token”=>“808d91bceec046f58c85d73686b18acc”,
“Host”=>“os-a1.xyzprovider.com:7001”},
:body=>nil}
[----] D, [2015-03-12T09:53:45.470266 #2262:131de94] DEBUG – : excon.response
{:status=>200,
:headers=>
{“Vary”=>“X-Auth-Token”,
“X-Distribution”=>“Ubuntu”,
“Content-Type”=>“application/json”,
“Content-Length”=>“149”,
“Date”=>“Thu, 12 Mar 2015 09:53:41 GMT”},
:body=>
{“tenants_links”=>[],
“tenants”=>
[{“description”=>“AlphaAccount001”,
“enabled”=>true,
“id”=>“52354e72e8c94647ae746cff76b7e0be”,
“name”=>""}]}}
[----] D, [2015-03-12T09:53:45.472115 #2262:131de94] DEBUG – : excon.request
{:uri=>“https://os-a1.xyzprovider.com:7001/v2.0/tokens”,
:method=>“POST”,
:headers=>
{“User-Agent”=>“fog/1.28.0 fog-core/1.29.0”,
“Content-Type”=>“application/json”,
“Host”=>“os-a1.xyzprovider.com:7001”},
:body=>
{“auth”=>
{“token”=>{“id”=>“808d91bceec046f58c85d73686b18acc”},
“tenantName”=>""}}}
[----] D, [2015-03-12T09:53:45.545013 #2262:131de94] DEBUG – : excon.response
{:status=>200,
:headers=>
{“Vary”=>“X-Auth-Token”,
“X-Distribution”=>“Ubuntu”,
“Content-Type”=>“application/json”,
“Content-Length”=>“2989”,
“Date”=>“Thu, 12 Mar 2015 09:53:41 GMT”},
:body=>
{“access”=>
{“token”=>
{“issued_at”=>“2015-03-12T09:53:41.384309”,
“expires”=>“2015-03-12T10:53:41Z”,
“id”=>“69d86783035b4910a5e0c5aa2b20012b”,
“tenant”=>
{“description”=>“AlphaAccount001”,
“enabled”=>true,
“id”=>“52354e72e8c94647ae746cff76b7e0be”,
“name”=>""},
“audit_ids”=>[“g0UfLsUYSymsIscj03eBTQ”, “ETt_Feg4TkOVccxa_NOQOw”]},
“serviceCatalog”=>
[{“endpoints”=>
[{“adminURL”=>
“http://ctrl-os-a1-nova-comp-api:8774/v2/52354e72e8c94647ae746cff76b7e0be”,
“region”=>“Dunsfold-Alpha-1”,
“internalURL”=>
“http://ctrl-os-a1-nova-comp-api:8774/v2/52354e72e8c94647ae746cff76b7e0be”,
“id”=>“5a9d39435fd4469781e628b05e4fd3e9”,
“publicURL”=>
“https://os-a1.xyzprovider.com:7020/v2/52354e72e8c94647ae746cff76b7e0be”}],
“endpoints_links”=>[],
“type”=>“compute”,
“name”=>“nova”},
{“endpoints”=>
[{“adminURL”=>“http://ctrl-os-a1-neutron:9696”,
“region”=>“Dunsfold-Alpha-1”,
“internalURL”=>“http://ctrl-os-a1-neutron:9696”,
“id”=>“167c9692f01445c6b0d4b7dd2a6486a3”,
“publicURL”=>“https://os-a1.xyzprovider.com:7030”}],
“endpoints_links”=>[],
“type”=>“network”,
“name”=>“neutron”},
{“endpoints”=>
[{“adminURL”=>
“http://ctrl-os-a1:8776/v2/52354e72e8c94647ae746cff76b7e0be”,
“region”=>“Dunsfold-Alpha-1”,
“internalURL”=>
“http://ctrl-os-a1:8776/v2/52354e72e8c94647ae746cff76b7e0be”,
“id”=>“0efb0d983d5843b186a27fdf6d81a609”,
“publicURL”=>
“https://os-a1.xyzprovider.com:7040/v2/52354e72e8c94647ae746cff76b7e0be”}],
“endpoints_links”=>[],
“type”=>“volumev2”,
“name”=>“cinderv2”},
{“endpoints”=>
[{“adminURL”=>“http://ctrl-os-a1-glance:9292”,
“region”=>“Dunsfold-Alpha-1”,
“internalURL”=>“http://ctrl-os-a1-glance:9292”,
“id”=>“00b5ee7ea9554d3ab6c05e988336e964”,
“publicURL”=>“https://os-a1.xyzprovider.com:7010”}],
“endpoints_links”=>[],
“type”=>“image”,
“name”=>“glance”},
{“endpoints”=>
[{“adminURL”=>“http://ctrl-os-a1:8777”,
“region”=>“Dunsfold-Alpha-1”,
“internalURL”=>“http://ctrl-os-a1:8777”,
“id”=>“75445c7dc92642e281e67c4d2dad95f7”,
“publicURL”=>“https://os-a1.xyzprovider.com:7060”}],
“endpoints_links”=>[],
“type”=>“metering”,
“name”=>“ceilometer”},
{“endpoints”=>
[{“adminURL”=>
“http://ctrl-os-a1:8776/v1/52354e72e8c94647ae746cff76b7e0be”,
“region”=>“Dunsfold-Alpha-1”,
“internalURL”=>
“http://ctrl-os-a1:8776/v1/52354e72e8c94647ae746cff76b7e0be”,
“id”=>“2bc804a222ee45f295be7666aa13ed81”,
“publicURL”=>
“https://os-a1.xyzprovider.com:7040/v1/52354e72e8c94647ae746cff76b7e0be”}],
“endpoints_links”=>[],
“type”=>“volume”,
“name”=>“cinder”},
{“endpoints”=>
[{“adminURL”=>“http://ctrl-os-a1-keystone:35357/v2.0”,
“region”=>“Dunsfold-Alpha-1”,
“internalURL”=>“http://ctrl-os-a1-keystone:5000/v2.0”,
“id”=>“8af2e9bde92941d79b3a12c9e0fe61a0”,
“publicURL”=>“https://os-a1.xyzprovider.com:7001/v2.0”}],
“endpoints_links”=>[],
“type”=>“identity”,
“name”=>“keystone”}],
“user”=>
{“username”=>"",
“roles_links”=>[],
“id”=>“c8fab46239b8439ba041ecfa10c4058e”,
“roles”=>[{“name”=>“member”}, {“name”=>“admin”}],
“name”=>""},
“metadata”=>
{“is_admin”=>0,
“roles”=>
[“3058088dc0bc45d5a097bfb8bd491c7a”,
“9b3b3065f6934c4face9f62e35dd74a3”]}}}}
Thanks,
Gis