openstack-python-openstackc.../openstackclient/compute/v2
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
..
__init__.py Remove copyright from empty files 2014-01-20 17:28:13 +04:00
agent.py compute: Migrate to 'compute' client alias 2025-04-03 16:39:03 +01:00
aggregate.py compute: Migrate to 'compute' client alias 2025-04-03 16:39:03 +01:00
console.py compute: Migrate to 'compute' client alias 2025-04-03 16:39:03 +01:00
flavor.py compute: Migrate to 'compute' client alias 2025-04-03 16:39:03 +01:00
host.py compute: Migrate to 'compute' client alias 2025-04-03 16:39:03 +01:00
hypervisor.py compute: Migrate to 'compute' client alias 2025-04-03 16:39:03 +01:00
hypervisor_stats.py compute: Migrate to 'compute' client alias 2025-04-03 16:39:03 +01:00
keypair.py Fix 'openstack keypair list --project <project>' 2025-04-10 17:59:29 -07:00
server.py evacuate: respect original SHUTOFF state in --wait completion 2025-05-21 16:52:24 +09:00
server_backup.py compute: Migrate to 'compute' client alias 2025-04-03 16:39:03 +01:00
server_event.py Workaround for failing tests on openstacksdk change 2025-04-09 12:23:38 +05:30
server_group.py compute: Migrate to 'compute' client alias 2025-04-03 16:39:03 +01:00
server_image.py compute: Migrate to 'compute' client alias 2025-04-03 16:39:03 +01:00
server_migration.py compute: Migrate to 'compute' client alias 2025-04-03 16:39:03 +01:00
server_volume.py compute: Migrate to 'compute' client alias 2025-04-03 16:39:03 +01:00
service.py compute: Migrate to 'compute' client alias 2025-04-03 16:39:03 +01:00
usage.py compute: Migrate to 'compute' client alias 2025-04-03 16:39:03 +01:00