From 8c5486993dec738a3e83746af2d62bdba648c999 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Fri, 11 May 2018 16:12:17 +0530 Subject: [PATCH] Bump noVNC to 1.0.0 This introduces a breaking change in the URLs used to access the console [1]. This is updated in both the documentation and linked nova change. [1] https://github.com/novnc/noVNC/commit/83391ffc Change-Id: I14a0be0034f4a76ab37eb90325967500c3bf1ff9 Depends-On: I9a50a111ff4911f4364a1b24d646095c72af3d2c Related-bug: #1682020 --- doc/source/guides/multinode-lab.rst | 2 +- lib/nova | 11 ++++++++++- stackrc | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/doc/source/guides/multinode-lab.rst b/doc/source/guides/multinode-lab.rst index 7978cd86ea..5f5bb846eb 100644 --- a/doc/source/guides/multinode-lab.rst +++ b/doc/source/guides/multinode-lab.rst @@ -177,7 +177,7 @@ machines, create a ``local.conf`` with: GLANCE_HOSTPORT=$SERVICE_HOST:9292 ENABLED_SERVICES=n-cpu,q-agt,n-api-meta,c-vol,placement-client NOVA_VNC_ENABLED=True - NOVNCPROXY_URL="http://$SERVICE_HOST:6080/vnc_auto.html" + NOVNCPROXY_URL="http://$SERVICE_HOST:6080/vnc_lite.html" VNCSERVER_LISTEN=$HOST_IP VNCSERVER_PROXYCLIENT_ADDRESS=$VNCSERVER_LISTEN diff --git a/lib/nova b/lib/nova index 033ebf3697..c892c96fce 100644 --- a/lib/nova +++ b/lib/nova @@ -614,7 +614,16 @@ function configure_console_compute { # All nova-compute workers need to know the vnc configuration options # These settings don't hurt anything if n-xvnc and n-novnc are disabled if is_service_enabled n-cpu; then - NOVNCPROXY_URL=${NOVNCPROXY_URL:-"http://$SERVICE_HOST:6080/vnc_auto.html"} + if [ "$NOVNC_FROM_PACKAGE" == "True" ]; then + # Use the old URL when installing novnc packages. + NOVNCPROXY_URL=${NOVNCPROXY_URL:-"http://$SERVICE_HOST:6080/vnc_auto.html"} + elif vercmp ${NOVNC_BRANCH} "<" "1.0.0"; then + # Use the old URL when installing older novnc source. + NOVNCPROXY_URL=${NOVNCPROXY_URL:-"http://$SERVICE_HOST:6080/vnc_auto.html"} + else + # Use the new URL when building >=v1.0.0 from source. + NOVNCPROXY_URL=${NOVNCPROXY_URL:-"http://$SERVICE_HOST:6080/vnc_lite.html"} + fi iniset $NOVA_CPU_CONF vnc novncproxy_base_url "$NOVNCPROXY_URL" XVPVNCPROXY_URL=${XVPVNCPROXY_URL:-"http://$SERVICE_HOST:6081/console"} iniset $NOVA_CPU_CONF vnc xvpvncproxy_base_url "$XVPVNCPROXY_URL" diff --git a/stackrc b/stackrc index 53868f3d9d..2705c327fa 100644 --- a/stackrc +++ b/stackrc @@ -608,7 +608,7 @@ IRONIC_PYTHON_AGENT_BRANCH=${IRONIC_PYTHON_AGENT_BRANCH:-$TARGET_BRANCH} # a websockets/html5 or flash powered VNC console for vm instances NOVNC_REPO=${NOVNC_REPO:-https://github.com/novnc/noVNC.git} -NOVNC_BRANCH=${NOVNC_BRANCH:-stable/v0.6} +NOVNC_BRANCH=${NOVNC_BRANCH:-v1.0.0} # a websockets/html5 or flash powered SPICE console for vm instances SPICE_REPO=${SPICE_REPO:-http://anongit.freedesktop.org/git/spice/spice-html5.git}