</listitem>
</varlistentry>
<varlistentry>
+ <term>total_cpus</term>
+ <listitem>
+ <simpara>the physical number of CPUs present on the
+ machine; depending on the hypervisor, this might or
+ might not be equal to how many CPUs the node
+ operating system sees;</simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
<term>primary_ip</term>
<listitem>
<simpara>the primary IP address of the
raise errors.OpExecError("Can't get data for node %s" % nname)
remote_info = node_data[nname]
for attr in ['memory_total', 'memory_free', 'memory_dom0',
- 'vg_size', 'vg_free']:
+ 'vg_size', 'vg_free', 'cpu_total']:
if attr not in remote_info:
raise errors.OpExecError("Node '%s' didn't return attribute '%s'" %
(nname, attr))
"free_disk": remote_info['vg_free'],
"primary_ip": ninfo.primary_ip,
"secondary_ip": ninfo.secondary_ip,
+ "total_cpus": remote_info['cpu_total'],
}
node_results[nname] = pnr
data["nodes"] = node_results