Revision a5728081 lib/bootstrap.py

b/lib/bootstrap.py
38 38
from ganeti import constants
39 39
from ganeti import objects
40 40
from ganeti import ssconf
41
from ganeti import hypervisor
41 42

  
42 43

  
43 44
def _InitSSHSetup():
......
204 205
    raise errors.OpPrereqError("Init.d script '%s' missing or not"
205 206
                               " executable." % constants.NODE_INITD_SCRIPT)
206 207

  
207
  utils.CheckBEParams(beparams)
208
  utils.ForceDictType(beparams, constants.BES_PARAMETER_TYPES)
209
  # hvparams is a mapping of hypervisor->hvparams dict
210
  for hv_name, hv_params in hvparams.iteritems():
211
    utils.ForceDictType(hv_params, constants.HVS_PARAMETER_TYPES)
212
    hv_class = hypervisor.GetHypervisor(hv_name)
213
    hv_class.CheckParameterSyntax(hv_params)
208 214

  
209 215
  # set up the inter-node password and certificate
210 216
  _InitGanetiServerSetup()

Also available in: Unified diff