Wrong hypervisor statistics reported
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Liyingjun |
Bug Description
The hypervisor statistics reported through nova hypervisor-stats is wrong if there are other nova services running on the compute node, output below:
$ nova hypervisor-stats
+------
| Property | Value |
+------
| count | 5 |
| current_workload | 0 |
| disk_available_
| free_disk_gb | 455 |
| free_ram_mb | 34160 |
| local_gb | 455 |
| local_gb_used | 0 |
| memory_mb | 39920 |
| memory_mb_used | 5760 |
| running_vms | 15 |
| vcpus | 20 |
| vcpus_used | 15 |
+------
But i only have 3 instances launched, and 1 hypervisor with 4 vcpus... seems like the result is multiplied by 5.
$ nova hypervisor-list
+----+-
| ID | Hypervisor hostname |
+----+-
| 1 | holly |
+----+-
$ nova hypervisor-show 1
+------
| Property | Value |
+------
| cpu_info_arch | x86_64 |
| cpu_info_features | ["pge", "clflush", "sep", "syscall", "vme", "dtes64", "tsc", "xsave", "vmx", "xtpr", "cmov", "ssse3", "est", "pat", "monitor", "lm", "msr", "nx", "fxsr", "tm", "sse4.1", "pae", "acpi", "de", "mmx", "osxsave", "cx8", "mce", "mtrr", "ht", "pse", "lahf_lm", "pdcm", "mca", "apic", "sse", "ds", "pni", "tm2", "sse2", "ss", "pbe", "fpu", "cx16", "pse36", "ds_cpl"] |
| cpu_info_model | Penryn |
| cpu_info_
| cpu_info_
| cpu_info_
| cpu_info_vendor | Intel |
| current_workload | 0 |
| disk_available_
| free_disk_gb | 91 |
| free_ram_mb | 6832 |
| host_ip | 192.168.70.11 |
| hypervisor_hostname | holly |
| hypervisor_type | QEMU |
| hypervisor_version | 2000000 |
| id | 1 |
| local_gb | 91 |
| local_gb_used | 0 |
| memory_mb | 7984 |
| memory_mb_used | 1152 |
| running_vms | 3 |
| service_
| service_host | holly |
| service_id | 5 |
| state | up |
| status | enabled |
| vcpus | 4 |
| vcpus_used | 3 |
+------
description: | updated |
Changed in nova: | |
importance: | Undecided → High |
Changed in nova: | |
assignee: | Liyingjun (liyingjun) → Sylvain Bauza (sylvain-bauza) |
Changed in nova: | |
milestone: | none → kilo-3 |
tags: | added: compute |
tags: | added: low-hanging-fruit |
Changed in nova: | |
assignee: | Sylvain Bauza (sylvain-bauza) → Liyingjun (liyingjun) |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | kilo-3 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/152372
Review: https:/