Bug 1872425
| 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.6 | CC: | amdas, aos-bugs, dsquirre, emoss, pruan, pweil, sd-operator-metering, tflannag, zhigwang |
| Target Milestone: | --- | ||
| Target Release: | 4.6.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1852355 | Environment: | |
| Last Closed: | 2020-10-27 15:10:23 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: | |||
| Bug Blocks: | 1874675 | ||
pruan@MacBook-Pro ~/junk $ display_report_using_exposed_route namespace-cpu-utilization
period_start period_end namespace pod_usage_cpu_core_seconds pod_request_cpu_core_seconds pod_cpu_usage_percent pod_cpu_request_percent total_cluster_capacity_cpu_core_seconds
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC btofel-reportexpiration 4956.576540 32886.000000 0.028604 0.189785 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-apiserver 1128.716640 2494.8000000.006514 0.014398 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-apiserver-operator 103.292520 75.600000 0.000596 0.000436 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-authentication 35.327580 151.2000000.000204 0.000873 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-authentication-operator 243.625320 75.600000 0.001406 0.000436 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-cloud-credential-operator 20.800080 226.8000000.000120 0.001309 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-cluster-csi-drivers 36.528480 1827.0000000.000211 0.010544 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-cluster-machine-approver 4.772880 151.2000000.000028 0.000873 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-cluster-node-tuning-operator 18.704460 533.4000000.000108 0.003078 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-cluster-samples-operator 12.146400 151.2000000.000070 0.000873 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-cluster-storage-operator 43.448040 226.8000000.000251 0.001309 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-cluster-version 50.477640 151.2000000.000291 0.000873 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-config-operator 42.268380 75.600000 0.000244 0.000436 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-console 17.410920 302.4000000.000100 0.001745 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-console-operator 35.476740 75.600000 0.000205 0.000436 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-controller-manager 37.857420 2268.0000000.000218 0.013089 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-controller-manager-operator 38.903760 75.600000 0.000225 0.000436 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-dns 123.759780 2975.7000000.000714 0.017173 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-dns-operator 4.314600 151.2000000.000025 0.000873 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-etcd 5427.923040 13381.200000 0.031325 0.077223 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-etcd-operator 115.125600 75.600000 0.000664 0.000436 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-image-registry 45.491340 2045.4000000.000263 0.011804 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-ingress 36.064680 1512.0000000.000208 0.008726 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-ingress-operator 6.767220 151.2000000.000039 0.000873 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-insights 9.300360 75.600000 0.000054 0.000436 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-kube-apiserver 5225.202720 13516.200000 0.030155 0.078002 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-kube-apiserver-operator 187.944900 75.600000 0.001085 0.000436 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-kube-controller-manager 242.875800 5670.0000000.001402 0.032722 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-kube-controller-manager-operator 162.664200 75.600000 0.000939 0.000436 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-kube-scheduler 74.078700 3855.6000000.000428 0.022251 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-kube-scheduler-operator 144.842760 0.000836 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-kube-storage-version-migrator 0.906240 756.0000000.000005 0.004363 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-kube-storage-version-migrator-operator 60.026220 75.600000 0.000346 0.000436 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-machine-api 32.529420 907.2000000.000188 0.005235 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-machine-config-operator 238.425840 2587.2000000.001376 0.014931 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-marketplace 249.192600 913.2000000.001438 0.005270 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-metering 222.215880 1740.0000000.001282 0.010042 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-monitoring 2322.523080 2135.8200000.013403 0.012326 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-multus 96.456540 1827.0000000.000557 0.010544 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-network-operator 20.523000 75.600000 0.000118 0.000436 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-oauth-apiserver 125.559900 3402.0000000.000725 0.019633 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-operator-lifecycle-manager 446.802420 151.2000000.002578 0.000873 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-sdn 316.465560 9613.2000000.001826 0.055478 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-service-ca 25.883340 75.600000 0.000149 0.000436 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC openshift-service-ca-operator 21.954180 75.600000 0.000127 0.000436 173280.000000
2020-09-01 20:03:19 +0000 UTC 2020-12-30 23:59:59 +0000 UTC tflannag 2.247180 0.000013 173280.000000
pruan@MacBook-Pro ~/junk $ 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 7094 0 7094 0 0 15029 0 --:--:-- --:--:-- --:--:-- 15029
47 648 7094
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.6.1 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:4198 |
verified with 4.6.0-0.nightly-2020-09-01-070508 1. run the following script to get namespaces that have at least one pod #! /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" 2. create report for `namespace-memory-utilization` 3. query and count the rows (call it $rows). $rows == $matches