Ask Your Question

harry's profile - activity

2017-10-26 03:39:07 -0500 received badge  Teacher (source)
2014-03-19 21:29:48 -0500 received badge  Notable Question (source)
2014-03-19 21:29:48 -0500 received badge  Famous Question (source)
2014-02-09 19:22:36 -0500 commented answer How to get latest openstack code using devstack?

you can set the branch of src-code in your localrc, such as CEILOMETER_BRANCH=master. So that stack.sh will reload src-code on the master branch for you. Of course, you can verify it at /opt/stack/ceilometer by git branch.

2014-02-09 19:17:11 -0500 received badge  Popular Question (source)
2014-02-09 19:13:41 -0500 answered a question Why I can not get date of network.outgoing.bytes in ceilometer

How about using "nova boot" to launch a VM, and check the results again?

2014-02-06 07:05:55 -0500 answered a question How to get latest openstack code using devstack?

I guess you have checked the http://devstack.org/, right? Type cmd as follows.

git clone https://github.com/openstack-dev/devstack.git
cd devstack && ./stack.sh

For more details, you should read the stack.sh itself.

2014-02-05 19:34:54 -0500 answered a question ceilometer meter-list error: HTTPBadGateway (HTTP 502)

the problem solved by "unset http_proxy" in the cmd line.

2014-02-05 02:39:32 -0500 received badge  Editor (source)
2014-02-05 02:37:16 -0500 asked a question ceilometer meter-list error: HTTPBadGateway (HTTP 502)

I want modify Ceilometer to add some more features. I am using DevStack on Ubuntu12.04 based on stable/havana. My localrc is as follows.

ENABLED_SERVICES+=,ceilometer-acompute,ceilometer-acentral,ceilometer-collector,ceilometer-api

I can login to Horizon via Firefox, and "keystone service-list" also works. But when I type "ceilometer -d meter-list", it claims

stack@peer:~/havana/devstack$ ceilometer -d meter-list 
WARNING (http:172) Request returned failure status.
Traceback (most recent call last):
  File "/usr/local/bin/ceilometer", line 10, in <module>
    sys.exit(main())
  File "/opt/stack/python-ceilometerclient/ceilometerclient/shell.py", line 335, in main
    CeilometerShell().main(args)
  File "/opt/stack/python-ceilometerclient/ceilometerclient/shell.py", line 289, in main
    args.func(client, args)
  File "/opt/stack/python-ceilometerclient/ceilometerclient/v2/shell.py", line 144, in do_meter_list
    meters = cc.meters.list(q=options.cli_to_array(args.query))
  File "/opt/stack/python-ceilometerclient/ceilometerclient/v2/meters.py", line 31, in list
    return self._list(options.build_url(path, q))
  File "/opt/stack/python-ceilometerclient/ceilometerclient/common/base.py", line 58, in _list
    resp, body = self.api.json_request('GET', url)
  File "/opt/stack/python-ceilometerclient/ceilometerclient/common/http.py", line 190, in json_request
    resp, body_iter = self._http_request(url, method, **kwargs)
  File "/opt/stack/python-ceilometerclient/ceilometerclient/common/http.py", line 173, in _http_request
    raise exc.from_response(resp, ''.join(body_iter))
ceilometerclient.exc.HTTPBadGateway: HTTPBadGateway (HTTP 502)

Anyone can help? or give me some hint? Thanks!

2014-02-05 02:26:09 -0500 answered a question How to setup ceilmeter to use mongodb?

add "CEILOMETER_BACKEND=mongo" to your localrc when you use DevStack