Bug 2113938

Summary: Fix e2e tests for [reboots][machine_config_labels] (tsc=nowatchdog)
Product: OpenShift Container Platform Reporter: Jiří Mencák <jmencak>
Component: Node Tuning OperatorAssignee: Jiří Mencák <jmencak>
Status: CLOSED ERRATA QA Contact: liqcui
Severity: high Docs Contact:
Priority: high    
Version: 4.12CC: dagray, liqcui
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2113936 Environment:
Last Closed: 2022-08-23 15:09:42 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: 2113936    
Bug Blocks: 2116545    

Description Jiří Mencák 2022-08-02 11:23:24 UTC
+++ This bug was initially created as a clone of Bug #2113936 +++

Description of problem:
e2e tests currently fail due to changes in the underlying TuneD shipped via FDP.

Additional info:
PR with the fix and more detail:
https://github.com/openshift/cluster-node-tuning-operator/pull/410

Comment 2 liqcui 2022-08-15 02:56:05 UTC
Verified Result:
[ocpadmin@ec2-18-217-45-133 cluster-node-tuning-operator]$ make test-e2e
for d in core basic reboots; do \
  KUBERNETES_CONFIG="/home/ocpadmin/.kube/config" GOOS=linux GO111MODULE=on GOFLAGS=-mod=vendor go test -v -timeout 40m ./test/e2e/$d -ginkgo.v -ginkgo.noColor -ginkgo.failFast || exit; \
done
=== RUN   TestNodeTuningOperator
Running Suite: Node Tuning Operator e2e tests: core
===================================================
Random Seed: 1660529227
Will run 1 of 1 specs


run command 'oc [delete -f ../../../examples/realtime-mcp.yaml]':
  out=
  err=Error from server (NotFound): error when deleting "../../../examples/realtime-mcp.yaml": machineconfigpools.machineconfiguration.openshift.io "worker-rt" not found
  ret=exit status 1

• [SLOW TEST:256.289 seconds]
[reboots][machine_config_labels] Node Tuning Operator machine config labels
/home/ocpadmin/ocp-psap-testcase/nto/cluster-node-tuning-operator/test/e2e/reboots/machine_config_labels.go:18
  machine config labels
  /home/ocpadmin/ocp-psap-testcase/nto/cluster-node-tuning-operator/test/e2e/reboots/machine_config_labels.go:26
    kernel parameters set
    /home/ocpadmin/ocp-psap-testcase/nto/cluster-node-tuning-operator/test/e2e/reboots/machine_config_labels.go:43
------------------------------

Ran 3 of 3 Specs in 905.657 seconds
SUCCESS! -- 3 Passed | 0 Failed | 0 Pending | 0 Skipped
--- PASS: TestNodeTuningOperator (905.66s)
PASS
ok  	github.com/openshift/cluster-node-tuning-operator/test/e2e/reboots	905.676s

$ git branch
  0a
  master
* release-4.11
[ocpadmin@ec2-18-217-45-133 cluster-node-tuning-operator]$ oc get clusterversion
NAME      VERSION                              AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.11.0-0.nightly-2022-08-11-023608   True        False         75m     Cluster version is 4.11.0-0.nightly-2022-08-11-023608
[ocpadmin@ec2-18-217-45-133 cluster-node-tuning-operator]$

Comment 5 errata-xmlrpc 2022-08-23 15:09:42 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.11.1 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-2022:6103