diff options
| author | Dan Prince <dan.prince@rackspace.com> | 2011-06-03 18:35:55 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-06-03 18:35:55 +0000 |
| commit | 1b7ee03f531fa71ce9afc956e93fa6483616d3c0 (patch) | |
| tree | f02e4abb99e24c668cef7273370952995c1f6136 /plugins | |
| parent | b4ab637e63bdf77ce20a8efcf8920738885e18b9 (diff) | |
| parent | f521426039e8a9cc5dccc2c7e7e1797cfe778d7e (diff) | |
| download | nova-1b7ee03f531fa71ce9afc956e93fa6483616d3c0.tar.gz nova-1b7ee03f531fa71ce9afc956e93fa6483616d3c0.tar.xz nova-1b7ee03f531fa71ce9afc956e93fa6483616d3c0.zip | |
Updated to use the '/v1/images' URL when uploading images to glance in the Xen glance plugin. Fixes the issue where snapshots fail to upload correctly.
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/xenserver/xenapi/etc/xapi.d/plugins/glance | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/xenserver/xenapi/etc/xapi.d/plugins/glance b/plugins/xenserver/xenapi/etc/xapi.d/plugins/glance index 0c00d168b..46031ebe8 100644 --- a/plugins/xenserver/xenapi/etc/xapi.d/plugins/glance +++ b/plugins/xenserver/xenapi/etc/xapi.d/plugins/glance @@ -244,7 +244,7 @@ def _upload_tarball(staging_path, image_id, glance_host, glance_port, os_type): conn = httplib.HTTPConnection(glance_host, glance_port) # NOTE(sirp): httplib under python2.4 won't accept a file-like object # to request - conn.putrequest('PUT', '/images/%s' % image_id) + conn.putrequest('PUT', '/v1/images/%s' % image_id) # NOTE(sirp): There is some confusion around OVF. Here's a summary of # where we currently stand: |
