Add power on and off in Watcher

Registered by Charlotte Han

For a data center with large amount of VMs and physical hosts,the total power consumption is tremendous.
When workload is not heavy, Watcher can be used to reduce power consumption by triggering a request to power off some idle hosts without VMs.
And when the workload increases watcher will trigger a "power on" request to fullfill the service requirements.

This feature includes four sub-features:
1) Build a new baremetal (ironic) data model within current Watcher Cluster Data Model
2) Add new actions "power on" and "power off" in Watcher
3) Implement a new strategy based on 'baremetal' and 'compute' data models, which could trigger 'compute' and 'baremetal' actions.
4) Update the bare metal data model by ironic notifications

This BP implements the second sub-feature: Add new actions "power on" and "power off" in Watcher.

Blueprint information

Status:
Complete
Approver:
Antoine Cabot
Priority:
Medium
Drafter:
Charlotte Han
Direction:
Approved
Assignee:
licanwei
Definition:
Approved
Series goal:
Accepted for pike
Implementation:
Implemented
Milestone target:
milestone icon pike-3
Started by
Alexander Chadin
Completed by
Alexander Chadin

Related branches

Sprints

Whiteboard

Addressed by: https://review.openstack.org/435436
    Reduce power consumption

Gerrit topic: https://review.openstack.org/#q,topic:bp/add-power-on-off,n,z

Addressed by: https://review.openstack.org/470185
    Add action for compute node power on/off

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.