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

[WIP Multicast] use real external node in multicast e2e #4034

Closed

Conversation

ceclinux
Copy link
Contributor

No description provided.

@@ -120,6 +125,9 @@ if [[ "${IP_MODE}" != "${DEFAULT_IP_MODE}" && "${IP_MODE}" != "ipv6" && "${IP_MO
echoerr "--ip-mode must be ipv4, ipv6 or ds"
exit 1
fi

EXTERNAL_HOSTS_CONFIG_PATH="ci/jenkins/external-hosts-config.yml"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: rm this line and passing as argument when running in jenkins

else
go test -v antrea.io/antrea/test/e2e --logs-export-dir `pwd`/antrea-test-logs --provider remote -timeout=100m --prometheus
go test -run=TestMulticast -v antrea.io/antrea/test/e2e --logs-export-dir `pwd`/antrea-test-logs --external-hosts-config-path "$EXTERNAL_HOSTS_CONFIG_PATH" --provider remote -timeout=20m --prometheus
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: revert this line before merging

@ceclinux
Copy link
Contributor Author

/test-multicast-e2e

// If multicast traffic is sent from an external host, the multicast route will be configured on the sender node because the sender node
// and external host connect to the same gateway.
// If sender-receivers are located in different nodes, the receivers should configure corresponding inbound multicast routes.
if (mc.externalSender && receiverIdx == senderNodeIdx && receiverMulticastInterface == externalHostIface) || (!mc.externalSender && receiverIdx != senderNodeIdx) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do have such cases that both sender and receiver are external host? If not, this should never hit for the condition "(mc.externalSender && receiverIdx == senderNodeIdx"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed name from senderNodeIdx to multiMcastIfaceNodeIdx. External host and node with multiple multicast interfaces connects to the same gateway.Therefore it should be mcast route in multi-mcast interface node with iif externalIface.

t.Run("testMulticastWithNoEncap", func(t *testing.T) {
runMulticastTestCases(t, data, nodeMulticastInterfaces, true)
})
t.Run("testMulticastWithEncap", func(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is copied from #3947? Maybe remove it to keep this patch clean?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated


func TestMulticast(t *testing.T) {
skipIfNoExternalHosts(t)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can have a single case dedicated for traffic with external host, and skip the single case if no external hosts is existing in the cluster, rather than skip all multicast test cases

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@@ -154,6 +155,15 @@ type ClusterNode struct {
os string
}

type ExternalHost struct {
Name string `name`
Copy link
Contributor

Choose a reason for hiding this comment

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

Use a complete json expression like json:"name"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@ceclinux ceclinux force-pushed the real_external_host_multicast_e2e branch from 77a909f to 42160ad Compare July 19, 2022 14:55
@ceclinux
Copy link
Contributor Author

/test-multicast-e2e

@codecov
Copy link

codecov bot commented Jul 19, 2022

Codecov Report

Merging #4034 (cc6d877) into main (231b09d) will increase coverage by 3.23%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4034      +/-   ##
==========================================
+ Coverage   64.40%   67.63%   +3.23%     
==========================================
  Files         293      296       +3     
  Lines       43658    43763     +105     
==========================================
+ Hits        28116    29599    +1483     
+ Misses      13253    11855    -1398     
- Partials     2289     2309      +20     
Flag Coverage Δ
integration-tests 36.04% <ø> (?)
kind-e2e-tests 50.45% <ø> (-0.31%) ⬇️
unit-tests 44.18% <ø> (+<0.01%) ⬆️

see 59 files with indirect coverage changes

@ceclinux ceclinux force-pushed the real_external_host_multicast_e2e branch from 42160ad to 423af98 Compare July 20, 2022 08:56
@ceclinux
Copy link
Contributor Author

/test-multicast-e2e

@ceclinux ceclinux force-pushed the real_external_host_multicast_e2e branch from 423af98 to d37cd89 Compare July 20, 2022 09:33
@ceclinux
Copy link
Contributor Author

/test-multicast-e2e

@ceclinux ceclinux force-pushed the real_external_host_multicast_e2e branch from d37cd89 to 73c1ee4 Compare July 20, 2022 10:06
@ceclinux
Copy link
Contributor Author

/test-multicast-e2e

@ceclinux ceclinux force-pushed the real_external_host_multicast_e2e branch from 73c1ee4 to 31a00ae Compare July 20, 2022 10:20
@ceclinux
Copy link
Contributor Author

/test-multicast-e2e

@ceclinux ceclinux force-pushed the real_external_host_multicast_e2e branch from 31a00ae to 43e3a47 Compare July 20, 2022 10:45
@ceclinux
Copy link
Contributor Author

/test-multicast-e2e

@ceclinux ceclinux force-pushed the real_external_host_multicast_e2e branch from 43e3a47 to 8797023 Compare July 20, 2022 11:03
@ceclinux
Copy link
Contributor Author

/test-multicast-e2e

1 similar comment
@ceclinux
Copy link
Contributor Author

/test-multicast-e2e

@ceclinux ceclinux force-pushed the real_external_host_multicast_e2e branch from 8797023 to 838a6b0 Compare July 20, 2022 11:36
@ceclinux
Copy link
Contributor Author

/test-multicast-e2e

1 similar comment
@ceclinux
Copy link
Contributor Author

/test-multicast-e2e

@ceclinux ceclinux force-pushed the real_external_host_multicast_e2e branch from 838a6b0 to 857565d Compare July 21, 2022 02:33
@ceclinux
Copy link
Contributor Author

/test-multicast-e2e

@ceclinux ceclinux force-pushed the real_external_host_multicast_e2e branch from 857565d to cc6d877 Compare July 21, 2022 02:35
@ceclinux
Copy link
Contributor Author

/test-multicast-e2e

1 similar comment
@ceclinux
Copy link
Contributor Author

/test-multicast-e2e

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 20, 2022
@antrea-io antrea-io deleted a comment from github-actions bot Oct 20, 2022
@github-actions github-actions bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 21, 2022
@ceclinux
Copy link
Contributor Author

ceclinux commented Jan 9, 2023

/test-multicast-e2e

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 10, 2023
@antrea-io antrea-io deleted a comment from github-actions bot Apr 10, 2023
@github-actions github-actions bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 11, 2023
@ceclinux ceclinux changed the title [Multicast] use real external node in multicast e2e [WIP Multicast] use real external node in multicast e2e May 23, 2023
@github-actions
Copy link
Contributor

This PR is stale because it has been open 90 days with no activity. Remove stale label or comment, or this will be closed in 90 days

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 22, 2023
@github-actions github-actions bot closed this Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants