smlite-ansible:contrail-controller and contrail-lb containers cant be run on the same host
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R4.0 |
Invalid
|
High
|
Abhay Joshi | |||
Trunk |
Invalid
|
High
|
Abhay Joshi |
Bug Description
For load balancer , front-end and back-end ports are same for contrail-api and other services.
If haproxy is started, the contrail api/contrail-
error from contrail-api
-------
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
main(args_str, VncApiServer(
File "/usr/lib/
server=
File "/usr/lib/
server.run(app)
File "/usr/lib/
server.
File "/usr/lib/
self.start()
File "/usr/lib/
self.
File "/usr/lib/
StreamServe
File "/usr/lib/
self.socket = self.get_
File "/usr/lib/
return _tcp_listener(
File "/usr/lib/
sock.
File "<string>", line 1, in listen
error: [Errno 98] Address already in use
haproxy.cfg
------------
frontend stats
bind *:5937
mode http
stats enable
stats uri /
stats auth haproxy:haproxy
frontend contrail-api
bind *:8082
default_backend contrail-
timeout client 3m
backend contrail-
option nolinger
timeout server 3m
balance roundrobin
server 192.168.1.3 192.168.1.3:8082 check inter 2000 rise 2 fall 3
server 192.168.1.4 192.168.1.4:8082 check inter 2000 rise 2 fall 3
server 192.168.1.2 192.168.1.2:8082 check inter 2000 rise 2 fall 3
It is not supported to run lb container on server that is running controller.