compute node is showing wrong number of vcpus

Solution In Progress - Updated -

Issue

  • One compute node is showing an incorrect number of vcpus in an openstack setup consisting in 1 controller and 2 compute nodes:
nova hypervisor-show compute1
+---------------------------+------------------------------------------+
| Property                  | Value                                    |
+---------------------------+------------------------------------------+
| cpu_info_arch             | x86_64                                   |
| cpu_info_features         | ["pge", "avx", "clflush", "sep",         |
|                           | "syscall", "vme", "dtes64", "invpcid",   |
|                           | "tsc", "fsgsbase", "xsave", "vmx",       |
|                           | "erms", "xtpr", "cmov", "smep", "ssse3", |
|                           | "est", "pat", "monitor", "smx", "pbe",   |
|                           | "lm", "msr", "nx", "fxsr", "tm",         |
|                           | "sse4.1", "pae", "sse4.2", "pclmuldq",   |
|                           | "acpi", "fma", "tsc-deadline", "mmx",    |
|                           | "osxsave", "cx8", "mce", "de", "tm2",    |
|                           | "ht", "dca", "lahf_lm", "abm", "popcnt", |
|                           | "mca", "pdpe1gb", "apic", "sse", "f16c", |
|                           | "pse", "ds", "invtsc", "pni", "rdtscp",  |
|                           | "avx2", "aes", "sse2", "ss", "ds_cpl",   |
|                           | "bmi1", "bmi2", "pcid", "fpu", "cx16",   |
|                           | "pse36", "mtrr", "movbe", "pdcm",        |
|                           | "rdrand", "x2apic"]                      |
| cpu_info_model            | Haswell-noTSX                            |
| cpu_info_topology_cells   | 2                                        |
| cpu_info_topology_cores   | 12                                       |
| cpu_info_topology_sockets | 1                                        |
| cpu_info_topology_threads | 2                                        |
| cpu_info_vendor           | Intel                                    |
| current_workload          | 1                                        |
| disk_available_least      | 1284                                     |
| free_disk_gb              | 1255                                     |
| free_ram_mb               | 226728                                   |
| host_ip                   | 10.10.10.10                              |
| hypervisor_hostname       | compute1                                 |
| hypervisor_type           | QEMU                                     |
| hypervisor_version        | 2003000                                  |
| id                        | 3                                        |
| local_gb                  | 1289                                     |
| local_gb_used             | 34                                       |
| memory_mb                 | 257742                                   |
| memory_mb_used            | 31014                                    |
| running_vms               | 1                                        |
| service_disabled_reason   | None                                     |
| service_host              | compute1                                 |
| service_id                | 7                                        |
| state                     | up                                       |
| status                    | enabled                                  |
| vcpus                     | 0                                        |
| vcpus_used                | 2                                        |
+---------------------------+------------------------------------------+
nova host-describe compute1
+----------+------------+-----+-----------+---------+
| HOST     | PROJECT    | cpu | memory_mb | disk_gb |
+----------+------------+-----+-----------+---------+
| compute1 | (total)    | 0   | 257742    | 1289    |
| compute1 | (used_now) | 2   | 31014     | 34      |
| compute1 | (used_max) | 0   | 0         | 0       |
+----------+------------+-----+-----------+---------+
  • The compute node has 48 vcpus so it should show that in the output. Based on the output above, it is impossible to create an instance on it.

Environment

  • Red Hat OpenStack Platform 8.0 (RHOSP)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content