Treat HTTP 400 and 409 errors as success when the node is already
in the target power state, preventing deployment failures from
race conditions between power state change completion and state
verification timeout.
Also refresh system state to get current power state from BMC
instead of using potentially stale cached data.
Assisted-By: Claude Sonnet 4.5
Change-Id: Id66ff9c70a9dd6969e3ac7fc74328dfc6e0431bd
Signed-off-by: Riccardo Pittau <elfosardo@gmail.com>
(cherry picked from commit 3e778ef954)
12 lines
530 B
YAML
12 lines
530 B
YAML
---
|
|
fixes:
|
|
- |
|
|
Fixes a race condition where the Redfish power interface could fail with
|
|
HTTP 400 (BadRequest) or HTTP 409 (Conflict) errors during power
|
|
operations. These errors are now treated as success when the node is
|
|
already in the target power state (either on or off), preventing
|
|
deployment failures when power state changes complete after Ironic's
|
|
state verification times out.
|
|
Also refresh system state to get current power state from BMC
|
|
instead of using potentially stale cached data.
|