I add "http-check expect status 401" in haproxy.cfg , also hava this problem then i found some errors in /var/log/nova/nova-placement-api.log
2017-09-21 22:39:18.056 4916 INFO nova.api.openstack.placement.requestlog [req-d5dd1f7d-c64d-4d6b-9d1d-db2df298921c - - - - -] 192.168.105.10 "GET /allocations/6927201f-2d5b-4885-af95-34fb337336e9" status: 200 len: 139 microversion: 1.0 2017-09-21 23:52:40.929 4925 INFO nova.api.openstack.placement.requestlog [req-d8dbf3a9-d76e-4da6-96d1-2260332c9b9f - - - - -] 192.168.105.10 "PUT /allocations/60e7bf45-058c-4ee9-afd1-693e1d02776b" status: 204 len: 0 microversion: 1.0 2017-09-22 01:06:03.775 4916 INFO nova.api.openstack.placement.requestlog [req-4915eb27-4c68-4bdc-ab74-81279fc7405c - - - - -] 192.168.105.10 "GET /allocations/c24e7371-0704-48cd-bb6f-120b2d8a995f" status: 200 len: 139 microversion: 1.0 2017-09-22 02:19:26.061 4915 WARNING keystonemiddleware.auth_token [req-df1c4a98-71a8-43fc-a41f-1d558f476e8a - - - - -] Authorization failed for token 2017-09-22 03:32:48.338 4925 WARNING keystonemiddleware.auth_token [req-d8dbf3a9-d76e-4da6-96d1-2260332c9b9f - - - - -] Authorization failed for token 2017-09-22 04:46:11.247 4916 WARNING keystonemiddleware.auth_token [req-4915eb27-4c68-4bdc-ab74-81279fc7405c - - - - -] Authorization failed for token 2017-09-22 05:59:33.653 4915 WARNING keystonemiddleware.auth_token [req-df1c4a98-71a8-43fc-a41f-1d558f476e8a - - - - -] Authorization failed for token the keystone conf problem? 在2017年9月21日 18:21,Jens Harbott<j.harb...@x-ion.de><mailto:j.harb...@x-ion.de> 写道: 2017-09-21 11:32 GMT+02:00 谭 明宵 <tanmingx...@outlook.com>: > > I had HA setup for placement api to work on high availability enviornment by > using HAproxy on three controller nodes > > vim /etc/haproxy/haproxy.cfg > > listen nova_placement_cluster > bind 0.0.0.0:8778 > http-request del-header X-Forwarded-Proto > server controller01 192.168.105.10:58778 check inter 2000 rise 2 > fall 5 > server controller02 192.168.105.11:58778 check inter 2000 rise 2 > fall 5 > server controller03 192.168.105.12:58778 check inter 2000 rise 2 > fall 5 > > but nova-compute.log has some errors like: > > 2017-09-21 17:08:59.690 14155 WARNING nova.scheduler.client.report > [req-6fefb3b1-fe0b-418e-b76a-2749613a6364 - - - - -] Placement API service > is not responding. > 2017-09-21 17:09:59.697 14155 WARNING nova.scheduler.client.report > [req-6fefb3b1-fe0b-418e-b76a-2749613a6364 - - - - -] Placement API service > is not responding. > 2017-09-21 17:10:59.729 14155 WARNING nova.scheduler.client.report > [req-6fefb3b1-fe0b-418e-b76a-2749613a6364 - - - - -] Placement API service > is not responding. > > what is the correct configuration for placement api in haproxy? Placement API responds with 401 to haproxy's probes, add something like "http-check expect status 401" in order to make haproxy see the backend as active.
_______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack