Ceilometer BinApiTestCase fails with 503 error connecting to localhost
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.