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