Revision da803ff1 lib/cmdlib/node.py
b/lib/cmdlib/node.py | ||
---|---|---|
1183 | 1183 |
# filter out non-vm_capable nodes |
1184 | 1184 |
toquery_node_uuids = [node.uuid for node in all_info.values() |
1185 | 1185 |
if node.vm_capable and node.uuid in node_uuids] |
1186 |
|
|
1187 |
es_flags = rpc.GetExclusiveStorageForNodes(lu.cfg, toquery_node_uuids) |
|
1188 |
# FIXME: This currently maps everything to lvm, this should be more |
|
1189 |
# flexible |
|
1186 |
# FIXME: this per default asks for storage space information for all |
|
1187 |
# enabled disk templates. Fix this by making it possible to specify |
|
1188 |
# space report fields for specific disk templates. |
|
1189 |
raw_storage_units = utils.storage.GetStorageUnitsOfCluster( |
|
1190 |
lu.cfg, include_spindles=True) |
|
1191 |
storage_units = rpc.PrepareStorageUnitsForNodes( |
|
1192 |
lu.cfg, raw_storage_units, toquery_node_uuids) |
|
1190 | 1193 |
lvm_enabled = utils.storage.IsLvmEnabled( |
1191 | 1194 |
lu.cfg.GetClusterInfo().enabled_disk_templates) |
1192 |
storage_units = utils.storage.GetStorageUnitsOfCluster( |
|
1193 |
lu.cfg, include_spindles=True) |
|
1194 | 1195 |
default_hypervisor = lu.cfg.GetHypervisorType() |
1195 | 1196 |
hvparams = lu.cfg.GetClusterInfo().hvparams[default_hypervisor] |
1196 | 1197 |
hvspecs = [(default_hypervisor, hvparams)] |
1197 | 1198 |
node_data = lu.rpc.call_node_info(toquery_node_uuids, storage_units, |
1198 |
hvspecs, es_flags)
|
|
1199 |
hvspecs) |
|
1199 | 1200 |
live_data = dict( |
1200 | 1201 |
(uuid, rpc.MakeLegacyNodeInfo(nresult.payload, |
1201 | 1202 |
require_vg_info=lvm_enabled)) |
Also available in: Unified diff