Bug 1986576 - inspect on the tuning cluster operator does not gather all tuned CRs
Summary: inspect on the tuning cluster operator does not gather all tuned CRs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node Tuning Operator
Version: 4.6
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.8.0
Assignee: Jiří Mencák
QA Contact: liqcui
URL:
Whiteboard:
Depends On:
Blocks: 1986739
TreeView+ depends on / blocked
 
Reported: 2021-07-27 19:50 UTC by Ryan Howe
Modified: 2021-08-10 11:28 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1986739 (view as bug list)
Environment:
Last Closed: 2021-08-10 11:28:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:2983 0 None None None 2021-08-10 11:28:18 UTC

Description Ryan Howe 2021-07-27 19:50:36 UTC
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
```

Comment 1 Jiří Mencák 2021-07-28 08:57:14 UTC
Thank you for the report, Ryan.
Fixed in 4.8+  Putting on QE.

Comment 4 liqcui 2021-08-04 09:24:46 UTC
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

Comment 5 liqcui 2021-08-04 09:25:45 UTC
removed duplicate comment

Comment 7 errata-xmlrpc 2021-08-10 11:28:12 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 (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


Note You need to log in before you can comment on or make changes to this bug.