Browse code

Merge "Bump noVNC to 1.0.0"

Zuul authored on 2019/03/17 23:52:44
Showing 3 changed files
... ...
@@ -177,7 +177,7 @@ machines, create a ``local.conf`` with:
177 177
     GLANCE_HOSTPORT=$SERVICE_HOST:9292
178 178
     ENABLED_SERVICES=n-cpu,q-agt,n-api-meta,c-vol,placement-client
179 179
     NOVA_VNC_ENABLED=True
180
-    NOVNCPROXY_URL="http://$SERVICE_HOST:6080/vnc_auto.html"
180
+    NOVNCPROXY_URL="http://$SERVICE_HOST:6080/vnc_lite.html"
181 181
     VNCSERVER_LISTEN=$HOST_IP
182 182
     VNCSERVER_PROXYCLIENT_ADDRESS=$VNCSERVER_LISTEN
183 183
 
... ...
@@ -614,7 +614,16 @@ function configure_console_compute {
614 614
     # All nova-compute workers need to know the vnc configuration options
615 615
     # These settings don't hurt anything if n-xvnc and n-novnc are disabled
616 616
     if is_service_enabled n-cpu; then
617
-        NOVNCPROXY_URL=${NOVNCPROXY_URL:-"http://$SERVICE_HOST:6080/vnc_auto.html"}
617
+        if [ "$NOVNC_FROM_PACKAGE" == "True" ]; then
618
+            # Use the old URL when installing novnc packages.
619
+            NOVNCPROXY_URL=${NOVNCPROXY_URL:-"http://$SERVICE_HOST:6080/vnc_auto.html"}
620
+        elif vercmp ${NOVNC_BRANCH} "<" "1.0.0"; then
621
+             # Use the old URL when installing older novnc source.
622
+            NOVNCPROXY_URL=${NOVNCPROXY_URL:-"http://$SERVICE_HOST:6080/vnc_auto.html"}
623
+        else
624
+            # Use the new URL when building >=v1.0.0 from source.
625
+            NOVNCPROXY_URL=${NOVNCPROXY_URL:-"http://$SERVICE_HOST:6080/vnc_lite.html"}
626
+        fi
618 627
         iniset $NOVA_CPU_CONF vnc novncproxy_base_url "$NOVNCPROXY_URL"
619 628
         XVPVNCPROXY_URL=${XVPVNCPROXY_URL:-"http://$SERVICE_HOST:6081/console"}
620 629
         iniset $NOVA_CPU_CONF vnc xvpvncproxy_base_url "$XVPVNCPROXY_URL"
... ...
@@ -607,7 +607,7 @@ IRONIC_PYTHON_AGENT_BRANCH=${IRONIC_PYTHON_AGENT_BRANCH:-$TARGET_BRANCH}
607 607
 
608 608
 # a websockets/html5 or flash powered VNC console for vm instances
609 609
 NOVNC_REPO=${NOVNC_REPO:-https://github.com/novnc/noVNC.git}
610
-NOVNC_BRANCH=${NOVNC_BRANCH:-stable/v0.6}
610
+NOVNC_BRANCH=${NOVNC_BRANCH:-v1.0.0}
611 611
 
612 612
 # a websockets/html5 or flash powered SPICE console for vm instances
613 613
 SPICE_REPO=${SPICE_REPO:-http://anongit.freedesktop.org/git/spice/spice-html5.git}