417a7ad203
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
14 lines
583 B
YAML
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>`_]
|