def CheckOSParams(lu, required, node_uuids, osname, osparams, force_variant):
  node_uuids = _FilterVmNodes(lu, node_uuids)

  # Last chance to unwrap private elements.
  for key in osparams:
    if isinstance(osparams[key], Private):
      osparams[key] = osparams[key].Get()

  if osname:
    result = lu.rpc.call_os_validate(node_uuids, required, osname,
                                     [constants.OS_VALIDATE_PARAMETERS],
                                     osparams, force_variant)
    for node_uuid, nres in result.items():
      # we don't check for offline cases since this should be run only
      # against the master node and/or an instance's nodes
      nres.Raise("OS Parameters validation failed on node %s" %
                 lu.cfg.GetNodeName(node_uuid))
      if not nres.payload:
        lu.LogInfo("OS %s not found on node %s, validation skipped",
                   osname, lu.cfg.GetNodeName(node_uuid))
This loads the variables and attributes simultaneously.
dataset/ETHPy150Open ganeti/ganeti/lib/cmdlib/common.py/CheckOSParams--crossover with--dataset/ETHPy150Open pydata/xarray/xarray/backends/common.py/AbstractDataStore.load