adds share server uuid on migration cancel
Closes-bug: #1989819 Change-Id: I6064d31d20eb10c5e0d42e9aff18d512c200e378 (cherry picked from commit86e0e3887f
) (cherry picked from commitc924c4ce10
) (cherry picked from commitbd344c8781
) (cherry picked from commitdeee9ae1e4
) (cherry picked from commit5415c64efd
)
This commit is contained in:
parent
a482eb1683
commit
97ae87e970
@ -2663,7 +2663,8 @@ class API(base.Base):
|
|||||||
"""Attempts to cancel share server migration."""
|
"""Attempts to cancel share server migration."""
|
||||||
if share_server['status'] != constants.STATUS_SERVER_MIGRATING:
|
if share_server['status'] != constants.STATUS_SERVER_MIGRATING:
|
||||||
msg = _("Migration of share server %s cannot be cancelled because "
|
msg = _("Migration of share server %s cannot be cancelled because "
|
||||||
"the provided share server is not being migrated.")
|
"the provided share server is not being migrated."
|
||||||
|
% (share_server['id']))
|
||||||
LOG.error(msg)
|
LOG.error(msg)
|
||||||
raise exception.InvalidShareServer(reason=msg)
|
raise exception.InvalidShareServer(reason=msg)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user