Objects: Improve instance action events to contain more messages

Registered by Qiu Yu

This bp is a placeholder for several misc issues I found when playing with instance action events.

## PHASE 1 ##

* feature parity with instance fault
Instance faults table is going to be removed with following BP

However, not all information exposed by Instance Fault table, e.g. "host" and "details", are available with Instance Action Events. Both could be useful for recording more event details

* instance action/event refacoring
One issue with current instance action/event model is, event is now for manager level (compute, scheduler, and maybe conductor manager if future) method call, and is always has two steps of start/finish in mind.

However, it is useful to create one-shot event record (no finish) and ability to update details of what is happening inside major manager level event.

## PHASE 2 ##

Splitted second phase of work into another blueprint

Blueprint information

Andrew Laski
Qiu Yu
Needs approval
Qiu Yu
Series goal:
Needs Code Review
Milestone target:
milestone icon next
Started by
Qiu Yu

Related branches




Addressed by: https://review.openstack.org/6144
    Add host and details column to instance_actions_events table

Pending patches:

Gerrit topic: https://review.openstack.org/#q,topic:bp/improve-instance-action-events,n,z

Addressed by: https://review.openstack.org/62871
    Add pack_action_event_start/finish to InstanceActionEvent object

Addressed by: https://review.openstack.org/72391
    Add 'host' and 'detail' support to instance action event object

Addressed by: https://review.openstack.org/74060
    Add event create and update db api and object method

Addressed by: https://review.openstack.org/61516
    Add 'host' and 'details' to instance action get API response

Abandoned patches:

Addressed by: https://review.openstack.org/61050
    Add action_event_create and action_event_update api to conductor

Addressed by: https://review.openstack.org/58321
    Use action_event_{create, update} for instance action events update

[alaski] I like the direction of both phases here, but since they're two distinct bodies of work could you please split this into two blueprints. Just splitting out phase #2 into a new one and removing it from this one would be best.

[qiuyu] Done. Phase #2 splitted to https://blueprints.launchpad.net/nova/+spec/improve-instance-action-events-2

Apologies, this missed the deadline for Feature Freeze. Please rebase patches as soon as Juno opens, and we will try to get this in during that period. --johnthetubaguy (5th March 2014)

Unapproved - please re-submit via nova-spec --johnthetubagy (20th March 2014)


Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.