ironic/ironic/conductor
Dmitry Tantsur 5694b98fc8 Rework logic handling reserved orphaned nodes in the conductor
If a conductor dies while holding a reservation, the node can get
stuck in its current state. Currently the conductor that takes
over the node only cleans it up if it's in the DEPLOYING state.

This change applies the same logic for all nodes:

1. Reservation is cleared by the conductor that took over the node
   no matter what provision state.

2. CLEANING is also aborted, nodes are moved to CLEAN FAIL with
   maintenance on.

3. Target power state is cleared as well.

The reservation is cleared even for nodes in maintenance mode,
otherwise it's impossible to move them out of maintenance.

Change-Id: I379c1335692046ca9423fda5ea68d2f10c065cb5
Closes-Bug: #1588901
2018-02-21 15:20:57 +01:00
..
__init__.py Remove copyright from empty files 2014-01-07 21:05:01 +08:00
base_manager.py Rework logic handling reserved orphaned nodes in the conductor 2018-02-21 15:20:57 +01:00
manager.py Rework logic handling reserved orphaned nodes in the conductor 2018-02-21 15:20:57 +01:00
notification_utils.py Add node console notifications 2016-12-23 08:51:54 +00:00
rpcapi.py Add RPC API and conductor manager for traits 2018-01-24 21:23:05 +00:00
task_manager.py add portgroups in the task_manager docstrings 2017-04-10 04:04:18 +00:00
utils.py Rework logic handling reserved orphaned nodes in the conductor 2018-02-21 15:20:57 +01:00