Skip to content

Commit bbe6861

Browse files
committed
Improve output of 'server migrate --wait'
We have seen users interpret the current output ('Complete') of 'server migrate --wait' as if it meant success as well and be surprised when later they learned that the migration was complete and failed. This change adds a pointer to the that output, how to actually check the success/failure of a migration, hoping to eliminate this user confusion. Change-Id: I09030705a39405366d6202a5ac743cc4d1ddd63c
1 parent a79cb60 commit bbe6861

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

openstackclient/compute/v2/server.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3211,7 +3211,12 @@ def _show_progress(progress):
32113211
success_status=['active', 'verify_resize'],
32123212
callback=_show_progress,
32133213
):
3214-
self.app.stdout.write(_('Complete\n'))
3214+
self.app.stdout.write(
3215+
_(
3216+
'Complete, check success/failure by '
3217+
'openstack server migration/event list/show\n'
3218+
)
3219+
)
32153220
else:
32163221
msg = _('Error migrating server: %s') % server.id
32173222
raise exceptions.CommandError(msg)

0 commit comments

Comments
 (0)