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

[CI]Generate ssh-config for all Nodes #2675

Merged
merged 1 commit into from
Sep 2, 2021
Merged

Conversation

xliuxu
Copy link
Contributor

@xliuxu xliuxu commented Aug 30, 2021

WireGuard kernel module is present on IPv6 and IPv6 dual-stack clusters. Make sure that we can run commands on all nodes to check for kernel modules. This is a prerequisite for WireGuard e2e tests.
The error is as follows:

=== RUN   TestWireGuard
    fixtures.go:95: The following modules have been found on Node 'antrea-ipv6-9-0': [wireguard]
    fixtures.go:89: Skipping test as modprobe could not be run to confirm the presence of module 'wireguard': unable to find 'HostName' for 'antrea-ipv6-9-1' in SSH config
--- SKIP: TestWireGuard (0.81s)

Fixes #2661

Signed-off-by: Xu Liu [email protected]

@xliuxu xliuxu changed the title [NOT FOR REVIEW]Tests WireGuard on ipv6 and ipv6 dual-stack clusters [NOT FOR REVIEW]Test WireGuard on ipv6 and ipv6 dual-stack clusters Aug 30, 2021
@xliuxu
Copy link
Contributor Author

xliuxu commented Aug 30, 2021

/test-ipv6-only-e2e
/test-ipv6-ds-e2e
/test-ipv6-e2e
/test-e2e

@codecov-commenter
Copy link

codecov-commenter commented Aug 30, 2021

Codecov Report

Merging #2675 (ed03eaa) into main (d8d70ac) will decrease coverage by 1.18%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2675      +/-   ##
==========================================
- Coverage   60.70%   59.52%   -1.19%     
==========================================
  Files         285      285              
  Lines       23003    23020      +17     
==========================================
- Hits        13965    13702     -263     
- Misses       7544     7867     +323     
+ Partials     1494     1451      -43     
Flag Coverage Δ
kind-e2e-tests 46.76% <ø> (-1.61%) ⬇️
unit-tests 41.03% <ø> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...g/agent/apiserver/handlers/featuregates/handler.go 0.00% <0.00%> (-82.36%) ⬇️
...kg/apiserver/registry/system/supportbundle/rest.go 19.54% <0.00%> (-55.18%) ⬇️
pkg/support/dump_others.go 0.00% <0.00%> (-51.73%) ⬇️
pkg/support/dump.go 8.13% <0.00%> (-49.60%) ⬇️
...g/agent/apiserver/handlers/addressgroup/handler.go 0.00% <0.00%> (-40.00%) ⬇️
...agent/apiserver/handlers/appliedtogroup/handler.go 0.00% <0.00%> (-40.00%) ⬇️
pkg/apiserver/handlers/loglevel/handler.go 0.00% <0.00%> (-38.47%) ⬇️
pkg/ovs/ovsctl/ofctl.go 18.51% <0.00%> (-19.76%) ⬇️
pkg/ovs/ovsctl/appctl.go 32.60% <0.00%> (-11.96%) ⬇️
pkg/log/log_level.go 0.00% <0.00%> (-10.00%) ⬇️
... and 19 more

@xliuxu
Copy link
Contributor Author

xliuxu commented Aug 30, 2021

/test-ipv6-only-e2e
/test-ipv6-ds-e2e
/test-ipv6-e2e

@xliuxu
Copy link
Contributor Author

xliuxu commented Aug 30, 2021

/test-ipv6-only-e2e

@xliuxu
Copy link
Contributor Author

xliuxu commented Aug 30, 2021

/test-ipv6-only-e2e
/test-ipv6-ds-e2e
/test-ipv6-e2e

@xliuxu
Copy link
Contributor Author

xliuxu commented Aug 30, 2021

/test-ipv6-only-e2e

@xliuxu
Copy link
Contributor Author

xliuxu commented Aug 30, 2021

/test-all
/test-ipv6-ds-e2e
/test-ipv6-e2e

@xliuxu xliuxu force-pushed the xliuxu_test_ci branch 3 times, most recently from 199cf99 to b435f9d Compare August 31, 2021 02:41
@xliuxu
Copy link
Contributor Author

xliuxu commented Aug 31, 2021

/test-all
/test-ipv6-only-e2e
/test-ipv6-ds-e2e
/test-ipv6-e2e

@xliuxu xliuxu changed the title [NOT FOR REVIEW]Test WireGuard on ipv6 and ipv6 dual-stack clusters [CI]Generate ssh-config for all Nodes Aug 31, 2021
@xliuxu xliuxu requested a review from lzhecheng August 31, 2021 07:00
@lzhecheng
Copy link
Contributor

