Event-driven optimization based

Registered by Jean-Emile DARTOIS

The blueprint "continuously-optimization" [1] give the possibility to the administrator to periodically trigger an audit but not to react to a situations and changes in system.

We propose an event-driven optimization-based audit control. We wants to select among a list of events which may trigger the audit :
- React to a predicted situation.
- React to a critical situations and changes in system (e.g: threshold )
- A new compute node has been added to the cluster
- A compute node has been removed from the cluster
- A new virtual machine has been created

The events can be created by AODH, congress, ceilometer, scoring engine (long term)

Here is the use case summarizing the previous elements:

   Given that I am an audit
   And I have auto-triggering event handlers set up
   When I receive an alarm notification from AODH/Congress/...
   And that event matches my audit-triggering criteria
   Then I should execute myself.

Note : This blueprint could potentially be implemented by periodic optimizations, but preferably would be more async than periodic.

[1] https://blueprints.launchpad.net/watcher/+spec/continuously-optimization

Blueprint information

Status:
Complete
Approver:
Antoine Cabot
Priority:
Medium
Drafter:
Jean-Emile DARTOIS
Direction:
Approved
Assignee:
licanwei
Definition:
Approved
Series goal:
Accepted for ussuri
Implementation:
Implemented
Milestone target:
milestone icon ussuri-3
Started by
licanwei
Completed by
licanwei

Related branches

Sprints

Whiteboard

During last PTG in Denver (Stein cycle) we have decided to set collaboration along with Monasca to implement Proactive HA. In short, we need to add special plugin to Monasca that should trigger Watcher API to execute audit when special alarm has been triggered on Monasca side. This feature will be tracked on StoryBoard, but I will leave this blueprint in active state as a reminder of additional potential features.

Gerrit topic: https://review.opendev.org/#/q/topic:bp/event-driven-optimization-based

Addressed by: https://review.opendev.org/695646
    Support event based audit

Addressed by: https://review.opendev.org/698832
    [WiP]Add webhook api

Addressed by: https://review.opendev.org/698841
    Add audit type: event

Addressed by: https://review.opendev.org/702357
    doc for event type audit

Addressed by: https://review.opendev.org/705625
    Add releasenote for event-driven-optimization-based

Addressed by: https://review.opendev.org/706171
    Add api version history

Addressed by: https://review.opendev.org/706184
    api-ref: Add webhook API reference

Addressed by: https://review.opendev.org/706729
    Doc: Add EVENT audit description

Addressed by: https://review.opendev.org/707752
    Add config option enable_webhooks_auth

Addressed by: https://review.opendev.org/707779
    Add config option enable_webhooks_auth

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.