Commit 2294 introduced a new instance.all_nodes property, which
unfortunately is working incorrectly for non-drbd instances.
This patch fixes it by making sure the primary node is always added to
the set, even before recursing over (any potential) children.
Reviewed-by: imsnah
_Helper(nodes, child)
all_nodes = set()
+ all_nodes.add(self.primary_node)
for device in self.disks:
_Helper(all_nodes, device)
return tuple(all_nodes)