Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1765068

Summary: The baremetal host counter in the inventory card is not updating
Product: OpenShift Container Platform Reporter: Udi Kalifon <ukalifon>
Component: Console Metal3 PluginAssignee: Honza Pokorny <hpokorny>
Status: CLOSED ERRATA QA Contact: Udi Kalifon <ukalifon>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: aos-bugs, cvultur, hpokorny, jtomasek
Target Milestone: ---   
Target Release: 4.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-23 11:09:02 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 Udi Kalifon 2019-10-24 09:50:01 UTC
Description of problem:
In the inventory card in the systems dashboards, the counter for the baremetal hosts remains a gray fading square


Version-Release number of selected component (if applicable):
4.3.0-0.okd-2019-10-23-224431


How reproducible:
100%


Steps to Reproduce:
1. Open the dashboards page and look at the last line in the inventory card


Actual results:
It says: [] Bare Metal Hosts


Expected results:
It should say: 3 Bare Metal Hosts


Additional info:
No relevant errors seem to be found in the browser console. There are some websocket connection errors and some svg errors.

Comment 1 Honza Pokorny 2019-11-06 19:24:52 UTC
I can reproduce this error in my cluster.  The bug is caused by the absence of the node maintenance CRD/operator.  The inventory card waits for the maintenance data to arrive and it never does.

Comment 2 Honza Pokorny 2019-11-07 13:48:43 UTC
After installing HCO in the cluster, this works as expected.

Comment 3 Jiri Tomasek 2019-11-07 16:34:46 UTC
This is a problem, we can't rely on the presence of that node maintenance operator. The BaremetalHost inventory item should treat the maintenance as optional. There is an 'optional': boolean on FirehoseResource which we could use. Optional resources should not be taken into account when isLoading InventoryItem prop is calculated in InventoryCard. IMHO we should filter optional resources when additionalResourcesLoaded is calculated here https://github.com/openshift/console/blob/master/frontend/public/components/dashboard/dashboards-page/overview-dashboard/inventory-card.tsx#L75

Comment 7 errata-xmlrpc 2020-01-23 11:09:02 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:0062