From 0db9ba5ce33d6ed132d09d8398555f7c540dc7b3 Mon Sep 17 00:00:00 2001 From: Émilien Macchi Date: Fri, 26 Apr 2013 01:20:05 +0200 Subject: Wrong proxy port in nova.conf for Spice proxy If we look at nova/cmd/spicehtml5proxy.py, we use 6082 port for Spice proxy. In nova.conf, the default port for html5proxy_base_url is 6080 which fails console service. Fix bug #1172957 Change-Id: I52ca37f76e7a6abd085b079ae42e7914cb619ad5 --- doc/api_samples/os-consoles/get-spice-console-post-resp.xml | 2 +- etc/nova/nova.conf.sample | 4 ++-- nova/spice/__init__.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/api_samples/os-consoles/get-spice-console-post-resp.xml b/doc/api_samples/os-consoles/get-spice-console-post-resp.xml index acba8b1f0..113b982af 100644 --- a/doc/api_samples/os-consoles/get-spice-console-post-resp.xml +++ b/doc/api_samples/os-consoles/get-spice-console-post-resp.xml @@ -1,5 +1,5 @@ spice-html5 - http://example.com:6080/spice_auto.html?token=f9906a48-b71e-4f18-baca-c987da3ebdb3 + http://example.com:6082/spice_auto.html?token=f9906a48-b71e-4f18-baca-c987da3ebdb3 diff --git a/etc/nova/nova.conf.sample b/etc/nova/nova.conf.sample index ed989ce86..4d8fabd00 100644 --- a/etc/nova/nova.conf.sample +++ b/etc/nova/nova.conf.sample @@ -2854,8 +2854,8 @@ # # location of spice html5 console proxy, in the form -# "http://127.0.0.1:6080/spice_auto.html" (string value) -#html5proxy_base_url=http://127.0.0.1:6080/spice_auto.html +# "http://127.0.0.1:6082/spice_auto.html" (string value) +#html5proxy_base_url=http://127.0.0.1:6082/spice_auto.html # IP address on which instance spice server should listen # (string value) diff --git a/nova/spice/__init__.py b/nova/spice/__init__.py index aa283d5cc..2f0d12289 100644 --- a/nova/spice/__init__.py +++ b/nova/spice/__init__.py @@ -22,9 +22,9 @@ from oslo.config import cfg spice_opts = [ cfg.StrOpt('html5proxy_base_url', - default='http://127.0.0.1:6080/spice_auto.html', + default='http://127.0.0.1:6082/spice_auto.html', help='location of spice html5 console proxy, in the form ' - '"http://127.0.0.1:6080/spice_auto.html"'), + '"http://127.0.0.1:6082/spice_auto.html"'), cfg.StrOpt('server_listen', default='127.0.0.1', help='IP address on which instance spice server should listen'), -- cgit