Bug 2116545 - Fix e2e tests for [reboots][machine_config_labels] (tsc=nowatchdog)
Summary: Fix e2e tests for [reboots][machine_config_labels] (tsc=nowatchdog)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node Tuning Operator
Version: 4.12
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.10.z
Assignee: Jiří Mencák
QA Contact: liqcui
URL:
Whiteboard:
Depends On: 2113938
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-08 19:20 UTC by OpenShift BugZilla Robot
Modified: 2022-08-23 18:29 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-23 18:29:03 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 428 0 None open [release-4.10] Bug 2116545: e2e: check for tsc=reliable instead of tsc=nowatchdog 2022-08-15 05:22:58 UTC
Red Hat Product Errata RHBA-2022:6095 0 None None None 2022-08-23 18:29:16 UTC

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


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