aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2014-11-05 12:11:39 -0500
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-11-05 12:11:39 -0500
commitff7384602b97d6bf2e4588773fa9014d08a1db50 (patch)
tree0006289731a1d5d50f5ba6b32f72e5d60115ea3c
parent6ee6f37a3de3cc07707d13d8a793ef6bdaaf3d7b (diff)
downloadmeta-cloud-services-ff7384602b97d6bf2e4588773fa9014d08a1db50.tar.gz
meta-cloud-services-ff7384602b97d6bf2e4588773fa9014d08a1db50.tar.bz2
meta-cloud-services-ff7384602b97d6bf2e4588773fa9014d08a1db50.zip
nova: allow empty schemes at python 2.7.3
The upstream project is concerned with a bug in empty schemes with 2.7.3. But since Yocto is 2.7.3 and we get an empty scheme via websockify, no VNC consoles are possible. Rather than upreving python (big change), we aren't being hit by the referenced bug, so we simply make sure that the condition can never be true. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r--meta-openstack/recipes-devtools/python/python-nova/websocketproxy-allow-empty-schemes-at-python-2.7.3.patch34
-rw-r--r--meta-openstack/recipes-devtools/python/python-nova_git.bb1
2 files changed, 35 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-nova/websocketproxy-allow-empty-schemes-at-python-2.7.3.patch b/meta-openstack/recipes-devtools/python/python-nova/websocketproxy-allow-empty-schemes-at-python-2.7.3.patch
new file mode 100644
index 0000000..e7ff9cb
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-nova/websocketproxy-allow-empty-schemes-at-python-2.7.3.patch
@@ -0,0 +1,34 @@
+From 0d727a196e2fe1e13956e2417b7a325be858b2db Mon Sep 17 00:00:00 2001
+From: Bruce Ashfield <bruce.ashfield@windriver.com>
+Date: Wed, 5 Nov 2014 11:21:48 -0500
+Subject: [PATCH] websocketproxy: allow empty schemes at python 2.7.3
+
+The upstream project is concerned with a bug in empty schemes with
+2.7.3. But since Yocto is 2.7.3 and we get an empty scheme via websockify,
+no VNC consoles are possible.
+
+Rather than upreving python (big change), we aren't being hit by the
+referenced bug, so we simply make sure that the condition can never
+be true.
+
+Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
+---
+ nova/console/websocketproxy.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/nova/console/websocketproxy.py b/nova/console/websocketproxy.py
+index 4d32ff4328bb..85e3ab43293f 100644
+--- a/nova/console/websocketproxy.py
++++ b/nova/console/websocketproxy.py
+@@ -45,7 +45,7 @@ class NovaProxyRequestHandlerBase(object):
+ # The nova expected behavior is to have token
+ # passed to the method GET of the request
+ parse = urlparse.urlparse(self.path)
+- if parse.scheme not in ('http', 'https'):
++ if parse.scheme not in ('http', 'https') and False:
+ # From a bug in urlparse in Python < 2.7.4 we cannot support
+ # special schemes (cf: http://bugs.python.org/issue9374)
+ if sys.version_info < (2, 7, 4):
+--
+1.9.1
+
diff --git a/meta-openstack/recipes-devtools/python/python-nova_git.bb b/meta-openstack/recipes-devtools/python/python-nova_git.bb
index a950bf8..d68725b 100644
--- a/meta-openstack/recipes-devtools/python/python-nova_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-nova_git.bb
@@ -17,6 +17,7 @@ SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=master \
file://nova-fix-location-to-doc-directory.patch \
file://nova-fix-location-to-plugin-directory.patch \
file://neutron-api-set-default-binding-vnic_type.patch \
+ file://websocketproxy-allow-empty-schemes-at-python-2.7.3.patch \
"
SRC_URI += "file://nova-all \