Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cnf-tests: increase WaitForAllMCPStable timeout #2110

Merged

Conversation

zeeke
Copy link
Member

@zeeke zeeke commented Nov 20, 2024

In the context of the test case

[It] [sriov] NUMA node alignment Utilize all available VFs then create a pod with guaranteed CPU and excludeTopology set to True

a flake might happen when restoring the original MCP takes more than 10 minutes. This behavior can be spotted by looking the sample failure [1]:

 Enter [DeferCleanup (All) [sriov] NUMA node alignment @ 11/16/24 10:25:34.562
I1116 10:25:34.715725   35799 machineconfigpool.go:311] Moved back node role from [test-sriov-numa] to [worker-cnf] on cnfdu1
I1116 10:25:40.875535   35799 machineconfigpool.go:143] MCP worker-cnf is updating
I1116 10:25:40.928764   35799 machineconfigpool.go:28] Waiting for MCP master: Updating == False
I1116 10:25:40.972478   35799 machineconfigpool.go:36] Condition met for MCP master: Updating == False
I1116 10:25:40.972511   35799 machineconfigpool.go:28] Waiting for MCP test-sriov-numa: Updating == False
I1116 10:25:41.009940   35799 machineconfigpool.go:36] Condition met for MCP test-sriov-numa: Updating == False
I1116 10:25:41.009966   35799 machineconfigpool.go:28] Waiting for MCP worker: Updating == False
I1116 10:25:41.084047   35799 machineconfigpool.go:36] Condition met for MCP worker: Updating == False
I1116 10:25:41.084073   35799 machineconfigpool.go:28] Waiting for MCP worker-cnf: Updating == False
  [FAILED] in [DeferCleanup (All)] - /tmp/cnf-52ioJ/cnf-features-deploy/cnf-tests/testsuites/e2esuite/dpdk/numa_node_sriov.go:124 @ 11/16/24 10:35:41.213

the failed at 10:35:41.213, while the MCP would have been ready at 10:35:45. From node's journal:


Nov 16 10:25:40 cnfdu1 root[20293]: machine-config-daemon[5990]: Starting update from rendered-test-sriov-numa-a8151b5c8ef3843ebccffeac4ea1f436 to rendered-worker-cnf-0b30d70ee563f0c62337acea72ef80e1: &{osUpdate:false kargs:true fips:false passwd:false files:true units:true kernelType:true extensions:false}
...
Nov 16 10:28:33 cnfdu1 root[41926]: machine-config-daemon[5990]: Rebooting node
Nov 16 10:28:33 cnfdu1 root[41927]: machine-config-daemon[5990]: initiating reboot: Node will reboot into config rendered-worker-cnf-0b30d70ee563f0c62337acea72ef80e1
Nov 16 10:28:33 cnfdu1 systemd[1]: Started machine-config-daemon: Node will reboot into config rendered-worker-cnf-0b30d70ee563f0c62337acea72ef80e1.
Nov 16 10:28:33 cnfdu1 root[41930]: machine-config-daemon[5990]: reboot successful
Nov 16 10:28:33 cnfdu1 systemd-logind[2786]: The system will reboot now!
Nov 16 10:28:33 cnfdu1 systemd-logind[2786]: System is rebooting.
Nov 16 10:28:33 cnfdu1 systemd[1]: machine-config-daemon-reboot.service: Deactivated successfully.
Nov 16 10:28:33 cnfdu1 systemd[1]: Stopped machine-config-daemon: Node will reboot into config rendered-worker-cnf-0b30d70ee563f0c62337acea72ef80e1.
...
Nov 16 10:30:38 cnfdu1 systemd[1]: Stopping Flush Journal to Persistent Storage...
-- Boot eb8af1b825ef44239a040ec07d5be804 --
Nov 16 10:33:35 localhost kernel: microcode: microcode updated early to revision 0xd0003d1, date = 2023-09-14
Nov 16 10:33:35 localhost kernel: Linux version 5.14.0-284.92.1.rt14.377.el9_2.x86_64 ([email protected]) (gcc (GCC) 11.3.1 20221121 (Red Hat 11.3.1-4), GNU ld version 2.35.2-37.el9) #1 SMP PREEMPT_RT Fri Nov 1 12:51:15 EDT 2024
Nov 16 10:35:32 cnfdu1 root[18202]: machine-config-daemon[17025]: Starting to manage node: cnfdu1
...
Nov 16 10:35:35 cnfdu1 root[19315]: machine-config-daemon[17025]: Disk currentConfig "rendered-worker-cnf-0b30d70ee563f0c62337acea72ef80e1" overrides node's currentConfig annotation "rendered-test-sriov-numa-a8151b5c8ef3843ebccffeac4ea1f436"
...
Nov 16 10:35:45 cnfdu1 root[23677]: machine-config-daemon[17025]: Update completed for config rendered-worker-cnf-0b30d70ee563f0c62337acea72ef80e1 and node has been successfully uncordoned

