smlite-ansible:contrail-controller and contrail-lb containers cant be run on the same host

Bug #1690108 reported by Sandip Dey
6
This bug affects 1 person
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-analytics fail to start with error as below

error from contrail-api
------------------------

Traceback (most recent call last):
  File "/usr/bin/contrail-api", line 9, in <module>
    load_entry_point('vnc-cfg-api-server==0.1dev', 'console_scripts', 'contrail-api')()
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 3545, in server_main
    main(args_str, VncApiServer(args_str))
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 3529, in main
    server=get_bottle_server(server._args.max_requests))
  File "/usr/lib/python2.7/dist-packages/bottle.py", line 3017, in run
    server.run(app)
  File "/usr/lib/python2.7/dist-packages/bottle.py", line 2808, in run
    server.serve_forever()
  File "/usr/lib/python2.7/dist-packages/gevent/baseserver.py", line 282, in serve_forever
    self.start()
  File "/usr/lib/python2.7/dist-packages/gevent/baseserver.py", line 234, in start
    self.init_socket()
  File "/usr/lib/python2.7/dist-packages/gevent/pywsgi.py", line 639, in init_socket
    StreamServer.init_socket(self)
  File "/usr/lib/python2.7/dist-packages/gevent/server.py", line 78, in init_socket
    self.socket = self.get_listener(self.address, self.backlog, self.family)
  File "/usr/lib/python2.7/dist-packages/gevent/server.py", line 89, in get_listener
    return _tcp_listener(address, backlog=backlog, reuse_addr=self.reuse_addr, family=family)
  File "/usr/lib/python2.7/dist-packages/gevent/server.py", line 160, in _tcp_listener
    sock.listen(backlog)
  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-api-backend
    timeout client 3m

backend contrail-api-backend
    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

Jeba Paulaiyan (jebap)
tags: added: blocker
Revision history for this message
Abhay Joshi (abhayj) wrote :

It is not supported to run lb container on server that is running controller.

Revision history for this message
Jeba Paulaiyan (jebap) wrote :

Notes for RN:
=============
In case of Contrail HA deployment, the lb container and contrail-controller container should not be run in same host.

tags: added: releasenote
removed: blocker
Revision history for this message
Sandip Dey (sandipd) wrote :

lb cannot be run on contrail-analytics host as well.

It needs a separate host altogether.

Revision history for this message
Nitish Krishna Kaveri (nitishk) wrote :

This is by design

information type: Proprietary → Public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.