Revision 68959ca5 lib/rpc.py
b/lib/rpc.py | ||
---|---|---|
691 | 691 |
return self.call_test_delay(node_list, duration, |
692 | 692 |
read_timeout=int(duration + 5)) |
693 | 693 |
|
694 |
@_RpcTimeout(_TMO_NORMAL) |
|
695 |
def call_hypervisor_validate_params(self, node_list, hvname, hvparams): |
|
696 |
"""Validate the hypervisor params. |
|
697 |
|
|
698 |
This is a multi-node call. |
|
699 |
|
|
700 |
@type node_list: list |
|
701 |
@param node_list: the list of nodes to query |
|
702 |
@type hvname: string |
|
703 |
@param hvname: the hypervisor name |
|
704 |
@type hvparams: dict |
|
705 |
@param hvparams: the hypervisor parameters to be validated |
|
706 |
|
|
707 |
""" |
|
708 |
cluster = self._cfg.GetClusterInfo() |
|
709 |
hv_full = objects.FillDict(cluster.hvparams.get(hvname, {}), hvparams) |
|
710 |
return self._MultiNodeCall(node_list, "hypervisor_validate_params", |
|
711 |
[hvname, hv_full]) |
|
712 |
|
|
713 | 694 |
|
714 | 695 |
class JobQueueRunner(_generated_rpc.RpcClientJobQueue): |
715 | 696 |
"""RPC wrappers for job queue. |
Also available in: Unified diff