summaryrefslogtreecommitdiffstats
path: root/nova/virt/xenapi/vm_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/virt/xenapi/vm_utils.py')
-rw-r--r--nova/virt/xenapi/vm_utils.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/nova/virt/xenapi/vm_utils.py b/nova/virt/xenapi/vm_utils.py
index 744770528..97650b248 100644
--- a/nova/virt/xenapi/vm_utils.py
+++ b/nova/virt/xenapi/vm_utils.py
@@ -649,7 +649,7 @@ def upload_image(context, session, instance, vdi_uuids, image_id):
" ID %(image_id)s"), locals(), instance=instance)
glance_api_servers = glance.get_api_servers()
- glance_host, glance_port = glance_api_servers.next()
+ glance_host, glance_port, glance_use_ssl = glance_api_servers.next()
# TODO(sirp): this inherit-image-property code should probably go in
# nova/compute/manager so it can be shared across hypervisors
@@ -669,6 +669,7 @@ def upload_image(context, session, instance, vdi_uuids, image_id):
'image_id': image_id,
'glance_host': glance_host,
'glance_port': glance_port,
+ 'glance_use_ssl': glance_use_ssl,
'sr_path': get_sr_path(session),
'auth_token': getattr(context, 'auth_token', None),
'properties': properties}
@@ -1011,9 +1012,10 @@ def _fetch_vhd_image(context, session, instance, image_id):
glance_api_servers = glance.get_api_servers()
def pick_glance(params):
- glance_host, glance_port = glance_api_servers.next()
+ glance_host, glance_port, glance_use_ssl = glance_api_servers.next()
params['glance_host'] = glance_host
params['glance_port'] = glance_port
+ params['glance_use_ssl'] = glance_use_ssl
plugin_name = 'glance'
vdis = _fetch_using_dom0_plugin_with_retry(