Add missing database updates for cluster events

Steps to reproduce issue:
1) Create cluster
2) Try to get cluster via client

Sometimes, received cluster would contains outdated info
about provision progress. This patch close this issue

Partially implements blueprint event-log

Change-Id: Ie731b4d678e7b3f440a568a9fbd3878c2e76b7fc
This commit is contained in:
Vitaly Gridnev 2015-02-17 17:01:34 +03:00
parent c0cc1fe808
commit c62eeaf9a9

View File

@ -38,6 +38,7 @@ def add_successful_event(instance):
'instance_name': instance.instance_name,
'event_info': None,
})
update_provisioning_steps(cluster_id)
def add_fail_event(instance, exception):
@ -53,6 +54,7 @@ def add_fail_event(instance, exception):
'instance_name': instance.instance_name,
'event_info': event_info,
})
update_provisioning_steps(cluster_id)
def add_provisioning_step(cluster_id, step_name, total):