<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style>
</head>
<body>
<div><span></span><br>
</div>
<div>I had HA setup for placement api to work on high availability enviornment by using HAproxy on three controller nodes</div>
<div><br>
</div>
<div><span style="font-family: "" microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?="">vim /etc/haproxy/haproxy.cfg</span></div>
<div><span style="font-family: "" microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?=""><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 fall 5<br>
        server controller02 192.168.105.11:58778 check inter 2000 rise 2 fall 5<br>
        server controller03 192.168.105.12:58778 check inter 2000 rise 2 fall 5</span></div>
<div><span style="font-family: "" microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?=""><br>
</span></div>
<div><span style="font-family: "" microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?="">but nova-compute.log has some errors like:</span></div>
<div><span style="font-family: "" microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?=""><br>
</span></div>
<div><span style="font-family: "" microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?=""><span style="font-family: "" microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?="">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.<br>
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.<br>
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.</span></span></div>
<div><span style="font-family: "" microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?=""><span style="font-family: "" microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?=""><br>
</span></span></div>
<div><span style="font-family: "" microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?=""><span style="font-family: "" microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?="">what
 is the correct </span></span><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">configuration for placement api in haproxy?</span></div>
<div><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;"><br>
</span></div>
<div><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">thx</span></div>
<div><br>
</div>
</body>
</html>