diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 37eee95b0a11aaeb879d2bd35af07c4c26e3b2fc..306f63183eca8b6de1e1a735b48d89eac2de9003 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -3214,10 +3214,12 @@ class LUClusterVerifyGroup(LogicalUnit, _VerifyErrors): if master_node not in self.my_node_info: additional_nodes.append(master_node) vf_node_info.append(self.all_node_info[master_node]) - # Add the first vm_capable node we find which is not included + # Add the first vm_capable node we find which is not included, + # excluding the master node (which we already have) for node in absent_nodes: nodeinfo = self.all_node_info[node] - if nodeinfo.vm_capable and not nodeinfo.offline: + if (nodeinfo.vm_capable and not nodeinfo.offline and + node != master_node): additional_nodes.append(node) vf_node_info.append(self.all_node_info[node]) break