Latest Devstack install for Ceilometer returns error 406 Not Acceptable

Asked by Louis Kang

I recently installed Ceilometer with Devstack and all api commands return the same error 406 Not Acceptable.

Here is the log

root@cloud:~# ceilometer --os-username ceilometer --os-password password --os-tenant-name service --os-auth-url "http://192.168.0.34:35357/v2.0" -d user-list
INFO (connectionpool:191) Starting new HTTP connection (1): 192.168.0.34
DEBUG (connectionpool:283) "POST /v2.0/tokens HTTP/1.1" 200 6783
DEBUG (http:109) curl -i -X GET -H 'X-Auth-Token: MIIL5AYJKoZIhvcNAQcCoIIL1TCCC9ECAQExCTAHBgUrDgMCGjCCCr0GCSqGSIb3DQEHAaCCCq4EggqqeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wMy0xMlQwNzozNzoxMy40MDExMjYiLCAiZXhwaXJlcyI6ICIyMDEzLTAzLTEzVDA3OjM3OjEzWiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogbnVsbCwgImVuYWJsZWQiOiB0cnVlLCAiaWQiOiAiZWE5ZWU0N2Y4YmFlNGU3OThkYzRmMTNkZTI3N2ExYjYiLCAibmFtZSI6ICJzZXJ2aWNlIn19LCAic2VydmljZUNhdGFsb2ciOiBbeyJlbmRwb2ludHMiOiBbeyJhZG1pblVSTCI6ICJodHRwOi8vMTkyLjE2OC4wLjM0Ojg3NzQvdjIvZWE5ZWU0N2Y4YmFlNGU3OThkYzRmMTNkZTI3N2ExYjYiLCAicmVnaW9uIjogIlJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vMTkyLjE2OC4wLjM0Ojg3NzQvdjIvZWE5ZWU0N2Y4YmFlNGU3OThkYzRmMTNkZTI3N2ExYjYiLCAiaWQiOiAiMGIxNDIwOWE4NjZjNDg4ODhlYzFmMWQ0Njc5NmZiNzYiLCAicHVibGljVVJMIjogImh0dHA6Ly8xOTIuMTY4LjAuMzQ6ODc3NC92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4G6UVchk8MpbNF77YizMnDG1ff+JBlhXN-vyDiDyfG8sBfcvpYvBsBnGmNA4MSMSsbqHj95' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'User-Agent: python-ceilometerclient' http://127.0.0.1:8777/v1/users
DEBUG (http:119)
HTTP/1.0 406 Not Acceptable
date: Tue, 12 Mar 2013 07:37:13 GMT
content-length: 147
content-type: application/json
server: WSGIServer/0.1 Python/2.7.3

{"error_message": "406 Not Acceptable\n\nThe server could not comply with the request since it is either malformed or otherwise incorrect.\n\n "}

WARNING (http:160) Request returned failure status.
HTTPException (HTTP N/A)

Any ideas?

Question information

Language:
English Edit question
Status:
Answered
For:
Ceilometer Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Lianhao Lu (lianhao-lu) said :
#1

Any output of ceilometer-api?

Revision history for this message
Louis Kang (louiskang) said :
#2

Nothing in the api output file

Revision history for this message
Jason (zzs) said :
#3

Please paste the localrc of you devstack without credentials.

Revision history for this message
Louis Kang (louiskang) said :
#4

Here is my localrc

ADMIN_PASSWORD=password
MYSQL_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password

enable_service ceilometer-acompute, ceilometer-acentral, ceilometer-collector, ceilometer-api

LOGFILE=$DEST/logs/stack.sh.log

LOGDAYS=2

SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5

SWIFT_REPLICAS=1
SWIFT_DATA_DIR=$DEST/data

Revision history for this message
Jason (zzs) said :
#5

Please use curl directly, it should work.

Can you help with this problem?

Provide an answer of your own, or ask Louis Kang for more information if necessary.

To post a message you must log in.