diff --git a/tripleo_common/_stack_update.py b/tripleo_common/_stack_update.py index c458438f5..752ce174b 100644 --- a/tripleo_common/_stack_update.py +++ b/tripleo_common/_stack_update.py @@ -160,9 +160,11 @@ class StackUpdateManager(object): state = 'on_breakpoint' elif ev.resource_status_reason == hook_clear_reason: state = 'in_progress' - elif ev.resource_status == 'UPDATE_IN_PROGRESS': + elif ev.resource_status in ('CREATE_IN_PROGRESS', + 'UPDATE_IN_PROGRESS'): state = 'in_progress' - elif ev.resource_status == 'UPDATE_COMPLETE': + elif ev.resource_status in ('CREATE_COMPLETE', + 'UPDATE_COMPLETE'): state = 'completed' resources[state][res.physical_resource_id] = res diff --git a/tripleo_common/tests/test_stack_update.py b/tripleo_common/tests/test_stack_update.py index 232e67b75..cd1ee9470 100644 --- a/tripleo_common/tests/test_stack_update.py +++ b/tripleo_common/tests/test_stack_update.py @@ -53,14 +53,9 @@ class StackUpdateManagerTest(base.TestCase): mock.MagicMock( event_time='2015-03-25T09:15:04Z', resource_name='Controller-0', - resource_status='CREATE_IN_PROGRESS', + resource_status='UPDATE_IN_PROGRESS', resource_status_reason='UPDATE paused until Hook ' - 'pre-update is cleared'), - mock.MagicMock( - event_time='2015-03-25T09:15:02Z', - resource_name='Controller-1', - resource_status='CREATE_COMPLETE', - resource_status_reason=''), + 'pre-update is cleared') ] else: return [