Ask Your Question

epende's profile - activity

2014-05-15 01:38:20 -0500 received badge  Taxonomist
2013-11-20 07:14:12 -0500 received badge  Famous Question (source)
2013-09-23 08:17:54 -0500 received badge  Famous Question (source)
2013-09-20 03:31:43 -0500 received badge  Notable Question (source)
2013-07-24 20:55:26 -0500 received badge  Notable Question (source)
2013-07-14 22:26:43 -0500 received badge  Popular Question (source)
2013-05-28 09:33:47 -0500 received badge  Popular Question (source)
2013-05-15 10:05:59 -0500 commented answer How to change Ceilometer reporting SqlAlchemy password

Thanks for the reply. That may work, but would require storing the password in plain text which wouldn't fly around here. I'll give it a try and see if it can get me going in the meantime, thanks.

2013-05-13 09:53:41 -0500 asked a question How to change Ceilometer reporting SqlAlchemy password

Hi, I'm trying to use the SqlAlchemy driver and have found that the password the driver attempts to use is set to ''. This is the password for the driver used by the reporting API, not collection.

I assume this is a default set somewhere, but I can't find it. Have looked through the config and setup files, and tried to find where the CFG object is created.

The reason I know this, is because when the MySQL password is set to something other than '', the driver encounters an MySQL authentication error. When I set the database password (in MySQL for root user) to empty, the driver can authenticate.

My localrc has MYSQL_PASSWORD set to 'password', but the driver can't authenticate when MySQL uses that password.

Anyone know where to set this password for the driver?

Thank you, Eric

2013-05-02 16:15:30 -0500 received badge  Student (source)
2013-05-01 10:23:24 -0500 received badge  Editor (source)
2013-05-01 10:22:43 -0500 asked a question 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.