Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2116545

Summary: Fix e2e tests for [reboots][machine_config_labels] (tsc=nowatchdog)
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
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.10.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-23 18:29:03 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: 2113938    
Bug Blocks:    

Description OpenShift BugZilla Robot 2022-08-08 19:20:09 UTC
+++ This bug was initially created as a clone of Bug #2113938 +++

+++ 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-16 02:25:28 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: 1660615516
Will run 1 of 1 specs

[core][cluster_version] Node Tuning Operator host, container OS and cluster version 
  host, container OS and cluster version retrievable
  /home/ocpadmin/ocp-psap-testcase/nto/cluster-node-tuning-operator/test/e2e/core/cluster_version.go:20
STEP: getting a list of worker nodes
STEP: getting a TuneD Pod running on node ip-10-0-130-155.us-east-2.compute.internal
STEP: getting the host OS version on node ip-10-0-130-155.us-east-2.compute.internal
NAME="Red Hat Enterprise Linux CoreOS"
VERSION="410.84.202208151728-0"
ID="rhcos"
ID_LIKE="rhel fedora"
VERSION_ID="4.10"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux CoreOS 410.84.202208151728-0 (Ootpa)"
ANSI_COLOR="0;31"

.........

run command 'oc [delete -n openshift-cluster-node-tuning-operator -f ../testing_manifests/kernel_parameter_add_rm-child.yaml]':
  out=
  err=Error from server (NotFound): error when deleting "../testing_manifests/kernel_parameter_add_rm-child.yaml": tuneds.tuned.openshift.io "openshift-kernel-parameter-remove-child" not found
  ret=exit status 1
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:367.212 seconds]
[reboots][kernel_parameter_add_rm] Node Tuning Operator parent profile kernel parameter removal
/home/ocpadmin/ocp-psap-testcase/nto/cluster-node-tuning-operator/test/e2e/reboots/kernel_parameter_add_rm.go:18
  kernel parameter add/remove
  /home/ocpadmin/ocp-psap-testcase/nto/cluster-node-tuning-operator/test/e2e/reboots/kernel_parameter_add_rm.go:27
    kernel parameters set
    /home/ocpadmin/ocp-psap-testcase/nto/cluster-node-tuning-operator/test/e2e/reboots/kernel_parameter_add_rm.go:45
------------------------------

Ran 3 of 3 Specs in 911.326 seconds
SUCCESS! -- 3 Passed | 0 Failed | 0 Pending | 0 Skipped
--- PASS: TestNodeTuningOperator (911.33s)
PASS
ok  	github.com/openshift/cluster-node-tuning-operator/test/e2e/reboots	911.346s
[ocpadmin@ec2-18-217-45-133 cluster-node-tuning-operator]$ 
[ocpadmin@ec2-18-217-45-133 cluster-node-tuning-operator]$ 
[ocpadmin@ec2-18-217-45-133 cluster-node-tuning-operator]$ oc get clusterversion
NAME      VERSION                              AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.10.0-0.nightly-2022-08-15-202339   True        False         40m     Cluster version is 4.10.0-0.nightly-2022-08-15-202339
[ocpadmin@ec2-18-217-45-133 cluster-node-tuning-operator]$

Comment 5 errata-xmlrpc 2022-08-23 18:29:03 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.10.28 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-2022:6095