It is possible to define a function to reuse ssh-config generation code in run_e2e and run_e2e_windows?

@xliuxu
Copy link
Contributor Author

xliuxu commented Aug 31, 2021

/test-all
/test-ipv6-only-e2e
/test-ipv6-ds-e2e
/test-ipv6-e2e
/test-windows-e2e

@xliuxu
Copy link
Contributor Author

xliuxu commented Sep 1, 2021

/test-windows-e2e
/test-e2e

@lzhecheng
Copy link
Contributor

A suggestion: this PR doesn't touch test-vmc.sh so there's no need to run VMC Jenkins jobs (test-e2e, test-conformance, test-networkpolicy).

@xliuxu
Copy link
Contributor Author

xliuxu commented Sep 1, 2021

A suggestion: this PR doesn't touch test-vmc.sh so there's no need to run VMC Jenkins jobs (test-e2e, test-conformance, test-networkpolicy).

Thanks for pointing it out.

I think WireGuard e2e tests passed on IPv6 and IPv6 dual-stack clusters.

=== RUN   TestWireGuard
    fixtures.go:95: The following modules have been found on Node 'antrea-ipv6-9-0': [wireguard]
    fixtures.go:95: The following modules have been found on Node 'antrea-ipv6-9-1': [wireguard]
    fixtures.go:95: The following modules have been found on Node 'antrea-ipv6-9-2': [wireguard]
    fixtures.go:182: Creating 'antrea-test' K8s Namespace
2021-08-31 14:31:04.447889 I | Applying Antrea YAML
2021-08-31 14:31:07.077809 I | Waiting for all Antrea DaemonSet Pods
2021-08-31 14:31:08.087017 I | Checking CoreDNS deployment
=== RUN   TestWireGuard/testWireGuardTunnelConnectivity
    connectivity_test.go:76: Waiting for Pods to be ready and retrieving IPs
    connectivity_test.go:86: Retrieved all Pod IPs: map[connectivity-testdifferentnodes-2jlhn:IPv4(10.244.1.85),IPv6(2001:db8:42:2::17e4),IPstrings(10.244.1.85,2001:db8:42:2::17e4) connectivity-testdifferentnodes-8k7cn:IPv4(10.244.0.41),IPv6(2001:db8:42::29),IPstrings(10.244.0.41,2001:db8:42::29)]
    connectivity_test.go:95: Ping mesh test between all Pods
    connectivity_test.go:104: Ping 'connectivity-testdifferentnodes-2jlhn' -> 'connectivity-testdifferentnodes-8k7cn': OK
    connectivity_test.go:104: Ping 'connectivity-testdifferentnodes-8k7cn' -> 'connectivity-testdifferentnodes-2jlhn': OK
=== CONT  TestWireGuard
    fixtures.go:384: Deleting 'antrea-test' K8s Namespace
--- PASS: TestWireGuard (95.26s)
    --- PASS: TestWireGuard/testWireGuardTunnelConnectivity (23.44s)

@xliuxu
Copy link
Contributor Author

xliuxu commented Sep 1, 2021

/test-ipv6-only-e2e
/test-ipv6-ds-e2e
/test-ipv6-e2e
/test-windows-e2e

1 similar comment
@xliuxu
Copy link
Contributor Author

xliuxu commented Sep 1, 2021

/test-ipv6-only-e2e
/test-ipv6-ds-e2e
/test-ipv6-e2e
/test-windows-e2e

@lzhecheng
Copy link
Contributor

/test-windows-e2e

@lzhecheng
Copy link
Contributor

/test-windows-e2e

Make sure we can check kernel modules on all Nodes in the cluster.
This is a prerequisite for WireGuard e2e tests.
Fixes: antrea-io#2661

Signed-off-by: Xu Liu <[email protected]>
@xliuxu
Copy link
Contributor Author

xliuxu commented Sep 2, 2021

/test-ipv6-only-e2e
/test-ipv6-ds-e2e
/test-ipv6-e2e
/test-windows-e2e

Copy link
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tnqn
Copy link
Member

tnqn commented Sep 2, 2021

/skip-all

@tnqn
Copy link
Member

tnqn commented Sep 2, 2021

The required kind test failed on the known flaky AntreaPolicy tests #2394:

--- FAIL: TestAntreaPolicy/TestGroupNoK8sNP/Case=ACNPClusterGroupEgressRulePodsAToCGWithNsZ (15.60s)

I will investigate it later. Setting the test as not required temporarily to bypass it.

@tnqn tnqn merged commit ff1bf06 into antrea-io:main Sep 2, 2021
@xliuxu xliuxu deleted the xliuxu_test_ci branch September 3, 2021 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wireguard e2e test should run on IPv6 and dual-stack testbed
5 participants