[1] https://prow.ci.openshift.org/view/gs/test-platform-results/logs/periodic-ci-openshift-release-master-nightly-4.15-e2e-telco5g-cnftests/1857695365185146880

In the context of the test case
```
[It] [sriov] NUMA node alignment Utilize all available VFs then create a pod with guaranteed CPU and excludeTopology set to True
```
a flake might happen when restoring the original MCP takes more than 10 minutes.
This behavior can be spotted by looking the sample failure [1]:

```
 Enter [DeferCleanup (All) [sriov] NUMA node alignment @ 11/16/24 10:25:34.562
I1116 10:25:34.715725   35799 machineconfigpool.go:311] Moved back node role from [test-sriov-numa] to [worker-cnf] on cnfdu1
I1116 10:25:40.875535   35799 machineconfigpool.go:143] MCP worker-cnf is updating
I1116 10:25:40.928764   35799 machineconfigpool.go:28] Waiting for MCP master: Updating == False
I1116 10:25:40.972478   35799 machineconfigpool.go:36] Condition met for MCP master: Updating == False
I1116 10:25:40.972511   35799 machineconfigpool.go:28] Waiting for MCP test-sriov-numa: Updating == False
I1116 10:25:41.009940   35799 machineconfigpool.go:36] Condition met for MCP test-sriov-numa: Updating == False
I1116 10:25:41.009966   35799 machineconfigpool.go:28] Waiting for MCP worker: Updating == False
I1116 10:25:41.084047   35799 machineconfigpool.go:36] Condition met for MCP worker: Updating == False
I1116 10:25:41.084073   35799 machineconfigpool.go:28] Waiting for MCP worker-cnf: Updating == False
  [FAILED] in [DeferCleanup (All)] - /tmp/cnf-52ioJ/cnf-features-deploy/cnf-tests/testsuites/e2esuite/dpdk/numa_node_sriov.go:124 @ 11/16/24 10:35:41.213
```

