-
- es_flags = rpc.GetExclusiveStorageForNodes(lu.cfg, toquery_node_uuids)
- # FIXME: This currently maps everything to lvm, this should be more
- # flexible
- vg_req = rpc.BuildVgInfoQuery(lu.cfg)
+ lvm_enabled = utils.storage.IsLvmEnabled(
+ lu.cfg.GetClusterInfo().enabled_disk_templates)
+ # FIXME: this per default asks for storage space information for all
+ # enabled disk templates. Fix this by making it possible to specify
+ # space report fields for specific disk templates.
+ raw_storage_units = utils.storage.GetStorageUnitsOfCluster(
+ lu.cfg, include_spindles=lvm_enabled)
+ storage_units = rpc.PrepareStorageUnitsForNodes(
+ lu.cfg, raw_storage_units, toquery_node_uuids)