The achieved goal should be returned by each strategy
Today, there is no way to know what goal is achieved by a given strategy. The link between goal and strategies is done in the Watcher configuration.
There should be a goal attribute in the base strategy class saying what goal it achieves.
Beyond that, it will enable all strategies that achieve the same goal to derive from a common base class that returns the appropriate goal value.
For example, for the EnergyOptimization goal, there could be 3 different strategies with the same EnergyConsumpti
It will also enable watcher to return the list of available goals depending on which strategies have been deployed on the node where the Watcher Decision Engine is running.
Blueprint information
- Status:
- Complete
- Approver:
- Antoine Cabot
- Priority:
- Medium
- Drafter:
- Vincent Mahe
- Direction:
- Approved
- Assignee:
- Vincent Françoise
- Definition:
- Approved
- Series goal:
- Accepted for newton
- Implementation:
- Implemented
- Milestone target:
- newton-1
- Started by
- Vincent Françoise
- Completed by
- Vincent Françoise
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Achieved goal should be returned by each strategy
Addressed by: https:/
Added Goal and Strategy into Watcher DB
Addressed by: https:/
Added Goal object
Addressed by: https:/
Added Goal in Strategy + Goal API reads from DB
Addressed by: https:/
Add strategy & goal fields in audit template
Addressed by: https:/
Added Strategy model
Addressed by: https:/
DB registration for Strategies
Addressed by: https:/
Updated purge to now include goals and strategies
Addressed by: https:/
Added /strategies endpoint in Watcher API
Addressed by: https:/
Documentation update for get-goal-
Addressed by: https:/
Remove watcher_goals section from devstack plugin
Addressed by: https:/
Added Goals and Strategies to Dashboard
Gerrit topic: https:/
Addressed by: https:/
Achieved goal should be returned by each strategy Today, there is no way to know what goal is achieved by a given strategy. The mapping between goal and strategies is done in the Watcher configuration.
Addressed by: https:/
Refactored Strategy selector to select from DB
Addressed by: https:/
Syncer now syncs stale audit templates
Addressed by: https:/
Remove [watcher_goals] config section
Addressed by: https:/
Added .pot file
Work Items
Dependency tree
* Blueprints in grey have been implemented.