the failed at `10:35:41.213`, while the MCP would have been ready at `10:35:45`. From node's journal:
```

Nov 16 10:25:40 cnfdu1 root[20293]: machine-config-daemon[5990]: Starting update from rendered-test-sriov-numa-a8151b5c8ef3843ebccffeac4ea1f436 to rendered-worker-cnf-0b30d70ee563f0c62337acea72ef80e1: &{osUpdate:false kargs:true fips:false passwd:false files:true units:true kernelType:true extensions:false}
...
Nov 16 10:28:33 cnfdu1 root[41926]: machine-config-daemon[5990]: Rebooting node
Nov 16 10:28:33 cnfdu1 root[41927]: machine-config-daemon[5990]: initiating reboot: Node will reboot into config rendered-worker-cnf-0b30d70ee563f0c62337acea72ef80e1
Nov 16 10:28:33 cnfdu1 systemd[1]: Started machine-config-daemon: Node will reboot into config rendered-worker-cnf-0b30d70ee563f0c62337acea72ef80e1.
Nov 16 10:28:33 cnfdu1 root[41930]: machine-config-daemon[5990]: reboot successful
Nov 16 10:28:33 cnfdu1 systemd-logind[2786]: The system will reboot now!
Nov 16 10:28:33 cnfdu1 systemd-logind[2786]: System is rebooting.
Nov 16 10:28:33 cnfdu1 systemd[1]: machine-config-daemon-reboot.service: Deactivated successfully.
Nov 16 10:28:33 cnfdu1 systemd[1]: Stopped machine-config-daemon: Node will reboot into config rendered-worker-cnf-0b30d70ee563f0c62337acea72ef80e1.
...
Nov 16 10:30:38 cnfdu1 systemd[1]: Stopping Flush Journal to Persistent Storage...
-- Boot eb8af1b825ef44239a040ec07d5be804 --
Nov 16 10:33:35 localhost kernel: microcode: microcode updated early to revision 0xd0003d1, date = 2023-09-14
Nov 16 10:33:35 localhost kernel: Linux version 5.14.0-284.92.1.rt14.377.el9_2.x86_64 ([email protected]) (gcc (GCC) 11.3.1 20221121 (Red Hat 11.3.1-4), GNU ld version 2.35.2-37.el9) openshift-kni#1 SMP PREEMPT_RT Fri Nov 1 12:51:15 EDT 2024
Nov 16 10:35:32 cnfdu1 root[18202]: machine-config-daemon[17025]: Starting to manage node: cnfdu1
...
Nov 16 10:35:35 cnfdu1 root[19315]: machine-config-daemon[17025]: Disk currentConfig "rendered-worker-cnf-0b30d70ee563f0c62337acea72ef80e1" overrides node's currentConfig annotation "rendered-test-sriov-numa-a8151b5c8ef3843ebccffeac4ea1f436"
...
Nov 16 10:35:45 cnfdu1 root[23677]: machine-config-daemon[17025]: Update completed for config rendered-worker-cnf-0b30d70ee563f0c62337acea72ef80e1 and node has been successfully uncordoned
```

[1] https://prow.ci.openshift.org/view/gs/test-platform-results/logs/periodic-ci-openshift-release-master-nightly-4.15-e2e-telco5g-cnftests/1857695365185146880

Signed-off-by: Andrea Panattoni <[email protected]>
@openshift-ci openshift-ci bot requested review from ffromani and vitus133 November 20, 2024 16:40
Copy link
Contributor

openshift-ci bot commented Nov 20, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: zeeke

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 20, 2024
@ffromani
Copy link
Member

/lgtm

is going to be a endless chase about the timeout, but hey

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 20, 2024
@zeeke
Copy link
Member Author

zeeke commented Nov 21, 2024

/retest

@zeeke
Copy link
Member Author

zeeke commented Nov 21, 2024

test failure

CNF Features e2e integration tests: [It] [tuningcni] tuningcni over macvlan should be able to create pod with sysctls over macvlan

> Enter [BeforeEach] [tuningcni] - /go/src/github.com/openshift-kni/cnf-features-deploy/cnf-tests/testsuites/pkg/execute/ginkgo.go:9 @ 11/21/24 10:06:04.569
< Exit [BeforeEach] [tuningcni] - /go/src/github.com/openshift-kni/cnf-features-deploy/cnf-tests/testsuites/pkg/execute/ginkgo.go:9 @ 11/21/24 10:06:04.67 (102ms)
> Enter [BeforeEach] [tuningcni] - /go/src/github.com/openshift-kni/cnf-features-deploy/cnf-tests/testsuites/e2esuite/security/tuning.go:34 @ 11/21/24 10:06:04.67
< Exit [BeforeEach] [tuningcni] - /go/src/github.com/openshift-kni/cnf-features-deploy/cnf-tests/testsuites/e2esuite/security/tuning.go:34 @ 11/21/24 10:06:04.775 (105ms)
> Enter [It] should be able to create pod with sysctls over macvlan - /go/src/github.com/openshift-kni/cnf-features-deploy/cnf-tests/testsuites/e2esuite/security/tuning.go:39 @ 11/21/24 10:06:04.775
[FAILED] 0001-01-01 00:00:00 +0000 UTC: Successfully assigned tuning-testing/testpod-hxcgx to ip-10-0-4-200.ec2.internal
2024-11-21 10:06:05 +0000 UTC: Add eth0 [10.129.2.7/23] from ovn-kubernetes
2024-11-21 10:06:05 +0000 UTC: Add net1 [10.10.0.1/24] from tuning-testing/tuning-nad
2024-11-21 10:06:05 +0000 UTC: Pulling image "quay.io/openshift-kni/cnf-tests:4.16"

