Skip to content

Commit 4e07fdc

Browse files
Add and document $NOVA_VNC_ENABLED for forcing VNC on
This allows multinode setups to function correctly without enabling the unneeded n-novnc and n-xvnc services on pure compute nodes. Change-Id: Ie02734bb598d27560cf5d674c9e1d9b8dca3801f Closes-Bug: 1342155
1 parent 58f8f42 commit 4e07fdc

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

docs/source/guides/multinode-lab.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,13 @@ <h3>Configure Compute Nodes</h3>
184184
MYSQL_HOST=192.168.42.11
185185
RABBIT_HOST=192.168.42.11
186186
GLANCE_HOSTPORT=192.168.42.11:9292
187-
ENABLED_SERVICES=n-cpu,n-net,n-api,c-sch,c-api,c-vol</pre>
187+
ENABLED_SERVICES=n-cpu,n-net,n-api,c-sch,c-api,c-vol
188+
NOVA_VNC_ENABLED=True
189+
NOVNCPROXY_URL="http://192.168.42.11:6080/vnc_auto.html"
190+
VNCSERVER_LISTEN=$HOST_IP
191+
VNCSERVER_PROXYCLIENT_ADDRESS=$VNCSERVER_LISTEN
192+
</pre>
193+
188194
<!-- save for vlan
189195
FLAT_INTERFACE=eth0.926
190196
-->

lib/nova

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ GUEST_INTERFACE_DEFAULT=$(ip link \
8888
| grep ^[ep] \
8989
| head -1)
9090

91+
# $NOVA_VNC_ENABLED can be used to forcibly enable vnc configuration.
92+
# In multi-node setups allows compute hosts to not run n-novnc.
93+
NOVA_VNC_ENABLED=$(trueorfalse False $NOVA_VNC_ENABLED)
94+
9195
# Get hypervisor configuration
9296
# ----------------------------
9397

@@ -492,7 +496,7 @@ function create_nova_conf {
492496
iniset $NOVA_CONF spice html5proxy_base_url "$SPICEHTML5PROXY_URL"
493497
fi
494498

495-
if is_service_enabled n-novnc || is_service_enabled n-xvnc; then
499+
if is_service_enabled n-novnc || is_service_enabled n-xvnc || [ "$NOVA_VNC_ENABLED" != False ]; then
496500
# Address on which instance vncservers will listen on compute hosts.
497501
# For multi-host, this should be the management ip of the compute host.
498502
VNCSERVER_LISTEN=${VNCSERVER_LISTEN=127.0.0.1}

0 commit comments

Comments
 (0)