Bug 1799718

Summary: Detect openstack virt platform for better support
Product: OpenShift Container Platform Reporter: Clayton Coleman <ccoleman>
Component: InstallerAssignee: Clayton Coleman <ccoleman>
Installer sub component: OpenShift on OpenStack QA Contact: David Sanz <dsanzmor>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: alegrand, anpicker, dsanzmor, erooth, kakkoyun, lcosic, mloibl, pkrupa, pprinett, surbania
Version: 4.4   
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-13 21:56:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Clayton Coleman 2020-02-06 18:48:22 UTC
Add detection for OpenStack VM type (virt_platform counting) to ensure non-cloud provider OpenStack clusters are adequately represented.  overt already is.

Comment 3 Lili Cosic 2020-02-07 13:42:18 UTC
Not sure this is release blocking bug. Lowering priority, feel free to revert if you think it is.

Comment 4 Clayton Coleman 2020-02-10 15:31:03 UTC
I had tested on the CI system OpenStack with RHCoS nodes hosted by nova compute.  In your test environment, what did you test with?

Telemetry is returning openstack nodes from 4.4 CI so I think this may be an environment specific issue we need to debug in. E.g. 

  cluster:virt_platform_nodes:sum{_id="4a59dcfb-8384-439a-a02c-e12c573a65e5",prometheus="openshift-monitoring/k8s",receive="true",type="openstack"}	6

Would you please gather the full output of dmidecode and add it as an attachment to the bug?

Comment 5 David Sanz 2020-02-18 15:12:13 UTC
Verified on 4.4.0-0.nightly-2020-02-18-140650

[morenod@morenod-laptop ~]$ oc exec -c node-exporter node-exporter-gmzrx -n openshift-monitoring -- cat /var/node_exporter/textfile/virt.prom
# HELP virt_platform reports one series per detected virtualization type. If no type is detected, the type is "none".
# TYPE virt_platform gauge
virt_platform{type="kvm"} 1
virt_platform{type="openstack"} 1

Comment 7 errata-xmlrpc 2020-05-13 21:56:46 UTC
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-2020:0581