From 95015ad42a1f6355af095a6dca2ecd39ae2cc735 Mon Sep 17 00:00:00 2001 From: Brian Waldon Date: Mon, 30 Jul 2012 13:12:18 -0700 Subject: Rewrite image code to use python-glanceclient This patch rewrites the Glance-specific code within Nova to use the new python-glanceclient library. The old client is deprecated in Folsom and should not be used in conjunction with python-glanceclient. This removes the dependency on installing 'glance' through pip. Implements bp integrate-python-glanceclient Fixes bug 880964 Change-Id: Ifb9e75593abd36a2d1c08773d02f192e5e5627fc --- nova/virt/vmwareapi/read_write_util.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'nova/virt') diff --git a/nova/virt/vmwareapi/read_write_util.py b/nova/virt/vmwareapi/read_write_util.py index 765b94cc6..b0d7cef0b 100644 --- a/nova/virt/vmwareapi/read_write_util.py +++ b/nova/virt/vmwareapi/read_write_util.py @@ -27,8 +27,6 @@ import urllib import urllib2 import urlparse -from glance import client - from nova import flags from nova.openstack.common import log as logging @@ -38,10 +36,7 @@ FLAGS = flags.FLAGS USER_AGENT = "OpenStack-ESX-Adapter" -try: - READ_CHUNKSIZE = client.BaseClient.CHUNKSIZE -except AttributeError: - READ_CHUNKSIZE = 65536 +READ_CHUNKSIZE = 65536 class GlanceFileRead(object): -- cgit