Ask Your Question

Ceilometer BinApiTestCase fails with 503 error connecting to localhost

asked 2013-05-01 10:22:43 -0500

epende gravatar image

updated 2013-05-01 10:23:24 -0500

I apologize if this isn't the forum for Ceilometer questions.

I'm running the ceilometer test cases on Ubuntu 12.10. Most of the tests pass, but test_bin.BinApiTestCase fails when trying to connect to Here's the command I'm running from /opt/stack/ceilometer:

tox -e py27,pep8

Here is the failure message:

ERROR: test_v2 (tests.test_bin.BinApiTestCase)
Traceback (most recent call last):
  File "/opt/stack/ceilometer/tests/", line 112, in test_v2
    response, content = self.get_response('v2/meters')
  File "/opt/stack/ceilometer/tests/", line 99, in get_response
    r, c = self.http.request(url, 'GET')
  File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/httplib2/", line 1570, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/httplib2/", line 1317, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/httplib2/", line 1252, in _conn_request
  File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/httplib2/", line 901, in connect
    self.sock.connect((, self.port) + sa[2:])
  File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/httplib2/", line 424, in connect
    self.__negotiatehttp(destpair[0], destpair[1])
  File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/httplib2/", line 390, in __negotiatehttp
    raise HTTPError((statuscode, statusline[2]))
HTTPError: (503, 'Service Unavailable')
-------------------- >> begin captured stdout << ---------------------

--------------------- >> end captured stdout << ----------------------

I added the stdout to show the URL that is failing. I'm able to connect to the URL using lynx on the console.

A few things to note: I'm behind a proxy server, but I have configured httpproxy and httpsproxy to refer to the proxy. I've also configured no_proxy="localhost,", and I've configured dconf's ignore-hosts to this:

['localhost', '', '', '', '', '']

Any ideas on why this connection is failing appreciated.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-05-15 04:03:55 -0500

fifieldt gravatar image


I think you are more likely to get attention from Ceilometer developers about failing test cases by submitting a bug at their launchpad site. <-- search the bug list first to see if anyone else is having the issue <-- file the bug here

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2013-05-01 10:22:43 -0500

Seen: 614 times

Last updated: May 15 '13