Bug 1986739 - 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.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.7.z
Assignee: Jiří Mencák
QA Contact: Simon
URL:
Whiteboard:
Depends On: 1986576
Blocks: 1990629
TreeView+ depends on / blocked
 
Reported: 2021-07-28 09:00 UTC by Jiří Mencák
Modified: 2021-08-17 12:12 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1986576
Environment:
Last Closed: 2021-08-17 12:12:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-node-tuning-operator pull 255 0 None None None 2021-08-04 09:29:16 UTC
Red Hat Product Errata RHBA-2021:3032 0 None None None 2021-08-17 12:12:50 UTC

Description Jiří Mencák 2021-07-28 09:00:01 UTC
+++ This bug was initially created as a clone of Bug #1986576 +++

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
```

--- Additional comment from Jiří Mencák on 2021-07-28 08:57:14 UTC ---

Thank you for the report, Ryan.
Fixed in 4.8+  Putting on QE.

Comment 3 Simon 2021-08-10 17:22:29 UTC
$ oc get tuned
NAME            AGE
default         149m
master-custom   59s
rendered        149m

$ oc adm inspect co/node-tuning
Gathering data for ns/openshift-cluster-node-tuning-operator...
Wrote inspect data to inspect.local.506920476195171571.

$ cat inspect.local.506920476195171571/namespaces/openshift-cluster-node-tuning-operator/tuned.openshift.io/tuneds/master-custom.yaml 
---
apiVersion: tuned.openshift.io/v1
kind: Tuned
metadata:
  creationTimestamp: "2021-08-10T17:15:06Z"
  generation: 1
  name: master-custom
  namespace: openshift-cluster-node-tuning-operator
  resourceVersion: "69937"
  selfLink: /apis/tuned.openshift.io/v1/namespaces/openshift-cluster-node-tuning-operator/tuneds/master-custom
  uid: b52d0f92-d705-400a-b436-7a73faa6ca97
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

$ oc adm must-gather
[must-gather      ] OUT Using must-gather plug-in image: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:040f48c020420ff93b227216469f6c2971cf10fac2b0b52ea9853e88ec1964a6
[...]

$ cat must-gather.local.100876708693425642/quay-io-openshift-release-dev-ocp-v4-0-art-dev-sha256-040f48c020420ff93b227216469f6c2971cf10fac2b0b52ea9853e88ec1964a6/namespaces/openshift-cluster-node-tuning-operator/tuned.openshift.io/tuneds/master-custom.yaml 
---
apiVersion: tuned.openshift.io/v1
kind: Tuned
metadata:
  creationTimestamp: "2021-08-10T17:15:06Z"
  generation: 1
  managedFields:
  - apiVersion: tuned.openshift.io/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:spec:
        .: {}
        f:profile: {}
        f:recommend: {}
    manager: kubectl-create
    operation: Update
    time: "2021-08-10T17:15:06Z"
  name: master-custom
  namespace: openshift-cluster-node-tuning-operator
  resourceVersion: "69937"
  selfLink: /apis/tuned.openshift.io/v1/namespaces/openshift-cluster-node-tuning-operator/tuneds/master-custom
  uid: b52d0f92-d705-400a-b436-7a73faa6ca97
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

$ oc get clusterversions.config.openshift.io 
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.7.0-0.nightly-2021-08-06-180629   True        False         135m    Cluster version is 4.7.0-0.nightly-2021-08-06-180629

Comment 5 errata-xmlrpc 2021-08-17 12:12:09 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 (OpenShift Container Platform 4.7.24 bug fix 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-2021:3032


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