From 067f0a2d2971ab64ee6fa6f3689fc1158471af18 Mon Sep 17 00:00:00 2001 From: Rick Harris Date: Tue, 28 Feb 2012 23:14:01 +0000 Subject: Initialize progress to 0 for build and resize. Fixes bug 942956 Change-Id: I65031bcd61b49bcae9bd886d7a9f070cba5caad0 --- nova/compute/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nova/compute/api.py b/nova/compute/api.py index 0aee6dc2f..168e9659c 100644 --- a/nova/compute/api.py +++ b/nova/compute/api.py @@ -335,6 +335,7 @@ class API(base.Base): 'architecture': architecture, 'vm_mode': vm_mode, 'root_device_name': root_device_name, + 'progress': 0, 'auto_disk_config': auto_disk_config} LOG.debug(_("Going to run %s instances...") % num_instances) @@ -1320,6 +1321,7 @@ class API(base.Base): instance, vm_state=vm_states.RESIZING, task_state=task_states.RESIZE_PREP, + progress=0, **kwargs) request_spec = { -- cgit