ironic/ironic/conductor
Mark Goddard 3e51982252 Don't resume deployment or cleaning on heartbeat when polling
Some drivers use a periodic task to poll for completion of a deploy
or clean step. The iDRAC RAID driver is one example of this. In
https://review.opendev.org/#/c/676152, the agent heartbeat handler was
modified to resume deployment if not currently in the core deploy step.
This makes sense for the ilo driver, which does not poll for completion
of RAID configuration, but the iDRAC driver polls the lifecycle
controller's job queue, and expects to be able to resume deployment once
the job is complete. However, there is now a race between the agent
heartbeat as the node boots up, and the job queue poller.

This change adds new flags, cleaning_polling and deployment_polling,
which can be used by a driver to signal that they are polling for
completion of a deploy step, and that the agent heartbeat should not be
used for this purpose.

We also add here some more cleanup of the cleaning and deployment step
metadata in driver_internal_info, since if these fields are left in
place they may affect subsequent cleaning or deployment steps.

Change-Id: I34591440ab993a80a0cc88be6e10e33f1ae4a660
Story: 2003817
Task: 36563
2019-09-21 12:52:28 +01:00
..
__init__.py Remove copyright from empty files 2014-01-07 21:05:01 +08:00
allocations.py Do not log an exception if Allocation is deleted during handling. 2019-06-12 15:14:20 +02:00
base_manager.py Fix :param: in docstring 2019-06-14 14:23:57 +08:00
manager.py Don't resume deployment or cleaning on heartbeat when polling 2019-09-21 12:52:28 +01:00
notification_utils.py Add node console notifications 2016-12-23 08:51:54 +00:00
rpcapi.py Removes `hash_distribution_replicas` configuration option 2019-04-19 15:10:56 +05:30
steps.py Deploy Templates: factor out ironic.conductor.steps 2019-03-15 10:10:45 +00:00
task_manager.py Fix updating nodes with removed or broken drivers 2019-01-09 12:45:10 +01:00
utils.py Don't resume deployment or cleaning on heartbeat when polling 2019-09-21 12:52:28 +01:00