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

Show old primary/secondary node on disk replacement



People unfamiliar with Ganeti's internals might be confused with the
different hostnames showing up later in the process.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarBernardo Dal Seno <bdalseno@google.com>
parent 64be07b1
......@@ -10780,11 +10780,15 @@ class TLReplaceDisks(Tasklet):
"Should not own any node group lock at this point"
 
if not self.disks:
feedback_fn("No disks need replacement")
feedback_fn("No disks need replacement for instance '%s'" %
self.instance.name)
return
 
feedback_fn("Replacing disk(s) %s for %s" %
feedback_fn("Replacing disk(s) %s for instance '%s'" %
(utils.CommaJoin(self.disks), self.instance.name))
feedback_fn("Current primary node: %s", self.instance.primary_node)
feedback_fn("Current seconary node: %s",
utils.CommaJoin(self.instance.secondary_nodes))
 
activate_disks = (self.instance.admin_state != constants.ADMINST_UP)
 
......
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