I am getting an error in ceilometer

asked 2016-12-12 15:43:14 -0600

mkhan gravatar image

updated 2016-12-13 07:28:54 -0600

rbowen gravatar image

I facing an issue when I have run the command ceilometer meter-list authorization required (401) on debug I am getting this error:

DEBUG (client) RESP BODY: Authentication required

DEBUG (client) Request returned failure status: 401
Traceback (most recent call last):
  File "/usr/bin/ceilometer", line 10, in <module>
  File "/usr/lib/python2.7/site-packages/ceilometerclient/shell.py", line 275, in main
  File "/usr/lib/python2.7/site-packages/ceilometerclient/shell.py", line 224, in main
    args.func(client, args)
  File "/usr/lib/python2.7/site-packages/ceilometerclient/v2/shell.py", line 198, in do_meter_list
    meters = cc.meters.list(q=options.cli_to_array(args.query))
  File "/usr/lib/python2.7/site-packages/ceilometerclient/v2/meters.py", line 30, in list
    return self._list(options.build_url(path, q))
  File "/usr/lib/python2.7/site-packages/ceilometerclient/common/base.py", line 59, in _list
    resp = self.api.get(url)
  File "/usr/lib/python2.7/site-packages/ceilometerclient/openstack/common/apiclient/client.py", line 334, in get
    return self.client_request("GET", url, **kwargs)
  File "/usr/lib/python2.7/site-packages/ceilometerclient/openstack/common/apiclient/client.py", line 328, in client_request
    self, method, url, **kwargs)
  File "/usr/lib/python2.7/site-packages/ceilometerclient/openstack/common/apiclient/client.py", line 244, in client_request
    method, self.concat_url(endpoint, url), **kwargs)
  File "/usr/lib/python2.7/site-packages/ceilometerclient/openstack/common/apiclient/client.py", line 184, in request
    raise exceptions.from_response(resp, method, url)
ceilometerclient.openstack.common.apiclient.exceptions.Unauthorized: Unauthorized (HTTP 401)
edit retag flag offensive close merge delete


This indicates lack of credentials. I.e. you don't provide proper user name and password.

Bernd Bausch gravatar imageBernd Bausch ( 2016-12-12 19:15:23 -0600 )edit

Did you authenticate before attempting this command?

vageli gravatar imagevageli ( 2016-12-13 07:31:00 -0600 )edit

yes I did authenticate to run this command. Every other components working fine.would you please guide me to authenticate. Thanks, Khan

mkhan gravatar imagemkhan ( 2016-12-13 08:26:23 -0600 )edit