Revision 062a7100 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
6130 | 6130 |
_OP_REQP = ["instance_name", "disks", |
6131 | 6131 |
"mode", "start", |
6132 | 6132 |
"wait_for_sync", "ip_check", "nics", |
6133 |
"hvparams", "beparams"] |
|
6133 |
"hvparams", "beparams", "osparams"]
|
|
6134 | 6134 |
REQ_BGL = False |
6135 | 6135 |
|
6136 | 6136 |
def CheckArguments(self): |
... | ... | |
6580 | 6580 |
utils.ForceDictType(self.op.beparams, constants.BES_PARAMETER_TYPES) |
6581 | 6581 |
self.be_full = cluster.SimpleFillBE(self.op.beparams) |
6582 | 6582 |
|
6583 |
# build os parameters |
|
6584 |
self.os_full = cluster.SimpleFillOS(self.op.os_type, self.op.osparams) |
|
6585 |
|
|
6583 | 6586 |
# now that hvp/bep are in final format, let's reset to defaults, |
6584 | 6587 |
# if told to do so |
6585 | 6588 |
if self.op.identify_defaults: |
... | ... | |
6807 | 6810 |
_CheckHVParams(self, nodenames, self.op.hypervisor, self.op.hvparams) |
6808 | 6811 |
|
6809 | 6812 |
_CheckNodeHasOS(self, pnode.name, self.op.os_type, self.op.force_variant) |
6813 |
# check OS parameters (remotely) |
|
6814 |
_CheckOSParams(self, True, nodenames, self.op.os_type, self.os_full) |
|
6810 | 6815 |
|
6811 | 6816 |
_CheckNicsBridgesExist(self, self.nics, self.pnode.name) |
6812 | 6817 |
|
... | ... | |
6863 | 6868 |
beparams=self.op.beparams, |
6864 | 6869 |
hvparams=self.op.hvparams, |
6865 | 6870 |
hypervisor=self.op.hypervisor, |
6871 |
osparams=self.op.osparams, |
|
6866 | 6872 |
) |
6867 | 6873 |
|
6868 | 6874 |
if self.adopt_disks: |
Also available in: Unified diff