Commit c4ff2275 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

cmdlib: Give instance name in error message on group evacuation


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 3ddd94f9
......@@ -12005,10 +12005,12 @@ class LUGroupEvacuate(LogicalUnit):
inst_groups = self.cfg.GetInstanceNodeGroups(instance_name)
if not owned_groups.issuperset(inst_groups):
raise errors.OpPrereqError("Instance's node groups changed since locks"
" were acquired, current groups are '%s',"
" owning groups '%s'; retry the operation" %
(utils.CommaJoin(inst_groups),
raise errors.OpPrereqError("Instance %s's node groups changed since"
" locks were acquired, current groups"
" are '%s', owning groups '%s'; retry the"
" operation" %
(instance_name,
utils.CommaJoin(inst_groups),
utils.CommaJoin(owned_groups)),
errors.ECODE_STATE)
......
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