Make sure unused bare metal nodes are powered off

Registered by Joe Gordon

We should make sure a powered off node stays powered off, otherwise unused machines may be on for months.

This should be implemented as a periodic task which checks for unassociated nodes, which are not in maintenance mode, with a power_state that is not POWER_OFF, and then powers them off. Failures to do so should be logged and the node last_error field should be set.

Cross-conductor coordination can be handled within the periodic task by attempting to lock the node and squelching any NodeAlreadyLocked exceptions. This can be optimized later, when we have better cross-conductor messaging.

Blueprint information

Status:
Complete
Approver:
aeva black
Priority:
High
Drafter:
aeva black
Direction:
Approved
Assignee:
aeva black
Definition:
Approved
Series goal:
Accepted for icehouse
Implementation:
Implemented
Milestone target:
milestone icon 2014.1
Started by
aeva black
Completed by
aeva black

Related branches

Sprints

Whiteboard

Closing this BP in favor of a bug, as this is not really a new feature.

https://bugs.launchpad.net/ironic/+bug/1279144

Gerrit topic: https://review.openstack.org/#q,topic:bp/keep-powered-off-nodes-off,n,z

Addressed by: https://review.openstack.org/76293
    Add option to sync node power state from DB

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.