Revision 0c3d9c7c lib/cmdlib/group.py
b/lib/cmdlib/group.py | ||
---|---|---|
968 | 968 |
inst.secondary_nodes): |
969 | 969 |
node_to_inst.setdefault(node_uuid, []).append(inst) |
970 | 970 |
|
971 |
nodes_ip = dict((uuid, node.secondary_ip) for (uuid, node) |
|
972 |
in self.cfg.GetMultiNodeInfo(node_to_inst.keys())) |
|
973 | 971 |
for (node_uuid, insts) in node_to_inst.items(): |
974 | 972 |
node_disks = [(inst.disks, inst) for inst in insts] |
975 |
node_res = self.rpc.call_drbd_needs_activation(node_uuid, nodes_ip, |
|
976 |
node_disks) |
|
973 |
node_res = self.rpc.call_drbd_needs_activation(node_uuid, node_disks) |
|
977 | 974 |
msg = node_res.fail_msg |
978 | 975 |
if msg: |
979 | 976 |
logging.warning("Error getting DRBD status on node %s: %s", |
Also available in: Unified diff