Bug 1377277

Summary: Refresh failed openstack cloud provider SSL, Unable to obtain a collection: 'stacks' in a service: 'orchestration' through API
Product: Red Hat CloudForms Management Engine Reporter: Ronnie Rasouli <rrasouli>
Component: ProvidersAssignee: Tzu-Mainn Chen <tzumainn>
Status: CLOSED NOTABUG QA Contact: Ola Pavlenko <opavlenk>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 5.6.0CC: jfrey, jhardy, obarenbo
Target Milestone: GA   
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-19 12:05:16 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:
Attachments:
Description Flags
last 1000 lines of evm.log none

Description Ronnie Rasouli 2016-09-19 11:21:06 UTC
Created attachment 1202451 [details]
last 1000 lines of evm.log

Description of problem:

Refresh failure on cloud provider SSL. 

Error - 7 Minutes Ago
Unable to obtain a collection: 'stacks' in a service: 'orchestration' through API. Please, fix your OpenStack installation...

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

How reproducible:


Steps to Reproduce:
1.login to cfme ui
2. add rhos cloud provider SSL
3. go to configuration -> Refresh Relationships Provider...

Actual results:
Refresh fails, nodes details does not get updated, tenants ...

Expected results:
nodes appears, tenants 

Additional info:
[----] I, [2016-09-19T07:05:06.423691 #15538:609988]  INFO -- : MIQ(MiqServer#monitor_loop) Server Monitoring Complete - Timings: {:server_dequeue=>0.0027964115142822266, :worker_monitor=>2.6624269485473633, :worker_dequeue=>0.01798272
132873535, :total_time=>2.6834871768951416}
[----] E, [2016-09-19T07:05:10.072799 #29927:609988] ERROR -- : <Fog> excon.error     #<Excon::Error::GatewayTimeout: Expected(200) <=> Actual(504 Gateway Timeout)
excon.error.response
  :body          => "<html><body><h1>504 Gateway Time-out</h1>\nThe server didn't respond in time.\n</body></html>\n"
  :cookies       => [
  ]
  :headers       => {
    "Cache-Control" => "no-cache"
    "Connection"    => "close"
    "Content-Type"  => "text/html"
  }
  :host          => "10.0.0.101"
  :local_address => "10.0.0.51"
  :local_port    => 54090
  :path          => "/v1/75e56ed3717848d5bb012273a49a445c/stacks"
  :port          => 13004
  :reason_phrase => "Gateway Time-out"
  :remote_ip     => "10.0.0.101"
  :status        => 504
  :status_line   => "HTTP/1.0 504 Gateway Time-out\r\n"
>

[----] E, [2016-09-19T07:05:10.072995 #29927:609988] ERROR -- : MIQ(OpenstackHandle::OrchestrationDelegate#handled_list) Unable to obtain collection: 'stacks' in service: 'orchestration' using project scope: 'admin' in provider: '10.0.0.101'. Message=Expected(200) <=> Actual(504 Gateway Timeout)
excon.error.response
  :body          => "<html><body><h1>504 Gateway Time-out</h1>\nThe server didn't respond in time.\n</body></html>\n"
  :cookies       => [
  ]
  :headers       => {
    "Cache-Control" => "no-cache"
    "Connection"    => "close"
    "Content-Type"  => "text/html"
  }
  :host          => "10.0.0.101"
  :local_address => "10.0.0.51"
  :local_port    => 54090
  :path          => "/v1/75e56ed3717848d5bb012273a49a445c/stacks"
  :port          => 13004
  :reason_phrase => "Gateway Time-out"
  :remote_ip     => "10.0.0.101"
  :status        => 504
  :status_line   => "HTTP/1.0 504 Gateway Time-out\r\n"

[----] E, [2016-09-19T07:05:10.073050 #29927:609988] ERROR -- : MIQ(OpenstackHandle::OrchestrationDelegate#handled_list) /opt/rh/cfme-gemset/gems/excon-0.52.0/lib/excon/middlewares/expects.rb:7:in `response_call'
/opt/rh/cfme-gemset/gems/excon-0.52.0/lib/excon/middlewares/response_parser.rb:9:in `response_call'
/opt/rh/cfme-gemset/gems/excon-0.52.0/lib/excon/connection.rb:388:in `response'
/opt/rh/cfme-gemset/gems/excon-0.52.0/lib/excon/connection.rb:252:in `request'
/opt/rh/cfme-gemset/gems/fog-core-1.42.0/lib/fog/core/connection.rb:81:in `request'
/opt/rh/cfme-gemset/gems/fog-openstack-0.1.11/lib/fog/openstack/core.rb:81:in `request'
/opt/rh/cfme-gemset/gems/fog-openstack-0.1.11/lib/fog/orchestration/openstack/requests/list_stack_data.rb:6:in `list_stack_data'
: