Ask Your Question
1

ceilometer behind HAproxy loadbalancer

asked 2014-05-19 03:42:02 -0500

pawankkamboj gravatar image

Guys, anyone can pleasse help me to setup ceilometer behind a HAproxy, I tried that but horizon not able to communicate with ceilometer API. It is working fine without loadbalancer. Here config of HA listen ceilometer_api_cluster bind <vip>:8777 balance source option tcpka option httpchk option tcplog server controller1 10.0.0.101:8777 check inter 2000 rise 2 fall 5 server controller2 10.0.0.102:8777 check inter 2000 rise 2 fall 5

Here is exception in horizon.log

2014-05-19 08:38:20,205 11187 ERROR django.request Internal Server Error: /dashboard/admin/metering/ Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response response = callback(request, callback_args, *callback_kwargs) File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 38, in dec return view_func(request, args, *kwargs) File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 86, in dec return view_func(request, args, *kwargs) File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 54, in dec return view_func(request, args, *kwargs) File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 38, in dec return view_func(request, args, *kwargs)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-05 17:51:28 -0500

alop gravatar image

Don't use httpck, rather use tcp-check, ceilometer will always respond with 401 Unauthorized if a token is not sent. Since httpck only passes if the response is 20x or 30x, it'll never work. Using tcp-check, it marks it up if the daemon is listening

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-05-19 03:42:02 -0500

Seen: 493 times

Last updated: May 19 '14