Tempest test fails because Blazar API is not listening at 0.0.0.0

Bug #1336856 reported by Pablo Andres Fuente
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Blazar
Fix Released
High
Pablo Andres Fuente

Bug Description

Our Tempest tests are failing because Blazar API is not listening at 0.0.0.0.
When blazarclient is trying to reach blazar api is using 127.0.01 as address, but we configured blazar api to listen the host IP as default.

This is an extract of n-api log:
2014-07-01 19:56:26.929 ERROR nova.api.openstack [req-180b3feb-8494-4ab5-b8f5-8c23d7f6e2a3 TestResourceReservationScenario-2128965324 TestResourceReservationScenario-1084513394] Caught error: HTTPConnectionPool(host='127.0.0.1', port=1234): Max retries exceeded with url: /v1/leases (Caused by <class 'socket.error'>: [Errno 111] ECONNREFUSED)
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack Traceback (most recent call last):
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack File "/opt/stack/new/nova/nova/api/openstack/__init__.py", line 125, in __call__
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack return req.get_response(self.application)
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1320, in send
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack application, catch_exc_info=False)
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1284, in call_application
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack app_iter = application(self.environ, start_response)
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack return resp(environ, start_response)
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack File "/opt/stack/new/python-keystoneclient/keystoneclient/middleware/auth_token.py", line 659, in __call__
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack return self.app(env, start_response)
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack return resp(environ, start_response)
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack return resp(environ, start_response)
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack response = self.app(environ, start_response)
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack return resp(environ, start_response)
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack resp = self.call_func(req, *args, **self.kwargs)
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack return self.func(req, *args, **kwargs)
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack File "/opt/stack/new/nova/nova/api/openstack/wsgi.py", line 906, in __call__
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack content_type, body, accept)
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack File "/opt/stack/new/nova/nova/api/openstack/wsgi.py", line 998, in _process_stack
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack request, action_args)
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack File "/opt/stack/new/nova/nova/api/openstack/wsgi.py", line 876, in post_process_extensions
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack **action_args)
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack File "/opt/stack/new/blazar-nova/climatenova/api/extensions/reservation.py", line 105, in create
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack lease = blazar_cl.lease.create(**lease_params)
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack File "/opt/stack/new/python-blazarclient/climateclient/v1/leases.py", line 30, in create
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack return self._create('/leases', values, 'lease')
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack File "/opt/stack/new/python-blazarclient/climateclient/base.py", line 67, in _create
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack resp, body = self.request(url, 'POST', body=body)
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack File "/opt/stack/new/python-blazarclient/climateclient/base.py", line 120, in request
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack resp = requests.request(method, self.climate_url + url, **kwargs)
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/requests/api.py", line 44, in request
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack return session.request(method=method, url=url, **kwargs)
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 383, in request
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack resp = self.send(prep, **send_kwargs)
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 486, in send
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack r = adapter.send(request, **kwargs)
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 378, in send
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack raise ConnectionError(e)
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=1234): Max retries exceeded with url: /v1/leases (Caused by <class 'socket.error'>: [Errno 111] ECONNREFUSED)
2014-07-01 19:56:26.929 20418 TRACE nova.api.openstack

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to blazar (master)

Fix proposed to branch: master
Review: https://review.openstack.org/104264

Changed in blazar:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to blazar (master)

Reviewed: https://review.openstack.org/104264
Committed: https://git.openstack.org/cgit/openstack/blazar/commit/?id=1e120b67f016235ce6175d324e4e67b4200224dd
Submitter: Jenkins
Branch: master

commit 1e120b67f016235ce6175d324e4e67b4200224dd
Author: Pablo Andres Fuente <email address hidden>
Date: Wed Jul 2 13:40:02 2014 -0300

    Set 0.0.0.0 as default host for Blazar API

    This patch sets 0.0.0.0 as default value for the host config option.
    This is the aproach used for other OpenStack projects like Heat and
    Nova.

    Change-Id: Ib356c1c09bee1d6fad7c28ec607166cc0b4db06e
    Closes-Bug: #1336856

Changed in blazar:
status: In Progress → Fix Released
Pierre Riteau (priteau)
Changed in blazar:
milestone: none → 0.2.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.