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

Log maintenance bug fix in the Flow Aggregator #2522

Merged
merged 1 commit into from
Aug 2, 2021

Conversation

srikartati
Copy link
Member

Periodic deletion of log files is missing in the Flow Aggreegator.
This logic periodically deletes extra files by making sure that max
number of files to be 4. This will ensure that no disk space is wasted
on the Kubernetes node running the Flow Aggregator.

This logic was missed initially when the logging in the Flow Aggregator is
added in the beginning adopting the same framework as the Antrea Agent and the
Antrea Controller.

Signed-off-by: Srikar Tati stati@vmware.com

antoninbas
antoninbas previously approved these changes Aug 2, 2021
@@ -15,6 +15,7 @@
package main

import (
"antrea.io/antrea/pkg/log"
Copy link
Contributor

Choose a reason for hiding this comment

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

sorry I missed this: this import is in the wrong group

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup, I also just realized it. Updated the patch.

Periodic deletion of log files is missing in the Flow Aggreegator.
This logic periodically deletes extra files by making sure that max
number of files to be 4. This will ensure that no disk space is wasted
on the Kubernetes node running the Flow Aggregator.

This logic was missed initially when the logging in the Flow Aggregator is
added in the beginning adopting the same framework as the Antrea Agent and the
Antrea Controller.

Signed-off-by: Srikar Tati <stati@vmware.com>
@codecov-commenter
Copy link

codecov-commenter commented Aug 2, 2021

Codecov Report

Merging #2522 (0e7d786) into main (9222647) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2522   +/-   ##
=======================================
  Coverage   59.89%   59.90%           
=======================================
  Files         284      284           
  Lines       22265    22265           
=======================================
+ Hits        13335    13337    +2     
+ Misses       7511     7508    -3     
- Partials     1419     1420    +1     
Flag Coverage Δ
kind-e2e-tests 47.00% <ø> (-0.01%) ⬇️
unit-tests 42.26% <ø> (+0.03%) ⬆️

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

Impacted Files Coverage Δ
...ver/registry/controlplane/nodestatssummary/rest.go 50.00% <0.00%> (-50.00%) ⬇️
pkg/apiserver/handlers/endpoint/handler.go 58.82% <0.00%> (-11.77%) ⬇️
pkg/legacyclient/clientset/versioned/clientset.go 25.00% <0.00%> (-8.83%) ⬇️
...g/controller/networkpolicy/store/appliedtogroup.go 86.36% <0.00%> (-3.04%) ⬇️
pkg/controller/networkpolicy/status_controller.go 70.96% <0.00%> (-1.94%) ⬇️
...gent/controller/noderoute/node_route_controller.go 45.87% <0.00%> (-0.67%) ⬇️
pkg/agent/openflow/pipeline.go 73.51% <0.00%> (+0.08%) ⬆️
pkg/agent/agent.go 50.22% <0.00%> (+0.44%) ⬆️
pkg/agent/flowexporter/exporter/exporter.go 80.46% <0.00%> (+0.46%) ⬆️
pkg/agent/route/route_linux.go 44.68% <0.00%> (+0.53%) ⬆️
... and 5 more

Copy link
Contributor

@dreamtalen dreamtalen left a comment

Choose a reason for hiding this comment

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

LGTM

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

Please cherry-pick to 1.2

@antoninbas
Copy link
Contributor

/skip-all

@antoninbas antoninbas merged commit 2c80f57 into antrea-io:main Aug 2, 2021
@srikartati srikartati deleted the fix_logs_flow_exporter branch August 2, 2021 21:22
This pull request was closed.
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.

4 participants