Unexpected error:
    <wait.errInterrupted>: 
    timed out waiting for the condition
    {
        cause: <*errors.errorString | 0xc000509330>{
            s: "timed out waiting for the condition",
        },
    }
occurred
In [It] at: /go/src/github.com/openshift-kni/cnf-features-deploy/cnf-tests/testsuites/e2esuite/security/tuning.go:53 @ 11/21/24 10:07:06.312
< Exit [It] should be able to create pod with sysctls over macvlan - /go/src/github.com/openshift-kni/cnf-features-deploy/cnf-tests/testsuites/e2esuite/security/tuning.go:39 @ 11/21/24 10:07:06.312 (1m1.537s)

is a known flake (https://issues.redhat.com/browse/CNF-14296). overriding

/override ci/prow/e2e-aws-ci-tests

Copy link
Contributor

openshift-ci bot commented Nov 21, 2024

@zeeke: Overrode contexts on behalf of zeeke: ci/prow/e2e-aws-ci-tests

In response to this:

test failure

CNF Features e2e integration tests: [It] [tuningcni] tuningcni over macvlan should be able to create pod with sysctls over macvlan

> Enter [BeforeEach] [tuningcni] - /go/src/github.com/openshift-kni/cnf-features-deploy/cnf-tests/testsuites/pkg/execute/ginkgo.go:9 @ 11/21/24 10:06:04.569
< Exit [BeforeEach] [tuningcni] - /go/src/github.com/openshift-kni/cnf-features-deploy/cnf-tests/testsuites/pkg/execute/ginkgo.go:9 @ 11/21/24 10:06:04.67 (102ms)
> Enter [BeforeEach] [tuningcni] - /go/src/github.com/openshift-kni/cnf-features-deploy/cnf-tests/testsuites/e2esuite/security/tuning.go:34 @ 11/21/24 10:06:04.67
< Exit [BeforeEach] [tuningcni] - /go/src/github.com/openshift-kni/cnf-features-deploy/cnf-tests/testsuites/e2esuite/security/tuning.go:34 @ 11/21/24 10:06:04.775 (105ms)
> Enter [It] should be able to create pod with sysctls over macvlan - /go/src/github.com/openshift-kni/cnf-features-deploy/cnf-tests/testsuites/e2esuite/security/tuning.go:39 @ 11/21/24 10:06:04.775
[FAILED] 0001-01-01 00:00:00 +0000 UTC: Successfully assigned tuning-testing/testpod-hxcgx to ip-10-0-4-200.ec2.internal
2024-11-21 10:06:05 +0000 UTC: Add eth0 [10.129.2.7/23] from ovn-kubernetes
2024-11-21 10:06:05 +0000 UTC: Add net1 [10.10.0.1/24] from tuning-testing/tuning-nad
2024-11-21 10:06:05 +0000 UTC: Pulling image "quay.io/openshift-kni/cnf-tests:4.16"

Unexpected error:
   <wait.errInterrupted>: 
   timed out waiting for the condition
   {
       cause: <*errors.errorString | 0xc000509330>{
           s: "timed out waiting for the condition",
       },
   }
occurred
In [It] at: /go/src/github.com/openshift-kni/cnf-features-deploy/cnf-tests/testsuites/e2esuite/security/tuning.go:53 @ 11/21/24 10:07:06.312
< Exit [It] should be able to create pod with sysctls over macvlan - /go/src/github.com/openshift-kni/cnf-features-deploy/cnf-tests/testsuites/e2esuite/security/tuning.go:39 @ 11/21/24 10:07:06.312 (1m1.537s)

is a known flake (https://issues.redhat.com/browse/CNF-14296). overriding

/override ci/prow/e2e-aws-ci-tests

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-merge-bot openshift-merge-bot bot merged commit 3ae3029 into openshift-kni:master Nov 21, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants