nova hypervisor-stats displays 0 instead of expected values
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
1. Cloned latest vanilla devstack with latest Mitaka code and used pxe_ssh driver to create ironic-node.
ironic node-create --name NODE -d pxe_ssh
2. Updated node with "required" pxe_ssh attributes
ironic node-update $NODE_UUID add \
driver_
driver_
driver_
ironic node-update $NODE_UUID add instance_
ironic node-update $NODE_UUID add \
driver_
driver_
driver_
3. nova hypervisor-list shows the node created
4. nova hypervisor-stats lists everything as 0 despite specifications for flavor creation
as follows:
RAM_MB=1028
CPU=2
DISK_GB=100
ARCH='{
Updated node with above properties:
ironic node-update $NODE_UUID add \
properties/
properties/
properties/
properties/
nova hypervisor-stats
+------
| Property | Value |
+------
| count | 1 |
| current_workload | 0 |
| disk_available_
| free_disk_gb | 0 |
| free_ram_mb | 0 |
| local_gb | 0 |
| local_gb_used | 0 |
| memory_mb | 0 |
| memory_mb_used | 0 |
| running_vms | 0 |
| vcpus | 0 |
| vcpus_used | 0 |
+------
Anyone knows the reason why is it listing so? I tried using pxe_ipmitool and created ironic node via it, the hypervisor-stats came up just fine.
nova hypervisor-stats
+------
| Property | Value |
+------
| count | 1 |
| current_workload | 0 |
| disk_available_
| free_disk_gb | 100 |
| free_ram_mb | 1028 |
| local_gb | 100 |
| local_gb_used | 0 |
| memory_mb | 1028 |
| memory_mb_used | 0 |
| running_vms | 0 |
| vcpus | 2 |
| vcpus_used | 0 |
+------
NOTE: The behavior was also seen for fake_agent and fake drivers.
As a result, In spite of ironic node creation having same resource configured as the flavor used while booting the BM fails since nova scheduler filters the hypervisor with the flavor of BM and says that no such hypervisor found. Bm goes to error state.
Thanks Jatin to raise this issue, I will try to recreate and investigate this issue, and update the result here.