Skip to content

Commit de9a6fc

Browse files
committed
Prevent "server migrate --wait" from hanging
Migrate uses the same mechanism in the backend than Resize and so the steps and step names are similar. Currently when using the --wait option with 'migrate', we wait forever because the status won't get to active until the user performs an action. This makes it return on verify_resize status just like 'resize' does, so that the user can perform the next manual step. Change-Id: Ie1aeac52506bc8801f88fd6a6eb4f6094cf20050 Story: 2001994 Task: 19621
1 parent 06263bd commit de9a6fc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

openstackclient/compute/v2/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,6 +1386,7 @@ def _show_progress(progress):
13861386
if utils.wait_for_status(
13871387
compute_client.servers.get,
13881388
server.id,
1389+
success_status=['active', 'verify_resize'],
13891390
callback=_show_progress,
13901391
):
13911392
self.app.stdout.write(_('Complete\n'))

0 commit comments

Comments
 (0)