← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1407568] [NEW] inconsistent vcpus hours

 

Public bug reported:

When I use nova cmd (nova usage-list),I get the CPU Hours 0.24,but I check the Overview page, the summary data is similar to this:
This Period's VCPU-Hours:0.12.

the nova --debug usage-list:
RESP BODY: {"tenant_usages": [{"total_memory_mb_usage": 62.18994346666666, "total_vcpus_usage": 0.24292946666666665, "start": "2014-12-08T06:25:30.623298", "tenant_id": "59f0edbed9b74743b66d645a11874739", "stop": "2015-01-05T06:25:30.927304", "server_usages": [{"instance_id": "e9412ae7-6809-4308-a9a3-9a1935004a58", "uptime": 428, "started_at": "2015-01-05T06:18:22.000000", "ended_at": null, "memory_mb": 512, "tenant_id": "59f0edbed9b74743b66d645a11874739", "state": "active", "hours": 0.12146473333333332, "vcpus": 2, "flavor": "2C512M", "local_gb": 0, "name": "demo"}], "total_hours": 0.12146473333333332, "total_local_gb_usage": 0.0}]}

Usage from 2014-12-08 to 2015-01-06:
+----------------------------------+---------+--------------+-----------+---------------+
| Tenant ID                        | Servers | RAM MB-Hours | CPU Hours | Disk GB-Hours |
+----------------------------------+---------+--------------+-----------+---------------+
| 59f0edbed9b74743b66d645a11874739 | 1       | 62.19        | 0.24      | 0.00          |
+----------------------------------+---------+--------------+-----------+---------------+

Maybe the horizon usage summary vcpu-hours get the data from hours not
from total_vcpus_usage

** Affects: horizon
     Importance: Undecided
         Status: New

** Attachment added: "Screenshot from 2015-01-05 14:33:41.png"
   https://bugs.launchpad.net/bugs/1407568/+attachment/4292209/+files/Screenshot%20from%202015-01-05%2014%3A33%3A41.png

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1407568

Title:
  inconsistent  vcpus hours

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  When I use nova cmd (nova usage-list),I get the CPU Hours 0.24,but I check the Overview page, the summary data is similar to this:
  This Period's VCPU-Hours:0.12.

  the nova --debug usage-list:
  RESP BODY: {"tenant_usages": [{"total_memory_mb_usage": 62.18994346666666, "total_vcpus_usage": 0.24292946666666665, "start": "2014-12-08T06:25:30.623298", "tenant_id": "59f0edbed9b74743b66d645a11874739", "stop": "2015-01-05T06:25:30.927304", "server_usages": [{"instance_id": "e9412ae7-6809-4308-a9a3-9a1935004a58", "uptime": 428, "started_at": "2015-01-05T06:18:22.000000", "ended_at": null, "memory_mb": 512, "tenant_id": "59f0edbed9b74743b66d645a11874739", "state": "active", "hours": 0.12146473333333332, "vcpus": 2, "flavor": "2C512M", "local_gb": 0, "name": "demo"}], "total_hours": 0.12146473333333332, "total_local_gb_usage": 0.0}]}

  Usage from 2014-12-08 to 2015-01-06:
  +----------------------------------+---------+--------------+-----------+---------------+
  | Tenant ID                        | Servers | RAM MB-Hours | CPU Hours | Disk GB-Hours |
  +----------------------------------+---------+--------------+-----------+---------------+
  | 59f0edbed9b74743b66d645a11874739 | 1       | 62.19        | 0.24      | 0.00          |
  +----------------------------------+---------+--------------+-----------+---------------+

  Maybe the horizon usage summary vcpu-hours get the data from hours not
  from total_vcpus_usage

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1407568/+subscriptions


Follow ups

References