ironic/releasenotes/notes/drac-fix-power-on-reboot-race-condition-fe712aa9c79ee252.yaml
Mark Beierl 62c95a7c96 Fix potential race condition on node power on and reboot
Currently there is the possibility that a configuration job
does not transition to the correct state and start execution
during a power on or reboot operation.  If the boot device
is being changed, the system might complete its POST before
the job is ready, leaving the job in the queue, and the
system will boot from the wrong device.

This fix suggests the following change for the power control:

  o During internal call to set boot device, poll the iDRAC job
    queue for a configurable amount of time to ensure the job
    is in the correct state
  o Throw an exception on timeout if the job does not transition
    to the correct state
  o Proceed with normal logic as soon as the job is in the
    correct state

This will ensure the iDRAC is in a state to execute the job
prior to the reboot starting, removing this race condition.

Story: #2004909
Task: #29259

Change-Id: I5cc71fb3c9a7e0166aab5bd458bbd257cefa8f5b
2019-07-16 09:08:20 -04:00

16 lines
731 B
YAML

---
features:
- |
Adds a new configuration option ``boot_device_job_status_timeout`` that
specifies the Maximum amount of time (in seconds) to wait for the boot
device configuration job to transition to the scheduled state to allow a
reboot or power on action to complete.
fixes:
- |
Fixes an issue where a configuration job does not transition to the
correct state and start execution during a power on or reboot operation. If
the boot device is being changed, the system might complete its POST before
the job is ready, leaving the job in the queue, and the system will boot
from the wrong device.
See bug `2004909 <https://storyboard.openstack.org/#!/story/2004909>`_ for
details.