python-openstackclient/releasenotes/notes/story-2010751-server-rebuild-wait-shutoff-c84cddcd3f15e9ce.yaml
Pavlo Shchelokovskyy 417a7ad203 Allow server rebuild --wait for SHUTOFF servers
currently the command is waiting only for ACTIVE server status,
but if the server was SHUTOFF before, it will be SHUTOFF after
rebuild as well, so the command is stuck in waiting forever.

Additionally, we now also pre-validate the server status on client side,
and raise an error if the server to be rebuilt is not in ACTIVE, ERROR
or SHUTOFF state.

Change-Id: If90a4bbba9a7ecd972f8b594c52fee4f75a0ae5e
Co-Authored-By: Oleksiy Molchanov <omolchanov@mirantis.com>
Story: 2010751
Task: 48005
2023-05-17 11:38:37 +00:00

14 lines
583 B
YAML

---
features:
- |
``openstack server rebuild`` command now fails early if the server is
not in a state supported for rebuild - either ``ACTIVE``, ``ERROR`` or
``SHUTOFF``.
See `OpenStack Compute API reference for server rebuild action
<https://docs.openstack.org/api-ref/compute/?expanded=rebuild-server-rebuild-action-detail#rebuild-server-rebuild-action>`_.
fixes:
- |
``openstack server rebuild --wait`` now properly works for servers in
``SHUTOFF`` state without hanging.
[Story `2010751 <https://storyboard.openstack.org/#!/story/2010751>`_]