Created attachment 1774009 [details] Worker 0 Description of problem: in all in one cluster, a node act both as master and worker, when we count worker nodes the number for worker nodes will be 0 Version-Release number of selected component (if applicable): 4.8.0-0.nightly-2021-04-20-190957 How reproducible: Always Steps to Reproduce: 1. setup All in One OCP cluster with 3 masters(workers) 2. goes to Compute -> Nodes, click the Filter dropdown 3. Actual results: 2. in Role filter, it shows Worker 0 Expected results: 2. since we have three workers, we should show Worker 3 Additional info:
Looks like the `getNodeRole` filter is not taking in count case where master nodes are also workers. Triaging to DevConsole team for further investigation.
Not a DevConsole issue, triaging to Kubevirt for further investigation.
looks like the code that check if node is worker or admin is in the management console: https://github.com/openshift/console/blob/473ed7a2e2b3b703e84cd11406f535dea699c9fa/frontend/packages/console-shared/src/selectors/node.ts#L23 moving to management compoenent
Created attachment 1905542 [details] correct worker node count set up single node cluster in which the node are both master and worker, Nodes list filter shows Worker count is 1 and Master count is 1, this is correct verified on 4.12.0-0.nightly-2022-08-12-053438
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 (Moderate: OpenShift Container Platform 4.12.0 bug fix and security update), 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/RHSA-2022:7399