summaryrefslogtreecommitdiffstats
path: root/nova/compute
diff options
context:
space:
mode:
authorMike Scherbakov <mihgen@gmail.com>2011-06-02 17:16:06 +0000
committerTarmac <>2011-06-02 17:16:06 +0000
commit17de1520f03a2ecad607876e348fb8ec6d60608e (patch)
treed98cbcf574c57ebf7a9c464ddedd5a262a3f7dc8 /nova/compute
parent78093e8101d1981fc1fbafc963023bc70ad6b3b6 (diff)
parentb39b0e66f16d49890189c63fba528734ef476068 (diff)
Bugfix #780784. KeyError when creating custom image.
Diffstat (limited to 'nova/compute')
-rw-r--r--nova/compute/api.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py
index 263e44bab..7122ebe67 100644
--- a/nova/compute/api.py
+++ b/nova/compute/api.py
@@ -515,9 +515,10 @@ class API(base.Base):
:returns: A dict containing image metadata
"""
properties = {'instance_id': str(instance_id),
- 'user_id': str(context.user_id)}
+ 'user_id': str(context.user_id),
+ 'image_state': 'creating'}
sent_meta = {'name': name, 'is_public': False,
- 'properties': properties}
+ 'status': 'creating', 'properties': properties}
recv_meta = self.image_service.create(context, sent_meta)
params = {'image_id': recv_meta['id']}
self._cast_compute_message('snapshot_instance', context, instance_id,