-
Notifications
You must be signed in to change notification settings - Fork 76
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
Fix problem with empty cache after reboot #304
Fix problem with empty cache after reboot #304
Conversation
Hi @ykulazhenkov. Thanks for your PR. I'm waiting for a k8snetworkplumbingwg member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
20ee61d
to
03424be
Compare
After discussion with @e0ne we decided that it is better to implement alternative option. I marked PR as draft to apply required changes. |
Old path ("/tmp/ovscache") is cleaned up after reboot on some operating systems. Lack of the cache entries may prevent ovs-cni to do a proper cleanup on CmdDel. Use /var/lib/cni/ovs-cni/cache as a persistent cache dir. Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
03424be
to
b931882
Compare
required changes implemented. The PR is ready for reviews |
/ok-to-test |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: SchSeba, ykulazhenkov The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test pull-e2e-ovs-cni |
What this PR does / why we need it:
Use
/var/lib/cni/ovs-cni/cache
dir to store config cache.Old path
/tmp/ovscache
is cleaned up after reboot on some operating systems.Lack of the cache entries may prevent ovs-cni to do a proper cleanup on CmdDel.
Use
/var/lib/cni/ovs-cni/cache
as a persistent cache dir.Special notes for your reviewer:
Problem with the current code (before this patch):
/tmp/ovscache
is used as a cache path by defaultovs-cni/pkg/utils/cache.go
Line 29 in 10d2594
/tmp
dir will be cleaned up during the host reboot on some distrosovs-cni/pkg/plugin/plugin.go
Line 485 in 10d2594
ovs-cni
will not be able to do a cleanup after the reboot, this will cause, the following state in ovsovs-cni/pkg/plugin/plugin.go
Line 271 in 10d2594
cleanPorts
function. As a result VFs will stuck in the OVS and manual clean-up is required before they can be used again.Release note:
cc @e0ne @SchSeba