nova usage-list returns wrong usage
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Rongze Zhu | ||
Essex |
Fix Released
|
Undecided
|
Unassigned | ||
nova (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
nova usage-list (os-simple-
This bug exists in both Essex and Folsom
From devstack:
$ nova usage-list
Usage from 2012-08-02 to 2012-08-31:
+------
| Tenant ID | Instances | RAM MB-Hours | CPU Hours | Disk GB-Hours |
+------
| 089a61fd160c474
+------
$ nova show 328cb611-
+------
| 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 |
+----+-
description: | updated |
Changed in nova: | |
milestone: | none → folsom-rc1 |
Changed in nova: | |
importance: | Medium → High |
Changed in nova: | |
assignee: | nobody → Rongze Zhu (zrzhit) |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | folsom-rc1 → 2012.2 |
Changed in nova (Ubuntu): | |
status: | New → Fix Released |
tags: |
added: verification-done removed: verification-needed |
Confirmed. I started a tiny instance on devstack and the values don't seem to make sense. This instance had been up for less than 5 minutes.
[rbryant@ f17-devstack devstack]$ nova usage-list ------- ------- ------- ------- +------ -----+- ------- ------+ ------- ----+-- ------- ------+ ------- ------- ------- ------- +------ -----+- ------- ------+ ------- ----+-- ------- ------+ 6aa52d9916671f4 72 | 1 | 10254.78 | 20.03 | 0.00 | ------- ------- ------- ------- +------ -----+- ------- ------+ ------- ----+-- ------- ------+
Usage from 2012-08-02 to 2012-08-31:
+------
| Tenant ID | Instances | RAM MB-Hours | CPU Hours | Disk GB-Hours |
+------
| 2d1ddbdc656b410
+------