-
Notifications
You must be signed in to change notification settings - Fork 387
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
Use logrotate to rotate OVS log files #1329
Conversation
Thanks for your PR. The following commands are available:
|
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Let me know when you want me to manually update the OVS base image in Dockerhub so you can trigger the tests.
build/images/scripts/start_ovs
Outdated
-*|--*) # unsupported flags | ||
echo "Error: unsupported flag $1" >&2 | ||
exit 128 | ||
;; | ||
*) # standalone arguments are not supported | ||
echo "Error: unsupported argument $1" >&2 | ||
exit 128 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curious about the choice of 128 as the exit code? aren't exit code > 127 typically used for specific purposes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually forgot to change it. Just changed to 1.
Install logrotate in the OVS Docker image. Enhance start_ovs to run logrotate against the OVS log files in /var/log/openvswitch/ every hour, with two flags: --log_file_max_num and --log_file_max_size to specify the maximum number and maximum size of log files respectively. Update the Antrea deployment YAMLs to set the default value of --log_file_max_num to 4, and the default value of --log_file_max_size to 100MB.
eb1ee57
to
58673da
Compare
@antoninbas : please help update the OVS image. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Uploaded updated images to Dockerhub. They will be overwritten again in 5 hours.
/test-all |
Install logrotate in the OVS Docker image. Enhance start_ovs to run logrotate against the OVS log files in /var/log/openvswitch/ every hour, with two flags: --log_file_max_num and --log_file_max_size to specify the maximum number and maximum size of log files respectively. Update the Antrea deployment YAMLs to set the default value of --log_file_max_num to 4, and the default value of --log_file_max_size to 100MB.
Install logrotate in the OVS Docker image. Enhance start_ovs to run logrotate against the OVS log files in /var/log/openvswitch/ every hour, with two flags: --log_file_max_num and --log_file_max_size to specify the maximum number and maximum size of log files respectively. Update the Antrea deployment YAMLs to set the default value of --log_file_max_num to 4, and the default value of --log_file_max_size to 100MB.
Install logrotate in the OVS Docker image.
Enhance start_ovs to run logrotate against the OVS log files in
/var/log/openvswitch/ every hour, with two flags:
--log_file_max_num and --log_file_max_size to specify the maximum
number and maximum size of log files respectively.
Update the Antrea deployment YAMLs to set the default value of
--log_file_max_num to 4, and the default value of --log_file_max_size
to 100MB.
Fixes: #1328