summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRick Harris <rconradharris@gmail.com>2012-02-07 23:34:48 +0000
committerRick Harris <rconradharris@gmail.com>2012-02-07 23:34:48 +0000
commit4cad8add2085d8c2ca2ddcb4acb8d3662d609dee (patch)
tree913859978d654f003da481300c0567feefeec441 /plugins
parent16882ad36b630fe8cc6c80a51cebf1a7f8f7cbf9 (diff)
downloadnova-4cad8add2085d8c2ca2ddcb4acb8d3662d609dee.tar.gz
nova-4cad8add2085d8c2ca2ddcb4acb8d3662d609dee.tar.xz
nova-4cad8add2085d8c2ca2ddcb4acb8d3662d609dee.zip
Send image properties to Glance
Fixes bug 928549 Change-Id: Ie89e9c49c1fe25ed4acd680dd8c2c5e84173cdcd
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/xenserver/xenapi/etc/xapi.d/plugins/glance4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/xenserver/xenapi/etc/xapi.d/plugins/glance b/plugins/xenserver/xenapi/etc/xapi.d/plugins/glance
index 9f9e2686b..e53e4d5eb 100755
--- a/plugins/xenserver/xenapi/etc/xapi.d/plugins/glance
+++ b/plugins/xenserver/xenapi/etc/xapi.d/plugins/glance
@@ -343,6 +343,10 @@ def _upload_tarball(staging_path, image_id, glance_host, glance_port,
if auth_token:
headers['x-auth-token'] = auth_token
+ for key, value in properties.iteritems():
+ header_key = "x-image-meta-property-%s" % key.replace('_', '-')
+ headers[header_key] = str(value)
+
for header, value in headers.iteritems():
conn.putheader(header, value)
conn.endheaders()