Revision 070e998b lib/rpc.py
b/lib/rpc.py | ||
---|---|---|
647 | 647 |
memory information |
648 | 648 |
|
649 | 649 |
""" |
650 |
retux = self._MultiNodeCall(node_list, "node_info", |
|
651 |
[vg_name, hypervisor_type]) |
|
652 |
|
|
653 |
for result in retux.itervalues(): |
|
654 |
if result.failed or not isinstance(result.data, dict): |
|
655 |
result.data = {} |
|
656 |
if result.offline: |
|
657 |
log_name = None |
|
658 |
else: |
|
659 |
log_name = "call_node_info" |
|
660 |
|
|
661 |
utils.CheckDict(result.data, { |
|
662 |
'memory_total' : '-', |
|
663 |
'memory_dom0' : '-', |
|
664 |
'memory_free' : '-', |
|
665 |
'vg_size' : 'node_unreachable', |
|
666 |
'vg_free' : '-', |
|
667 |
}, log_name) |
|
668 |
return retux |
|
650 |
return self._MultiNodeCall(node_list, "node_info", |
|
651 |
[vg_name, hypervisor_type]) |
|
669 | 652 |
|
670 | 653 |
def call_node_add(self, node, dsa, dsapub, rsa, rsapub, ssh, sshpub): |
671 | 654 |
"""Add a node to the cluster. |
Also available in: Unified diff