Make sure unused bare metal nodes are powered off
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:
- 2014.1
- Started by
- aeva black
- Completed by
- aeva black
Related branches
Related bugs
Sprints
Whiteboard
Closing this BP in favor of a bug, as this is not really a new feature.
https:/
Gerrit topic: https:/
Addressed by: https:/
Add option to sync node power state from DB