current_workload in nova hypervisor-show not recover after nova suspend/resume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Medium
|
Unassigned |
Bug Description
with nova suspend/resume action, nova hypervisor-show <hypervisor-id> does not recover the current_workload value.
the observation is based on Grizzly, nova version is 2.10.0.
Below is the console log: (issue also reproduced on kvm hypervisor)
Steps:
[root@ci-
+------
| ID | Name | Status | Networks |
+------
| cc2bbd51-
+------
[root@ci-
+------
| Property | Value |
+------
| cpu_info | {"model": "Intel(R) Xeon(R) CPU E5540 @ 2.53GHz", "vendor": "HP", "topology": {"cores": 8, "threads": 16, "sockets": 2}} |
| current_workload | 1 |
| disk_available_
| free_disk_gb | 164 |
| free_ram_mb | 38556 |
| hypervisor_hostname | domain-
| hypervisor_type | VMware ESXi |
| hypervisor_version | 500 |
| id | 9 |
| local_gb | 224 |
| local_gb_used | 60 |
| memory_mb | 41116 |
| memory_mb_used | 2560 |
| running_vms | 2 |
| service_host | mslsh104.mgmt.local |
| service_id | 13 |
| vcpus | 200 |
| vcpus_used | 2 |
+------
[root@ci-
+------
| ID | Name | Status | Networks |
+------
| cc2bbd51-
+------
[root@ci-
[root@ci-
+------
| Property | Value |
+------
| cpu_info | {"model": "Intel(R) Xeon(R) CPU E5540 @ 2.53GHz", "vendor": "HP", "topology": {"cores": 8, "threads": 16, "sockets": 2}} |
| current_workload | 0 |
| disk_available_
| free_disk_gb | 164 |
| free_ram_mb | 38555 |
| hypervisor_hostname | domain-
| hypervisor_type | VMware ESXi |
| hypervisor_version | 500 |
| id | 9 |
| local_gb | 224 |
| local_gb_used | 60 |
| memory_mb | 41115 |
| memory_mb_used | 2560 |
| running_vms | 2 |
| service_host | mslsh104.mgmt.local |
| service_id | 13 |
| vcpus | 200 |
| vcpus_used | 2 |
+------
[root@ci-
[root@ci-
+------
| ID | Name | Status | Networks |
+------
| cc2bbd51-
+------
[root@ci-
+------
| Property | Value |
+------
| cpu_info | {"model": "Intel(R) Xeon(R) CPU E5540 @ 2.53GHz", "vendor": "HP", "topology": {"cores": 8, "threads": 16, "sockets": 2}} |
| current_workload | 0 |
| disk_available_
| free_disk_gb | 164 |
| free_ram_mb | 38555 |
| hypervisor_hostname | domain-
| hypervisor_type | VMware ESXi |
| hypervisor_version | 500 |
| id | 9 |
| local_gb | 224 |
| local_gb_used | 60 |
| memory_mb | 41115 |
| memory_mb_used | 2560 |
| running_vms | 2 |
| service_host | mslsh104.mgmt.local |
| service_id | 13 |
| vcpus | 200 |
| vcpus_used | 2 |
+------
tags: | added: vmware |
Changed in nova: | |
status: | Confirmed → Incomplete |
One potential work-around is to place the VM in the "automatic boot" list under "Virtual Machine - Start up and Shut down" in vCenter. This should be part of the VM spawn procedure.