← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1894771] [NEW] Hypervisor shows negative numbers after launching instances on baremetal nodes

 

Public bug reported:

Testing with Train version with ironic driver.
Before launching instances on baremetal nodes, # nova hypervisor-show <uuid> command shows 0 for vcpus, memory and disk fields, which are set to zero in ironic.driver code.
This is still acceptable as baremetal resources are counted in resource class, however, after launching instance on the baremetal node, the vcpu/mem/disk fields appear to be negative in hypervisor-show details, and the negative numbers correlate with the flavor's vcpu/mem/disk fields.
[root@train ~(keystone_admin)]#  nova hypervisor-show e12c91fb-4c73-406f-8b9e-b0ef3c9c829a
+-------------------------+--------------------------------------+
| Property                | Value                                |
+-------------------------+--------------------------------------+
| cpu_info                | {}                                   |
| current_workload        | 0                                    |
| disk_available_least    | 0                                    |
| free_disk_gb            | -100                                 |
| free_ram_mb             | -16384                               |
| host_ip                 | 192.168.10.111                       |
| hypervisor_hostname     | e12c91fb-4c73-406f-8b9e-b0ef3c9c829a |
| hypervisor_type         | ironic                               |
| hypervisor_version      | 1                                    |
| id                      | e12c91fb-4c73-406f-8b9e-b0ef3c9c829a |
| local_gb                | 0                                    |
| local_gb_used           | 100                                  |
| memory_mb               | 0                                    |
| memory_mb_used          | 16384                                |
| running_vms             | 1                                    |
| service_disabled_reason | None                                 |
| service_host            | train.ironic                    |
| service_id              | 23464515-e938-47b1-807e-fb0e3d8250e3 |
| state                   | up                                   |
| status                  | enabled                              |
| vcpus                   | 0                                    |
| vcpus_used              | 8                                    |
+-------------------------+--------------------------------------+
The hypervisor detail does not affect the functions of baremetal instances, but is quite confusing.
Besides, nova quotas and usages are also affected by the baremetal flavor's vcpu/mem/disk fields, which maybe not able to describe the resources that the instance occupies.

** Affects: nova
     Importance: Undecided
         Status: New

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

Title:
  Hypervisor shows negative numbers after launching instances on
  baremetal nodes

Status in OpenStack Compute (nova):
  New

Bug description:
  Testing with Train version with ironic driver.
  Before launching instances on baremetal nodes, # nova hypervisor-show <uuid> command shows 0 for vcpus, memory and disk fields, which are set to zero in ironic.driver code.
  This is still acceptable as baremetal resources are counted in resource class, however, after launching instance on the baremetal node, the vcpu/mem/disk fields appear to be negative in hypervisor-show details, and the negative numbers correlate with the flavor's vcpu/mem/disk fields.
  [root@train ~(keystone_admin)]#  nova hypervisor-show e12c91fb-4c73-406f-8b9e-b0ef3c9c829a
  +-------------------------+--------------------------------------+
  | Property                | Value                                |
  +-------------------------+--------------------------------------+
  | cpu_info                | {}                                   |
  | current_workload        | 0                                    |
  | disk_available_least    | 0                                    |
  | free_disk_gb            | -100                                 |
  | free_ram_mb             | -16384                               |
  | host_ip                 | 192.168.10.111                       |
  | hypervisor_hostname     | e12c91fb-4c73-406f-8b9e-b0ef3c9c829a |
  | hypervisor_type         | ironic                               |
  | hypervisor_version      | 1                                    |
  | id                      | e12c91fb-4c73-406f-8b9e-b0ef3c9c829a |
  | local_gb                | 0                                    |
  | local_gb_used           | 100                                  |
  | memory_mb               | 0                                    |
  | memory_mb_used          | 16384                                |
  | running_vms             | 1                                    |
  | service_disabled_reason | None                                 |
  | service_host            | train.ironic                    |
  | service_id              | 23464515-e938-47b1-807e-fb0e3d8250e3 |
  | state                   | up                                   |
  | status                  | enabled                              |
  | vcpus                   | 0                                    |
  | vcpus_used              | 8                                    |
  +-------------------------+--------------------------------------+
  The hypervisor detail does not affect the functions of baremetal instances, but is quite confusing.
  Besides, nova quotas and usages are also affected by the baremetal flavor's vcpu/mem/disk fields, which maybe not able to describe the resources that the instance occupies.

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


Follow ups