How to properly setup HAproxy novnc
Need some help in properly configuring novnc to work with HAproxy.
If I try launching vm through console receive page can not be displayed
.
If I go directly to public URL (novnc) of controller with instance information it works.
I'm pretty sure my configuration is wrong, just not sure how to correct it.
Side note: If I update novncproxy_base_url on compute node to the public IP of one controller, I am able to access novnc URL directly, but still not through console.
Have 2 HAproxy server with a vip on internal network
Haproxy1 10.1.1.1 (internal) 130.245.1.1 (external)
Haproxy2 10.1.1.2 (internal) 130.245.1.2 (external)
VIP 10.1.1.3
Controllers
Controller1 10.1.1.4 (internal) 130.245.1.4 (external)
Controller2 10.1.1.5 (internal) 130.245.1.5 (external)
Compute node : 10.1.1.6
no vnc CONFIG INFORMATION:
Controllers Nova.conf
my_ip = 10.1.1.4 (each controller respectively controller 1 = 10.1.1.4 controller 2 = 10.1.1.5)
vncserver_listen = 10.1.1.4 (each controller respectively controller 1 = 10.1.1.4 controller 2 = 10.1.1.5)
vncserver_proxyclient_address = 10.1.1.3 (vip)
Compute nova.conf
my_ip = 10.1.1.6
vnc_enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = 10.1.1.6
novncproxy_base_url = http:/10.1.1.3:6080/vnc_auto.html (VIP)
Haproxy:
listen novnc
bind 10.1.1.3:6080
balance source
option tcpka
maxconn 10000
server controller1 130.245.1.4:6080 check inter 2000 rise 2 fall 5
server controller2 130.245.1.5:6080 check inter 2000 rise 2 fall 5
Updated controller nova.conf same issue. If I make the novncproxy_base_url on ccompute to public side of controller, I can get to it if I plug in URL directly not through condole. Also noticed something weird in Browser logs, when it errors out theURL shows as : http://HAPROXYIP/novncproxy_base_url
EX: URL: http://130.245.1.1/130.245.1.4:6080/v...
We have this configured in our setup when you deploy with HA. I don't remember all of the exact settings. You could take a look at some of the puppet manifests or deploy an HA on vms to pull the haproxy config we use and the settings in nova.conf.
Actually after updating vncserver_listen = 0.0.0.0 and updating novncproxy_base_url = from 10.1.1.4 (internal) to 130.245.1.4 (external), I am now getting further. console loading with error : Failed to connect to server (code: 1006)
What are you actually listening on regarding that port?