Revision 8d8c4eff lib/rpc.py
b/lib/rpc.py | ||
---|---|---|
433 | 433 |
@type bep: dict or None |
434 | 434 |
@param bep: a dictionary with overridden backend parameters |
435 | 435 |
@type osp: dict or None |
436 |
@param osp: a dictionary with overriden os parameters |
|
436 |
@param osp: a dictionary with overridden os parameters
|
|
437 | 437 |
@rtype: dict |
438 | 438 |
@return: the instance dict, with the hvparams filled with the |
439 | 439 |
cluster defaults |
... | ... | |
752 | 752 |
shutdown_timeout]) |
753 | 753 |
|
754 | 754 |
@_RpcTimeout(_TMO_1DAY) |
755 |
def call_instance_os_add(self, node, inst, reinstall, debug): |
|
755 |
def call_instance_os_add(self, node, inst, reinstall, debug, osparams=None):
|
|
756 | 756 |
"""Installs an OS on the given instance. |
757 | 757 |
|
758 | 758 |
This is a single-node call. |
759 | 759 |
|
760 | 760 |
""" |
761 | 761 |
return self._SingleNodeCall(node, "instance_os_add", |
762 |
[self._InstDict(inst), reinstall, debug]) |
|
762 |
[self._InstDict(inst, osp=osparams), |
|
763 |
reinstall, debug]) |
|
763 | 764 |
|
764 | 765 |
@_RpcTimeout(_TMO_SLOW) |
765 | 766 |
def call_instance_run_rename(self, node, inst, old_name, debug): |
Also available in: Unified diff