Run workflow in response to an event notification

Registered by Todd Johnson

Add support to mistral to run workflows in response to a notification event. This would allow cloud operators to automate their operations based on notifications. For example, an operator could implement a set of workflows that would expire instances within a certain amount of time. Another example might be to clean up resources when a tenant a deleted or add resources when a tenant is created. Since mistral has support for http operations, this automation does not have to be limited to openstack resources. An operator could post an http request to their internal systems for billing, etc.

The workflow would take as input parameters the notification event name and the notification message payload. This would allow the workflow to make decisions based on the message payload. The workflow would run under the security context of the message.

Some of this code might be able to be shared for blueprint: https://blueprints.launchpad.net/mistral/+spec/mistral-resource-waiting-actions.

Blueprint information

Status:
Complete
Approver:
Renat Akhmerov
Priority:
High
Drafter:
Todd Johnson
Direction:
Approved
Assignee:
Lingxian Kong
Definition:
Approved
Series goal:
Accepted for ocata
Implementation:
Implemented
Milestone target:
milestone icon ocata-2
Started by
Renat Akhmerov
Completed by
Renat Akhmerov

Related branches

Sprints

Whiteboard

ninag: Helps towards https://github.com/openstack/openstack-user-stories/blob/master/user-stories/draft/lifecycle_management.rst

Gerrit topic: https://review.openstack.org/#q,topic:bp/event-notification-trigger,n,z

Addressed by: https://review.openstack.org/308664
    Add support for mistral notification event triggers

Addressed by: https://review.openstack.org/320497
    [WIP] Implement event-notification-trigger spec This is part 1 of 5 patch sets which implement the Mistral event-notification-trigger spec. This is a work in progress.

Addressed by: https://review.openstack.org/320500
    [WIP] Implement event-notification-trigger spec This is part 2 of 5 patch sets which implement the Mistral event-notification-trigger spec. This is a work in progress.

Addressed by: https://review.openstack.org/320509
    [WIP] Implement event-notification-trigger spec This is part 3 of 5 patch sets which implement the Mistral event-notification-trigger spec. This is a work in progress.

Addressed by: https://review.openstack.org/320510
    [WIP] Implement event-notification-trigger spec This is part 4 of 5 patch sets which implement the Mistral event-notification-trigger spec. This is a work in progress.

Addressed by: https://review.openstack.org/320514
    [WIP] Implement event-notification-trigger spec This is part 5 of 5 patch sets which implement the Mistral event-notification-trigger spec. This is a work in progress.

Gerrit topic: https://review.openstack.org/#q,topic:bp/event-trigger,n,z

Addressed by: https://review.openstack.org/336463
    Add functional tests for event engine functions

Addressed by: https://review.openstack.org/356404
    Add event configuration for event trigger

Addressed by: https://review.openstack.org/370402
    Revert "Add event trigger REST API"

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.