Contrail webui not working over haproxy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenContrail |
New
|
Undecided
|
asbalaji |
Bug Description
We have an Openstack deployment running the webui on zone nodes. We cluster all components using HAproxy. For the webui, HAproxy returns a HTTP 502. The error log shows
Apr 21 17:52:28 z0.b0.cloudy haproxy[11222]: 11.2.3.4:62644 [21/Apr/
According to http://
S: the TCP session was unexpectedly aborted by the server, or the server explicitly refused it.
H: the proxy was waiting for complete, valid response HEADERS from the server (HTTP only).
contrail-webui.log has an entry , which has same timestamp
"2014-04-
Changed in opencontrail: | |
assignee: | nobody → Rahul (rahuls) |
Changed in opencontrail: | |
assignee: | Rahul (rahuls) → asbalaji (asbalaji) |
tags: | added: ui |
tags: | added: provisioning |
Hi,
Please find the way to configure HA Proxy for Contrail Web UI.
When a user wants Node1 to proxy Node2 through say port# 19090, follow the following steps.
Assumption:
1) Node1 & Node2 up and running Contrail VNC, specifically webserver.
Steps to configure HA Proxy for Contrail Web UI haproxy. cfg
1) In Node1 (which is suppose to act as proxy), Add following lines at the end of /etc/haproxy/
frontend unsecured *:8080
default_ backend www_backend
timeout client 86400000
backend www_backend
mode http
balance roundrobin
cookie SERVERID insert indirect nocache
timeout server 30000
timeout connect 4000
server server1 Node1:19090 cookie server1 weight 1 maxconn 1024 check
server server2 Node2:19090 cookie server2 weight 1 maxconn 1024 check
Refer http:// haproxy. 1wt.eu/ download/ 1.3/doc/ configuration. txt for more details.
2) In Node1 & Node2, Edit following lines in /etc/contrail/ config. global. js
1) Set insecure access to true insecure_ access = true;
config.
2) Set HTTP Port to 19090
config.http_port = '19090';
3) Restart HA proxy service in Node1
$> service haproxy restart
4) Restart WebServer on both Node1, Node2
$> service supervisor-webui restart
5) Launch Web UI Node1:8080 - Launches Web UI for as figured out by applying weightage (WebUI with information from Node2 in the example given above).
http://
Let me know if you need more details.