Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1581844 - Hypervisor show not showing load average on certain compute nodes
Hypervisor show not showing load average on certain compute nodes
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-openstackclient (Show other bugs)
10.0 (Newton)
Unspecified Unspecified
medium Severity medium
: z9
: 10.0 (Newton)
Assigned To: Julie Pichon
Shai Revivo
: Triaged, ZStream
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-05-23 14:33 EDT by jhardee
Modified: 2018-09-17 13:00 EDT (History)
19 users (show)

See Also:
Fixed In Version: python-openstackclient-3.2.1-4.el7ost
Doc Type: Bug Fix
Doc Text:
Previously, the regular expression used to match and extract the load average from Nova hypervisors load average API was incorrect. As a result, the load average would not display if the number of users was 1. With this update, the regular expression matches all possible load average formats, and the load average displays correctly in all cases.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-09-17 12:59:20 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:2671 None None None 2018-09-17 13:00 EDT

  None (edit)
Description jhardee 2018-05-23 14:33:12 EDT
Description of problem:

Running "openstack hypervisor show" outputs differ between compute nodes.  Some compute nodes showing uptime data, some compute nodes are not showing uptime data output.


Version-Release number of selected component (if applicable):
openstack-nova-compute-14.1.0-3.el7ost.noarch


How reproducible: 
2 compute nodes of many.  One environment.


Steps to Reproduce: 
1. Deploy overcloud 
2. Run "openstack hypervisor show" on multiple compute nodes

Actual results: Not showing uptime data on certain compute nodes


Expected results: uptime data shown on all compute nodes.


Additional info:
Comment 2 Jose 2018-05-23 15:08:18 EDT
Any idea on what is causing this bug?
Comment 5 Artom Lifshitz 2018-05-24 15:26:03 EDT
The load_average field in the openstackclient output comes from the hypervisor-uptime API [1].

The first thing I would do to try to narrow down the exact cause of this is try querying the same API with the nova client, so:

  $ nova hypervisor-uptime <hypervisor uuid>

Internally, all the libvirt driver does is run the 'uptime' command on the compute host. I would also try SSHing to the compute host and running 'uptime' as a non-root user:

  $ uptime

Once we have those two pieces of information, we can investigate further based on the results.

Cheers!

[1] https://developer.openstack.org/api-ref/compute/#show-hypervisor-uptime
Comment 6 Jose 2018-05-25 09:20:52 EDT
[stack@cldvcpdrc ~]$ nova hypervisor-uptime cldvcpsrva001.cloudmandic.com.br
+---------------------+-----------------------------------------------------------------------+
| Property            | Value                                                                 |
+---------------------+-----------------------------------------------------------------------+
| hypervisor_hostname | cldvcpsrva001.cloudmandic.com.br                                      |
| id                  | 30                                                                    |
| state               | up                                                                    |
| status              | enabled                                                               |
| uptime              |  10:19:45 up 72 days, 17:04,  1 user,  load average: 1.30, 1.36, 1.28 |
|                     |                                                                       |
+---------------------+-----------------------------------------------------------------------+

[stack@cldvcpdrc ~]$ openstack hypervisor show cldvcpsrva001.cloudmandic.com.br
+----------------------+-------------------------------------------------------------------------------------------------------------------------------------+
| Field                | Value                                                                                                                               |
+----------------------+-------------------------------------------------------------------------------------------------------------------------------------+
| aggregates           | [u'xeon-E5-2620', u'windows', u'aurek']                                                                                             |
| cpu_info             | {"vendor": "Intel", "model": "Broadwell", "arch": "x86_64", "features": ["pge", "avx", "xsaveopt", "clflush", "sep", "rtm",         |
|                      | "tsc_adjust", "vme", "dtes64", "invpcid", "tsc", "fsgsbase", "xsave", "smap", "bmi2", "vmx", "erms", "xtpr", "cmov", "hle", "smep", |
|                      | "pcid", "est", "pat", "monitor", "smx", "pbe", "lm", "msr", "adx", "3dnowprefetch", "nx", "fxsr", "syscall", "tm", "sse4.1", "pae", |
|                      | "sse4.2", "pclmuldq", "acpi", "fma", "pni", "tsc-deadline", "popcnt", "mmx", "osxsave", "cx8", "mce", "de", "rdtscp", "ht", "dca",  |
|                      | "lahf_lm", "abm", "rdseed", "pdcm", "mca", "pdpe1gb", "mbm_local", "sse", "f16c", "pse", "ds", "invtsc", "mbm_total", "tm2",        |
|                      | "avx2", "aes", "sse2", "ss", "ds_cpl", "arat", "bmi1", "apic", "ssse3", "fpu", "cx16", "pse36", "mtrr", "movbe", "rdrand", "cmt",   |
|                      | "x2apic"], "topology": {"cores": 8, "cells": 2, "threads": 2, "sockets": 1}}                                                        |
| current_workload     | 0                                                                                                                                   |
| disk_available_least | 17831                                                                                                                               |
| free_disk_gb         | 19509                                                                                                                               |
| free_ram_mb          | 323362                                                                                                                              |
| host_ip              | 10.252.2.25                                                                                                                         |
| hypervisor_hostname  | cldvcpsrva001.cloudmandic.com.br                                                                                                    |
| hypervisor_type      | QEMU                                                                                                                                |
| hypervisor_version   | 2009000                                                                                                                             |
| id                   | 30                                                                                                                                  |
| local_gb             | 20009                                                                                                                               |
| local_gb_used        | 500                                                                                                                                 |
| memory_mb            | 524066                                                                                                                              |
| memory_mb_used       | 200704                                                                                                                              |
| running_vms          | 15                                                                                                                                  |
| service_host         | cldvcpsrva001.cloudmandic.com.br                                                                                                    |
| service_id           | 135                                                                                                                                 |
| state                | up                                                                                                                                  |
| status               | enabled                                                                                                                             |
| vcpus                | 32                                                                                                                                  |
| vcpus_used           | 74                                                                                                                                  |
+----------------------+-------------------------------------------------------------------------------------------------------------------------------------+

[heat-admin@cldvcpsrva001 ~]$ uptime
 10:20:25 up 72 days, 17:05,  2 users,  load average: 0,99, 1,27, 1,25
Comment 7 Artom Lifshitz 2018-05-25 13:30:04 EDT
This is a bug in openstackclient that was fixed upstream in the ocata (OSP11) cycle [1]. I've posted a backport to OSP10 [2].

[1] https://review.openstack.org/#/c/353555/
[2] https://code.engineering.redhat.com/gerrit/#/c/139897/
Comment 15 Alex 2018-09-03 04:01:48 EDT
Hi there,

If this bug requires doc text for errata release, please set the 'Doc Type' and provide draft text according to the template in the 'Doc Text' field.

The documentation team will review, edit, and approve the text.

If this bug does not require doc text, please set the 'requires_doc_text' flag to -.

Thanks,
Alex
Comment 17 errata-xmlrpc 2018-09-17 12:59:20 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:2671

Note You need to log in before you can comment on or make changes to this bug.