Commit 67a315ba authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Add error state to LUGroupEvacuate's exceptions


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 47099cd1
......@@ -11968,7 +11968,8 @@ class LUGroupEvacuate(LogicalUnit):
" %s, have %s; retry the operation" %
(self.group_uuid,
utils.CommaJoin(wanted_instances),
utils.CommaJoin(owned_instances)))
utils.CommaJoin(owned_instances)),
errors.ECODE_STATE)
# Get instance information
self.instances = dict((name, self.cfg.GetInstanceInfo(name))
......@@ -11988,7 +11989,8 @@ class LUGroupEvacuate(LogicalUnit):
" were acquired, current groups are '%s',"
" owning groups '%s'; retry the operation" %
(utils.CommaJoin(inst_groups),
utils.CommaJoin(owned_groups)))
utils.CommaJoin(owned_groups)),
errors.ECODE_STATE)
if self.req_target_uuids:
# User requested specific target groups
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment