Bug 1986576
| Summary: | inspect on the tuning cluster operator does not gather all tuned CRs | |||
|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Ryan Howe <rhowe> | |
| Component: | Node Tuning Operator | Assignee: | Jiří Mencák <jmencak> | |
| Status: | CLOSED ERRATA | QA Contact: | liqcui | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 4.6 | CC: | aos-bugs, dagray, liqcui | |
| Target Milestone: | --- | |||
| Target Release: | 4.8.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | No Doc Update | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1986739 (view as bug list) | Environment: | ||
| Last Closed: | 2021-08-10 11:28:12 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1986739 | |||
Thank you for the report, Ryan. Fixed in 4.8+ Putting on QE. Verify Steps:
OCP/NTO Version:
4.8.0-0.nightly-2021-07-31-065602
Create tuned profile as below:
cat master-profile.yaml
apiVersion: tuned.openshift.io/v1
kind: Tuned
metadata:
name: master-custom
namespace: openshift-cluster-node-tuning-operator
spec:
profile:
- data: |
[main]
summary=A custom OpenShift IPS host profile
include=openshift-control-plane
[sysctl]
net.core.somaxconn = 10240
net.core.netdev_max_backlog = 10000
net.ipv4.tcp_max_syn_backlog = 20480
name: master-custom
recommend:
- match:
- label: node-role.kubernetes.io/master
priority: 10
profile: master-custom
Verify Result:
$ oc get tuned -n openshift-cluster-node-tuning-operator
NAME AGE
default 48m
master-custom 40s
rendered 48m
oc adm inspect co/node-tuning
[kubeadmin@ec2-18-217-45-133 tuneds]$ pwd
/home/kubeadmin/nto/inspect.local.7437437409229937131/namespaces/openshift-cluster-node-tuning-operator/tuned.openshift.io/tuneds
[kubeadmin@ec2-18-217-45-133 tuneds]$ cat master-custom.yaml
---
apiVersion: tuned.openshift.io/v1
kind: Tuned
metadata:
creationTimestamp: "2021-08-04T08:56:38Z"
generation: 1
name: master-custom
namespace: openshift-cluster-node-tuning-operator
resourceVersion: "43853"
uid: c5894090-4237-4ea4-aea7-e76935b12654
spec:
profile:
- data: |
[main]
summary=A custom OpenShift IPS host profile
include=openshift-control-plane
[sysctl]
net.core.somaxconn = 10240
net.core.netdev_max_backlog = 10000
net.ipv4.tcp_max_syn_backlog = 20480
name: master-custom
recommend:
- match:
- label: node-role.kubernetes.io/master
priority: 10
profile: master-custom
[kubeadmin@ec2-18-217-45-133 tuneds]$ ls -l master-custom.yaml
-rwxr-xr-x. 1 kubeadmin kubeadmin 664 Aug 4 09:11 master-custom.yaml
oc adm must-gather
cd must-gather.local.7019908591260968172/quay-io-openshift-release-dev-ocp-v4-0-art-dev-sha256-eede85cbd33388f7e18954e5ce8ad9616e91df05ace604966c0a44111d85c897/namespaces/openshift-cluster-node-tuning-operator/tuned.openshift.io/tuneds
tuneds]$ ls
default.yaml master-custom.yaml rendered.yaml
Summary:
All tuned captured by oc adm must-gather and oc adm inspect co/node-tuning
removed duplicate comment 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.8.4 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-2021:2983 |
Description of problem: inspect on the tuning cluster operator does not gather all tuned CRs, it only gathers the default Version-Release number of selected component (if applicable): 4.6 4.7 How reproducible: 100% Steps to Reproduce: 1. Create a test tuned profile in openshift-cluster-node-tuning-operator [1] 2. oc adm inspect co/tuned or get must-gather 3. Only default tuned is captured Actual results: Only default tuned is captured Expected results: All tuned CRs captured Additional info: ``` apiVersion: tuned.openshift.io/v1 kind: Tuned metadata: name: master-custom namespace: openshift-cluster-node-tuning-operator spec: profile: - data: | [main] summary=A custom OpenShift IPS host profile include=openshift-control-plane [sysctl] net.core.somaxconn = 10240 net.core.netdev_max_backlog = 10000 net.ipv4.tcp_max_syn_backlog = 20480 name: master-custom recommend: - match: - label: node-role.kubernetes.io/master priority: 10 profile: master-custom ```