Ask Your Question
1

Ceilometer a2ensite crashes Apache2

asked 2016-11-14 01:44:34 -0600

RajivChaudhary gravatar image

Hi , I am new to openstack community. I have installed the openstack services on my ubuntu 16.04 using newton manual from openstack install guide . All the services are up and running except for ceilometer and aodh. Ceilometer and aodh give me meter-list and alarm list output properly but otherwise show some problem like following:

When I enable ceilometer on Apache2 using a2ensite command , Apache2 crashes . However when I disable ceilometer , all services are back to normal working .

Also when I try to run curl -i -X GET "Localhost:8777" I get error : "The request you have made requires authentication , code:401 , title: Unauthorized"

How do I solve this error?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2016-11-14 21:03:10 -0600

zero gravatar image

you can start up ceilometer-api by typing 'ceilometer-api' and checkout the log first.

if you want to using curl, you need get keystone token first ,you can use 'openstack token issue' cmd.

then curl something like below

curl -H "Content-Type:application/json" -X POST http://127.0.0.1:8041/v1/resource/gen... -d '{"id":"6cbe2a06-aaaa-42ee-ba1d-9998ba5b60d8","project_id":"6ed09694-aaaa-4af0-866e-33cecb5cffba","user_id":"665d3c51-aaaa-40d7-b4a96-26ee22a244bc"}'

edit flag offensive delete link more

Comments

Hi Thanks for the response , tried the curl option again with your mentioned values after getting a new token issued from keystone . But unfortunately no success , gives the same error : The request you made requires authentication ,code=401 , title=UnAuthorized"

RajivChaudhary gravatar imageRajivChaudhary ( 2016-11-21 06:18:47 -0600 )edit
0

answered 2016-11-15 04:38:24 -0600

yprokule gravatar image

@RajivChaudhary - iirc since Newton ceilometer-api is running under mod_wsgi.

Could U please check config files for ceilometer/aodh from /etc/httpd/ dir ?

Also it worth checking apache's logs as well ans SELinux related logs.

As @Cow mention U can try to do a direct curl query to the ceilometer's API:

TOKEN=$( openstack token issue -f value -c id )
curl -XGET -H "X-Auth-Token: $TOKEN" http://127.0.0.1:8777
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: 2016-11-14 01:44:34 -0600

Seen: 97 times

Last updated: Nov 15 '16