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 +----------------------------+----------+ | Property | Value | +----------------------------+----------+ | OS-FLV-DISABLED:disabled | False | | OS-FLV-EXT-DATA:ephemeral | 0 | | disk | 80 | | extra_specs | N/A | | id | 4 | | name | m1.large | | os-flavor-access:is_public | True | | ram | 8192 | | rxtx_factor | 1.0 | | swap | | | vcpus | 4 | +----------------------------+----------+ [root@host_192_51_151_2 ~(keystone_admin)]# nova flavor-show 0218bf36-375a-4272-a43a-b7a3b70a4c9b +----------------------------+--------------------------------------+ | Property | Value | +----------------------------+--------------------------------------+ | OS-FLV-DISABLED:disabled | False | | OS-FLV-EXT-DATA:ephemeral | 0 | | disk | 0 | | extra_specs | N/A | | id | 0218bf36-375a-4272-a43a-b7a3b70a4c9b | | name | 4H8M0Gstorage | | os-flavor-access:is_public | True | | ram | 8192 | | rxtx_factor | 1.0 | | swap | | | vcpus | 4 | +----------------------------+--------------------------------------+
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 |
+------