Ask Your Question
0

ceilometer client unable to authenticate

asked 2015-12-13 19:16:35 -0500

tgehrke gravatar image

updated 2015-12-14 21:38:14 -0500

Bipin gravatar image

This is the same problem as reported in question on ceilometer meter-list - The service catalog is empty. I followed the suggestions to

OS_PROJECT_DOMAIN_ID=default 
OS_IMAGE_API_VERSION=2 
OS_USER_DOMAIN_ID=default
OS_PROJECT_NAME=admin 
OS_PASSWORD=xxxxxxx 
OS_AUTH_URL=http://vctrl01:35357 
OS_USERNAME=admin 
OS_TENANT_NAME=admin
OS_VOLUME_API_VERSION=2

ceilometer --version 2.1.0

I can get a token for the nova-client nova list:

GET /? POST /auth/tokens? GET /tokens/77c66441c89c4612bb74978b77db2753?

But it returns empty for the ceilometer-client ceilometer meter-list:

GET /? POST /auth/tokens? GET /? POST /auth/tokens?
edit retag flag offensive close merge delete

Comments

Please provide this information keystone service-list | grep ceilometer

Bipin gravatar imageBipin ( 2015-12-14 21:41:41 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-12-15 12:30:24 -0500

tgehrke gravatar image

updated 2015-12-17 19:12:28 -0500

Problem solved! The service endpoint had a typeo in the hostname. (vcrtrl01 -- vctrl01 )


_socketmodule.so->getaddrinfo("vctrl01", "5000", 0x7fff93e97430, 0x7fff93e97418) = 0 _socketmodule.so->getaddrinfo("vctrl01", "5000", 0x7fff93e97ef0, 0x7fff93e97ed8) = 0 _socketmodule.so->getaddrinfo("vcrtrl01", "8777", 0x7fff93e999b0, 0x7fff93e99998) = -2 ('Connection aborted.', gaierror(-2, 'Name or service not known'))

Made changes in database and celiometer meter-list works fine.

edit flag offensive delete link more

Comments

I hope you are using mongoDB as the ceilometer backend ? Please check the status of mongoDB server, its running or not. also grep mongodb /etc/ceilometer/ceilometer.conf . If you are using any SQLAlchemy-supported DB like MySQL make sure you run ceilometer-dbsync

Bipin gravatar imageBipin ( 2015-12-15 21:31:47 -0500 )edit

grep mongodb /etc/ceilometer/ceilometer.conf

connection = mongodb://ceilometer:xxxxxx@vctrl01:27017/ceilometer

tgehrke gravatar imagetgehrke ( 2015-12-16 12:18:13 -0500 )edit

show dbs

admin 0.031GB

ceilometer 2.999GB

local 0.031GB

show users

    "_id" : "ceilometer.ceilometer",
    "user" : "ceilometer",
    "db" : "ceilometer",
    "roles" : "readWrite",
tgehrke gravatar imagetgehrke ( 2015-12-16 13:07:29 -0500 )edit

show collections

 alarm
 alarm_history
 event
 meter
 resource
 system.indexes

MongoDB looks OK

tgehrke gravatar imagetgehrke ( 2015-12-16 13:21:33 -0500 )edit

ceilometer meter-list -l 100

Bipin gravatar imageBipin ( 2015-12-16 21:54:50 -0500 )edit

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

Stats

Asked: 2015-12-13 19:16:35 -0500

Seen: 224 times

Last updated: Dec 17 '15