Revision 32389d91 lib/cmdlib/instance_storage.py

b/lib/cmdlib/instance_storage.py
893 893

  
894 894
  """
895 895
  es_flags = rpc.GetExclusiveStorageForNodes(lu.cfg, node_uuids)
896
  # FIXME: This maps everything to storage type 'lvm-vg' to maintain
897
  # the current functionality. Refactor to make it more flexible.
898 896
  hvname = lu.cfg.GetHypervisorType()
899 897
  hvparams = lu.cfg.GetClusterInfo().hvparams
900 898
  nodeinfo = lu.rpc.call_node_info(node_uuids, [(constants.ST_LVM_VG, vg)],
......
906 904
    info.Raise("Cannot get current information from node %s" % node_name,
907 905
               prereq=True, ecode=errors.ECODE_ENVIRON)
908 906
    (_, (vg_info, ), _) = info.payload
909
    vg_free = vg_info.get("vg_free", None)
907
    vg_free = vg_info.get("storage_free", None)
910 908
    if not isinstance(vg_free, int):
911 909
      raise errors.OpPrereqError("Can't compute free disk space on node"
912 910
                                 " %s for vg %s, result was '%s'" %

Also available in: Unified diff