2016-12-05 10:36:43.833 DEBUG watcher.decision_engine.strategy.strategies.workload_balance [req-d6c0679c-85e2-429d-93c6-56b1add9f987 None None] <ModelRoot>
<ComputeNode status="enabled" uuid="host_192_51_151_10" hostname="host_192_51_151_10" human_id="" state="up" id="11" ResourceType.cpu_cores="24" ResourceType.disk="-145" ResourceType.disk_capacity="499" ResourceType.memory="257756">
<Instance state="active" hostname="" human_id="" uuid="0fd98b59-4c86-47dc-a22c-eaaf00809acd" ResourceType.cpu_cores="4" ResourceType.disk="0" ResourceType.disk_capacity="0" ResourceType.memory="16384"/>
<Instance state="active" hostname="" human_id="" uuid="1e27a634-dfc0-4252-a34e-ffadb84e8407" ResourceType.cpu_cores="2" ResourceType.disk="0" ResourceType.disk_capacity="0" ResourceType.memory="2048"/>
<Instance state="active" hostname="" human_id="" uuid="1f287080-a667-4560-916d-78a7bbb3402e" ResourceType.cpu_cores="2" ResourceType.disk="4" ResourceType.disk_capacity="4" ResourceType.memory="2048"/>
<Instance state="active" hostname="" human_id="" uuid="278483a8-99f8-4745-b7cc-33fbde218589" ResourceType.cpu_cores="2" ResourceType.disk="0" ResourceType.disk_capacity="0" ResourceType.memory="2048"/>
<Instance state="active" hostname="" human_id="" uuid="2d3c994b-7ee0-4c0d-bf88-898e1c41128e" ResourceType.cpu_cores="8" ResourceType.disk="160" ResourceType.disk_capacity="160" ResourceType.memory="16384"/>
<Instance state="active" hostname="" human_id="" uuid="2f784f48-0cc5-4076-b75f-bb2be3f126e4" ResourceType.cpu_cores="4" ResourceType.disk="0" ResourceType.disk_capacity="0" ResourceType.memory="8192"/>
</ComputeNode>
Now the disk_capacity gets from flavor.disk. but if the VM uses volume in storage array, the flavor.disk is 0.
[root@host_ 192_51_ 151_2 ~(keystone_admin)]# nova flavor-show 4 ------- ------- ------- -+----- -----+ ------- ------- ------- -+----- -----+ DISABLED: disabled | False | EXT-DATA: ephemeral | 0 | access: is_public | True | ------- ------- ------- -+----- -----+ 192_51_ 151_2 ~(keystone_admin)]# nova flavor-show 0218bf36- 375a-4272- a43a-b7a3b70a4c 9b ------- ------- ------- -+----- ------- ------- ------- ------- -----+ ------- ------- ------- -+----- ------- ------- ------- ------- -----+ DISABLED: disabled | False | EXT-DATA: ephemeral | 0 | 375a-4272- a43a-b7a3b70a4c 9b | access: is_public | True | ------- ------- ------- -+----- ------- ------- ------- ------- -----+
+------
| Property | Value |
+------
| OS-FLV-
| OS-FLV-
| disk | 80 |
| extra_specs | N/A |
| id | 4 |
| name | m1.large |
| os-flavor-
| ram | 8192 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 4 |
+------
[root@host_
+------
| Property | Value |
+------
| OS-FLV-
| OS-FLV-
| disk | 0 |
| extra_specs | N/A |
| id | 0218bf36-
| name | 4H8M0Gstorage |
| os-flavor-
| ram | 8192 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 4 |
+------