heat/heat
Steven Hardy d5793c08e0 Generate stack events for stack state transitions
Currently, the event-list output is very resource-centric, despite
being scoped to the stack from an API path perspective.

This, combined with the fact that the stack updated_at timestamp
is only updated after a succesful update (ref bug #1193269) makes
it impossible to derive the time when an update started via any API.

This is a problem when trying to use the new hook/breakpoint API,
because it's necessary to poll for all events since the most recent
update started, disregarding any stale hook events from previous
updates (which may have failed or timed out without the hooks getting
cleared).

To work around this, add an event for each stack state transition,
such that you can detect the transition to UPDATE_IN_PROGRESS,
then use that event as a marker to get post-update-started events.

Without this (or some other way to determine when the stack update
started), the hooks pre-update functionality landed for kilo is
not really usable (particularly mechanically via scripts).

Change-Id: Idff342b3aecc2d145dfbc7c0f610ad0ca8e52c8b
Partial-Bug: #1448155
2015-05-01 16:40:03 +01:00
..
api Support to generate hot template based on resource type 2015-04-28 16:14:52 +08:00
cloudinit Update the rest of the code to satisfy flake8 in a py34 env 2015-04-24 11:53:43 +05:30
cmd Use Service objects instead of db_api 2015-03-23 06:38:21 -04:00
common Support to generate hot template based on resource type 2015-04-28 16:14:52 +08:00
db Merge "Use six.text_type and six.reraise" 2015-04-25 02:22:14 +00:00
engine Generate stack events for stack state transitions 2015-05-01 16:40:03 +01:00
locale Imported Translations from Transifex 2015-04-21 06:03:50 +00:00
objects Replace dict.itervalues/dict.iteritems and use len over filter function 2015-04-23 19:45:36 +05:30
openstack Use six.iterkeys(x) instead of x.keys() 2015-04-23 17:18:40 +03:00
rpc Support to generate hot template based on resource type 2015-04-28 16:14:52 +08:00
scaling Use six.iterkeys(x) instead of x.keys() 2015-04-23 17:18:40 +03:00
tests Generate stack events for stack state transitions 2015-05-01 16:40:03 +01:00
__init__.py Make import of oslo libraries namespaceless 2015-02-18 22:54:10 +01:00
version.py Make the first line of every file consistent. 2014-03-04 09:03:04 -06:00