adds share server uuid on migration cancel

Closes-bug: #1989819

Change-Id: I6064d31d20eb10c5e0d42e9aff18d512c200e378
(cherry picked from commit 86e0e3887f)
(cherry picked from commit c924c4ce10)
(cherry picked from commit bd344c8781)
(cherry picked from commit deee9ae1e4)
(cherry picked from commit 5415c64efd)
This commit is contained in:
Clifford Emeka 2023-03-22 12:18:37 +01:00 committed by Goutham Pacha Ravi
parent a482eb1683
commit 97ae87e970

View File

@ -2663,7 +2663,8 @@ class API(base.Base):
"""Attempts to cancel share server migration."""
if share_server['status'] != constants.STATUS_SERVER_MIGRATING:
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)
raise exception.InvalidShareServer(reason=msg)