nova usage-list (os-simple-tenant-usage) does not return correct results. the os-simple-tenant-usage extension only gives correct results as called by horizon.
$ nova usage-list
Usage from 2012-08-02 to 2012-08-31:
+----------------------------------+-----------+--------------+-----------+---------------+
| Tenant ID | Instances | RAM MB-Hours | CPU Hours | Disk GB-Hours |
+----------------------------------+-----------+--------------+-----------+---------------+
| 089a61fd160c474d979849905613428f | 1 | 12699.23 | 24.80 | 0.00 |
+----------------------------------+-----------+--------------+-----------+---------------+
nova usage-list (os-simple- tenant- usage) does not return correct results. the os-simple- tenant- usage extension only gives correct results as called by horizon.
$ nova usage-list ------- ------- ------- ------- +------ -----+- ------- ------+ ------- ----+-- ------- ------+ ------- ------- ------- ------- +------ -----+- ------- ------+ ------- ----+-- ------- ------+ d97984990561342 8f | 1 | 12699.23 | 24.80 | 0.00 | ------- ------- ------- ------- +------ -----+- ------- ------+ ------- ----+-- ------- ------+
Usage from 2012-08-02 to 2012-08-31:
+------
| Tenant ID | Instances | RAM MB-Hours | CPU Hours | Disk GB-Hours |
+------
| 089a61fd160c474
+------
$ nova show 328cb611- 28c2-4993- b08b-da505e8267 00 ------- ------- ------- ------- ---+--- ------- ------- ------- ------- ------- ------- ------- ------- -----+ ------- ------- ------- ------- ---+--- ------- ------- ------- ------- ------- ------- ------- ------- -----+ SRV-ATTR: host | precise | SRV-ATTR: hypervisor_ hostname | precise. | SRV-ATTR: instance_ name | instance-00000001 | STS:power_ state | 1 | STS:task_ state | None | 30T17:48: 28Z | 0d9e83b7362ef25 05e81f6cb9c4a12 8f8eaf69f98 | 28c2-4993- b08b-da505e8267 00 | 0.3.0-x86_ 64-uec (c3f27bf5- 1201-4431- be06-e4006c2ba2 eb) | 28c2-4993- b08b-da505e8267 00 | d97984990561342 8f | 30T17:48: 38Z | 0a910d80faf541d 4a | ------- ------- ------- ------- ---+--- ------- ------- ------- ------- ------- ------- ------- ------- -----+
+------
| Property | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | active |
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2012-08-
| flavor | m1.tiny (1) |
| hostId | 34d14cb95a83063
| id | 328cb611-
| image | cirros-
| key_name | None |
| metadata | {} |
| name | Server 328cb611-
| private network | 10.0.0.2 |
| progress | 0 |
| security_groups | [{u'name': u'default'}] |
| status | ACTIVE |
| tenant_id | 089a61fd160c474
| updated | 2012-08-
| user_id | a2cd4f25d69d491
+------
$ nova flavor-list ------- ---+--- ------- -+----- -+----- ------+ ------+ ------- +------ ------- +------ -----+ ------- ---+--- ------- -+----- -+----- ------+ ------+ ------- +------ ------- +------ -----+ ------- ---+--- ------- -+----- -+----- ------+ ------+ ------- +------ ------- +------ -----+
+----+-
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+----+-
| 1 | m1.tiny | 512 | 0 | 0 | | 1 | 1.0 | True |
| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True |
| 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True |
| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True |
| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True |
+----+-