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

add support for multiple flow monitoring protocols and for IPv6 endpoint in existing tests #2592

Merged
merged 1 commit into from
Nov 23, 2021

Conversation

ricky-rav
Copy link
Contributor

@ricky-rav ricky-rav commented Oct 19, 2021

  • Existing netflow export test is renamed and now supports netflow_v5, ipfix, sflow.
  • The original test only validated the export of netflow v5 (legacy netflow) data, which does not support IPv6 by design. In order to validate flow data export in an IPv6 cluster, we can now choose between IPFIX and sflow; also, the test now supports an IPv6 endpoint and is again enabled for IPv6 single-stack clusters;
  • For the time being we're only testing netflow v5 in IPv4 (as before) and sflow in IPv6, because:
    (1) The test itself is long (~5 minutes);
    (2) The current implementation of the flow collector container (cloudfare/goflow) doesn't support IPFIX data generated by OVS (Openvswitch ovs-vsctl connection  cloudflare/goflow#99)

This patch addresses https://issues.redhat.com/browse/SDN-2059

- How to verify it

cd test
# for ipv6 cluster
KIND_IPV4_SUPPORT=false KIND_IPV6_SUPPORT=true make control-plane WHAT="Should validate flow data of br-int is sent to an external gateway"

@coveralls
Copy link

coveralls commented Oct 19, 2021

Coverage Status

Coverage increased (+0.02%) to 47.937% when pulling af04455 on ricky-rav:dev_SDN-2059 into ce8e7d5 on ovn-org:master.

@ricky-rav
Copy link
Contributor Author

/retest

@ricky-rav ricky-rav force-pushed the dev_SDN-2059 branch 2 times, most recently from cbba2c9 to 01f76cf Compare October 26, 2021 16:21
@astoycos astoycos self-assigned this Oct 26, 2021
test/e2e/e2e.go Outdated Show resolved Hide resolved
test/e2e/e2e.go Outdated Show resolved Hide resolved
test/e2e/e2e.go Outdated Show resolved Hide resolved
test/scripts/e2e-cp.sh Outdated Show resolved Hide resolved
@astoycos
Copy link
Collaborator

I think we will soon need to actually run the ipv6 control-plane tests :) Some small nits + questions but otherwise /lgtm

Copy link
Contributor

@trozet trozet left a comment

Choose a reason for hiding this comment

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

minor nits, otherwise lgtm. Thanks for working on this.

test/e2e/e2e.go Outdated Show resolved Hide resolved
test/e2e/e2e.go Outdated Show resolved Hide resolved
test/e2e/e2e.go Outdated Show resolved Hide resolved
@ricky-rav ricky-rav force-pushed the dev_SDN-2059 branch 3 times, most recently from bf44987 to e4962b8 Compare October 27, 2021 15:30
Copy link
Contributor

@trozet trozet left a comment

Choose a reason for hiding this comment

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

@ricky-rav can you remove the merge commit? You should be able to just rebase your branch to master and add your commit on top.

@ricky-rav ricky-rav force-pushed the dev_SDN-2059 branch 2 times, most recently from 714fe7c to adf3db7 Compare October 29, 2021 07:54
@ricky-rav
Copy link
Contributor Author

@astoycos, @trozet: should be ok now

@ricky-rav
Copy link
Contributor Author

/retest

test/e2e/util.go Outdated Show resolved Hide resolved
…int in existing netflow test

- Existing netflow export test now supports netflow v5, ipfix, sflow.
- The original test only validated the export of netflow v5 (legacy netflow) data, which does not support IPv6 by design. In order to validate flow data export in an IPv6 cluster, we can now choose between IPFIX and sflow; also, the test now supports an IPv6 endpoint;
- For the time being we're only testing netflow v5 in IPv4 (as before) and sflow in IPv6, because:
  (1) The test itself is long (~5 minutes);
  (2) The current implementation of the flow collector container (cloudfare/goflow) doesn't support IPFIX data generated by OVS (cloudflare/goflow#99)

Signed-off-by: Riccardo Ravaioli <rravaiol@redhat.com>
@dcbw dcbw merged commit 61f00a5 into ovn-org:master Nov 23, 2021
@ricky-rav ricky-rav changed the title add support for multiple flow monitoring protocols and for IPv6 endpoint in existing netflow test add support for multiple flow monitoring protocols and for IPv6 endpoint in existing tests Jul 6, 2022
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.

None yet

5 participants