openstack-python-openstackc.../openstackclient
waf 3909e93301 evacuate: respect original SHUTOFF state in --wait completion
When running `openstack server evacuate --wait`, the command would hang
indefinitely if the instance was originally in SHUTOFF state, because
only “ACTIVE” was treated as a successful completion. We now capture
the server’s status before evacuation and dynamically include
“SHUTOFF” in the `success_status` list if the instance was already
shut off. This ensures that a shutoff instance is accepted as a valid
completion without requiring manual intervention.

Unit tests have been added and updated to cover both:
- pre-evacuation ACTIVE → success_status=['active']
- pre-evacuation SHUTOFF → success_status=['active','shutoff']

Closes-Bug: #2103426
Change-Id: I86ad1cd173a144b16fde1dbac87819fab2d7a50a
2025-05-21 16:52:24 +09:00
..
api pre-commit: Migrate pyupgrade to ruff 2024-09-12 18:08:23 +01:00
common compute: Migrate to 'compute' client alias 2025-04-03 16:39:03 +01:00
compute evacuate: respect original SHUTOFF state in --wait completion 2025-05-21 16:52:24 +09:00
identity Merge "Remove use of formatter function" 2025-04-02 10:19:34 +00:00
image image: Migrate 'create image' volume calls to SDK 2025-04-04 18:11:27 +01:00
locale/tr_TR/LC_MESSAGES Imported Translations from Zanata 2025-04-02 03:07:33 +00:00
network Refactor network fakes to sdk properties PART6 2025-04-08 16:36:48 +00:00
object Permit use of tuple API_VERSIONS 2025-04-01 10:36:02 +01:00
releasenotes/notes Show Created At column for volume backups 2024-05-19 22:17:06 +02:00
tests evacuate: respect original SHUTOFF state in --wait completion 2025-05-21 16:52:24 +09:00
volume volume: Make better use of argparse 2025-04-04 18:11:27 +01:00
__init__.py Clean up W503 and E402 pep8 errors 2018-04-15 12:23:06 +09:00
i18n.py Remove log translations 2017-03-21 17:23:09 +08:00
shell.py Permit use of tuple API_VERSIONS 2025-04-01 10:36:02 +01:00