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 configuration toggle for FlowExporter #5021

Merged
merged 1 commit into from
May 31, 2023

Conversation

yuntanghsu
Copy link
Contributor

Adding configuration toggle for flow exporter to prevent antrea agent from showing error in log, which happens when user enable flow exporter feature gate without installing flow aggregator.

Fixes #4953
Signed-off-by: Yun-Tang Hsu [email protected]

@yuntanghsu yuntanghsu force-pushed the flow_exporter_configuration branch 3 times, most recently from 13c006d to 9ed313e Compare May 22, 2023 23:40
Copy link
Contributor

@antoninbas antoninbas left a comment

Choose a reason for hiding this comment

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

I would expect the documentation to be updated as well as part of this PR: docs/network-flow-visibility.md

I think that the commit message / PR description should include more information:

  • non-backwards compatible changes to the Helm chart: FlowExporter-related values have all been moved under the flowExporter dictionary
  • changes to the Antrea Agent config: FlowExporter-related fields are now grouped under the flowExporter key. Previous parameters are still supported but are considered deprecated, and will be removed in a future release.

# If no PROTO is given, we consider "tls" as default. We support "tls", "tcp" and
# "udp" protocols. "tls" is used for securing communication between flow exporter and
# flow aggregator.
flowCollectorAddr: {{ .collectorAddr | quote }}
Copy link
Contributor

Choose a reason for hiding this comment

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

there is a small inconsistency between the Helm value path (flowExporter.collectorAddr) and the configuration parameter path (flowExporter. flowCollectorAddr). Should we rename the configuration parameter for consistency between the 2?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for reviewing. I've renamed it to flowCollectorAddr.
network-flow-visibility.md is updated as well.

build/charts/antrea/conf/antrea-agent.conf Outdated Show resolved Hide resolved
cmd/antrea-agent/options.go Outdated Show resolved Hide resolved
pkg/config/agent/config.go Outdated Show resolved Hide resolved
@yuntanghsu yuntanghsu force-pushed the flow_exporter_configuration branch from 9ed313e to 69a97bf Compare May 25, 2023 19:59
heanlan
heanlan previously approved these changes May 26, 2023
Copy link
Contributor

@heanlan heanlan left a comment

Choose a reason for hiding this comment

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

LGTM

the helm chart docs need to be rebuilt

Comment on lines 129 to 131
#### Configuration pre Antrea v1.12.0

Prior to the Antrea v1.12.0 release, the `flowExporter` option group in the
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 you mean v1.13?

Prior to the Antrea v1.12.0 release, the `flowExporter` option group in the
Antrea Agent configuration did not exist. To enable the Flow Exporter feature,
one simply needed to enable the feature gate, and the Flow Exporter related
configuration could be configured using (now deprecated) `flowCollectorAddr`,
Copy link
Contributor

Choose a reason for hiding this comment

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

s/(now deprecated)/the (now deprecated)

@yuntanghsu yuntanghsu force-pushed the flow_exporter_configuration branch from 6f2c3eb to d96739d Compare May 26, 2023 23:14
antoninbas
antoninbas previously approved these changes May 26, 2023
Copy link
Contributor

@antoninbas antoninbas left a comment

Choose a reason for hiding this comment

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

LGTM

… when flowAggregator is not installed

1. Add non-backwards compatible changes to the Helm chart:
   a. Change name flowCollector to flowExporter.
   b. FlowExporter-related values have all been moved under the flowExporter dictionary.
2. Add changes to the Antrea Agent config: FlowExporter-related fields are now grouped under the flowExporter key.
   Previous parameters are still supported but are considered deprecated, and will be removed in a future release.
3. Update network-flow-visibility.md

Signed-off-by: Yun-Tang Hsu <[email protected]>
@yuntanghsu
Copy link
Contributor Author

/test-all

1 similar comment
@tnqn
Copy link
Member

tnqn commented May 31, 2023

/test-all

@antoninbas antoninbas merged commit 7688240 into antrea-io:main May 31, 2023
@antoninbas antoninbas added action/release-note Indicates a PR that should be included in release notes. area/flow-visibility Issues or PRs related to flow visibility support in Antrea labels Jun 1, 2023
heanlan added a commit to heanlan/theia-1 that referenced this pull request Jun 2, 2023
A configuration toggle for flow exporter has recently been added
to antrea agent config. We need to enable both the feature gate
and the toggle to enable flow exporter feature.

antrea-io/antrea#5021
Signed-off-by: heanlan <[email protected]>
heanlan added a commit to heanlan/theia-1 that referenced this pull request Jun 2, 2023
A configuration toggle for flow exporter has recently been added
to antrea agent config. We need to enable both the feature gate
and the toggle to enable flow exporter feature.

antrea-io/antrea#5021
Signed-off-by: heanlan <[email protected]>
heanlan added a commit to antrea-io/theia that referenced this pull request Jun 2, 2023
A configuration toggle for flow exporter has recently been added
to antrea agent config. We need to enable both the feature gate
and the toggle to enable flow exporter feature.

antrea-io/antrea#5021

Signed-off-by: heanlan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action/release-note Indicates a PR that should be included in release notes. area/flow-visibility Issues or PRs related to flow visibility support in Antrea
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add configuration toggle for FlowExporter before graduating the feature to Beta
4 participants