Ask Your Question
0

ceilometer meter-list error: HTTPBadGateway (HTTP 502)

asked 2014-02-05 02:37:16 -0500

harry gravatar image

updated 2014-02-05 05:14:09 -0500

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!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-02-05 19:34:54 -0500

harry gravatar image

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

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

1 follower

Stats

Asked: 2014-02-05 02:37:16 -0500

Seen: 562 times

Last updated: Feb 05 '14