Harald Jensås ad220ed98a novadriver: Fix race for instance task_state
Stop using cached instance state and fetch real-time data from Nova
to avoid stale power_state and task_state values.

Add _check_and_wait_for_task_state() helper that polls with exponential
backoff (up to 20s) for task_state to clear, with a 4s stability check
to handle rapid state transitions. Returns 503 when instance is busy,
signaling clients to retry.

This eliminates ConflictException errors during power operations and
properly handles in-progress rebuilds and power state transitions.

Assisted-By: Claude Code/claude-4.5-sonnet
Change-Id: Iedf39aceb8c260903e00e77f6a919fd65e6a98d6
Signed-off-by: Harald Jensås <hjensas@redhat.com>
2025-10-22 18:38:21 +02:00
2017-04-06 17:05:16 +01:00
2018-07-27 08:14:22 +07:00
2019-04-19 19:44:40 +00:00
2017-04-06 17:05:16 +01:00
2025-06-25 00:37:28 +09:00
2022-05-04 17:42:22 +02:00
2017-04-06 17:05:16 +01:00
2018-09-23 16:38:42 +08:00
2017-04-06 17:05:16 +01:00
2025-01-15 16:16:44 -08:00
2025-10-13 11:55:49 +02:00
2022-04-26 09:54:13 +02:00
2025-06-25 00:37:28 +09:00

Redfish development tools

This is a set of simple simulation tools aimed at supporting the development and testing of the Redfish protocol implementations and, in particular, the Sushy library (https://docs.openstack.org/sushy/). It is not designed for use outside of development and testing environments. Please do not run sushy-tools in a production environment of any kind.

The package ships two simulators - the static Redfish responder and the virtual Redfish BMC (which is backed by libvirt or OpenStack cloud).

The static Redfish responder is a simple REST API server which responds with the same things to client queries. It is effectively read-only.

The virtual Redfish BMC resembles the real Redfish-controlled bare metal machine to some extent. Some client queries are translated to commands that actually control VM instances simulating bare metal hardware. However, some of the Redfish commands just return static content, never touching the virtualization backend and in this regard, the virtual Redfish BMC is similar to the static Redfish responder.

Description
A set of tools to support the development and test of the Sushy library
Readme 5.3 MiB
Languages
Python 100%