Ask Your Question
1

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 http://127.0.0.1:10695/v2/meters. 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/test_bin.py", line 112, in test_v2
    response, content = self.get_response('v2/meters')
  File "/opt/stack/ceilometer/tests/test_bin.py", 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/__init__.py", 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/__init__.py", 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/__init__.py", line 1252, in _conn_request
    conn.connect()
  File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/httplib2/__init__.py", line 901, in connect
    self.sock.connect((self.host, self.port) + sa[2:])
  File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/httplib2/socks.py", line 424, in connect
    self.__negotiatehttp(destpair[0], destpair[1])
  File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/httplib2/socks.py", line 390, in __negotiatehttp
    raise HTTPError((statuscode, statusline[2]))
HTTPError: (503, 'Service Unavailable')
-------------------- >> begin captured stdout << ---------------------
url: http://127.0.0.1:10695/v2/meters

--------------------- >> 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,127.0.0.1", and I've configured dconf's ignore-hosts to this:

['localhost', '127.0.0.0/8', '10.0.2.15', '.hpcloud.net', '.hpcloud.ms', '127.0.0.1']

Any ideas on why this connection is failing appreciated.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

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

fifieldt gravatar image

Hi,

I think you are more likely to get attention from Ceilometer developers about failing test cases by submitting a bug at their launchpad site.

http://bugs.launchpad.net/ceilometer/ <-- search the bug list first to see if anyone else is having the issue

https://bugs.launchpad.net/ceilometer/+filebug <-- file the bug here

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

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

Seen: 518 times

Last updated: May 15 '13