Bug 1875042
| Summary: | Missing namespaces in cpu report and memory report | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | tflannag |
| Component: | Metering Operator | Assignee: | Emily Moss <emoss> |
| Status: | CLOSED ERRATA | QA Contact: | Peter Ruan <pruan> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 4.4 | CC: | amdas, aos-bugs, dsquirre, emoss, openshift-bugzilla-robot, pruan, pweil, sd-operator-metering, tflannag, zhigwang |
| Target Milestone: | --- | ||
| Target Release: | 4.4.z | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause: Underlying SQL involved an unbalanced join which left NULLs for some fields.
Consequence: Some namespace values were missing from report.
Fix: Underlying query was remedied.
Result: Namespaces appear in reports.
|
Story Points: | --- |
| Clone Of: | 1874675 | Environment: | |
| Last Closed: | 2020-10-13 08:11:59 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1874675 | ||
| Bug Blocks: | 1852355 | ||
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 (OpenShift Container Platform 4.4.27 extras 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/RHBA-2020:4065 |
verified with 4.4.0-0.nightly-2020-09-18-132957 #! /bin/bash counter=0 matches=0 for namespace in $(oc get ns --no-headers | awk '{ print $1 }'); do res=$(oc -n $namespace get pods --no-headers 2>/dev/null | wc -l) if [[ $res -ne 0 ]]; then matches=$((matches + 1)) fi counter=$((counter + 1)) done echo "Found $matches namespaces with Pods out of $counter total namespaces" $ sh ns_match.sh Found 48 namespaces with Pods out of 64 total namespaces $ display_report_using_exposed_route namespace-cpu-utilization | wc % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 7389 0 7389 0 0 13031 0 --:--:-- --:--:-- --:--:-- 13031 49 668 7389 49 - 1(header row) == 48