<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<style>
font{
line-height: 1.7;
}
</style>
<div style="font-family:"微软雅黑"; font-size: 14px; color:#000000; line-height:1.7;">
<div>
<div><span><br>
</span></div>
<div>
<div style="line-height: 23.8px;">I add "<span style="line-height: 23.8px;">http-check expect status 401</span><span style="line-height: 1.7;">" in haproxy.cfg , also hava this problem</span></div>
<div style="line-height: 23.8px;">then i found some errors in <span style="background-color: rgb(255, 252, 68);"> /var/log/nova/nova-placement-api.log</span></div>
</div>
<div><span><br>
</span></div>
<div><span>
<div>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</div>
<div>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</div>
<div>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</div>
<div>2017-09-22 02:19:26.061 4915 WARNING keystonemiddleware.auth_token [req-df1c4a98-71a8-43fc-a41f-1d558f476e8a - - - - -] Authorization failed for token</div>
<div>2017-09-22 03:32:48.338 4925 WARNING keystonemiddleware.auth_token [req-d8dbf3a9-d76e-4da6-96d1-2260332c9b9f - - - - -] Authorization failed for token</div>
<div>2017-09-22 04:46:11.247 4916 WARNING keystonemiddleware.auth_token [req-4915eb27-4c68-4bdc-ab74-81279fc7405c - - - - -] Authorization failed for token</div>
<div>2017-09-22 05:59:33.653 4915 WARNING keystonemiddleware.auth_token [req-df1c4a98-71a8-43fc-a41f-1d558f476e8a - - - - -] Authorization failed for token</div>
<div><br>
</div>
<div>the keystone conf problem?</div>
</span></div>
<div><span><br>
</span></div>
<div id="ntes-pcmail-signature" style="font-family:'微软雅黑'"><style type="text/css">
a#ntes-pcmail-signature-default:hover {
text-decoration: underline;
color: #199cff;
cursor: pointer;
}
a#ntes-pcmail-signature-default:active {
text-decoration: underline;
color: #246fce;
cursor: pointer;
}
</style></div>
<br>
</div>
<div class="J-reply" style="background-color:#f2f2f2;color:black;padding-top:6px;padding-bottom:6px;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;margin-top:45px;margin-bottom:20px;font-family:'微软雅黑';">
<div style="font-size:14px;line-height:1.5;word-break:break-all;margin-left:10px;margin-right:10px">
在<span class="mail-date">2017年9月21日 18:21</span>,<a class="mail-to" style="text-decoration:none;color:#2a83f2;" href="mailto:j.harbott@x-ion.de">Jens Harbott<j.harbott@x-ion.de></a> 写道:
</div>
</div>
<blockquote id="ntes-pcmail-quote" style="margin: 0; padding: 0; font-size: 14px; font-family: '微软雅黑';">
2017-09-21 11:32 GMT+02:00 谭 明宵 <tanmingxiao@outlook.com>: <br>
> <br>
> I had HA setup for placement api to work on high availability enviornment by <br>
> using HAproxy on three controller nodes <br>
> <br>
> vim /etc/haproxy/haproxy.cfg <br>
> <br>
> listen nova_placement_cluster <br>
> bind 0.0.0.0:8778 <br>
> http-request del-header X-Forwarded-Proto <br>
> server controller01 192.168.105.10:58778 check inter 2000 rise 2 <br>
> fall 5 <br>
> server controller02 192.168.105.11:58778 check inter 2000 rise 2 <br>
> fall 5 <br>
> server controller03 192.168.105.12:58778 check inter 2000 rise 2 <br>
> fall 5 <br>
> <br>
> but nova-compute.log has some errors like: <br>
> <br>
> 2017-09-21 17:08:59.690 14155 WARNING nova.scheduler.client.report <br>
> [req-6fefb3b1-fe0b-418e-b76a-2749613a6364 - - - - -] Placement API service <br>
> is not responding. <br>
> 2017-09-21 17:09:59.697 14155 WARNING nova.scheduler.client.report <br>
> [req-6fefb3b1-fe0b-418e-b76a-2749613a6364 - - - - -] Placement API service <br>
> is not responding. <br>
> 2017-09-21 17:10:59.729 14155 WARNING nova.scheduler.client.report <br>
> [req-6fefb3b1-fe0b-418e-b76a-2749613a6364 - - - - -] Placement API service <br>
> is not responding. <br>
> <br>
> what is the correct configuration for placement api in haproxy? <br>
<br>
Placement API responds with 401 to haproxy's probes, add something <br>
like "http-check expect status 401" in order to make haproxy see the <br>
backend as active. <br>
</blockquote>
<!--😀--></div>
</body>
</html>