-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
daemon: Dump ipcache without probing for support #19501
daemon: Dump ipcache without probing for support #19501
Conversation
/test |
/test-1.23-net-next |
/test-1.21-5.4 |
/test-1.16-4.9 |
Bunch of VM provisioning fails like this:
Likely specific to which runner gets hit by the Jenkins job? |
/test-1.21-5.4 |
/test-1.16-4.9 |
12a035d
to
891919a
Compare
/test |
/test-1.16-4.9 |
/test-1.21-5.4 |
/test-1.22-4.19 |
/test-1.23-net-next |
Restarted tests due to VM provisioning fails. |
/test-1.22-4.19 Job 'Cilium-PR-K8s-GKE' failed: Click to show.Test Name
Failure Output
If it is a flake and a GitHub issue doesn't already exist to track it, comment |
/test |
/ci-awscni |
ConformanceAKS is failing during cleanup, but this job is known to be failing and not currently marked as required.
All other testsuites are passing. Bypassing to merge this fix. |
This makes SupportsDelete() use a separate map for the probing so it'll work even if the map hasn't been pinned yet, allowing it to be used early in the init and hopefully preventing issues like one fixed by cilium#19501. Fixes: cilium#19619 Signed-off-by: Jussi Maki <jussi@isovalent.com>
Ipcache SupportDump() and SupportsDelete() open the map to probe for the
support if the map is not already open and also schedule the
bpf-map-sync-cilium_ipcache controller. If the controller is run before
initMaps(), initMaps will fail as the controller will leave the map open
and initMaps() assumes this not be the case.
Solve this by not trying to detect dump support, but try dump and see if
it succeeds. This is exactly the same logic dump support detection would
have used anyway, and this fixes Cilium Agent crash on kernels that do not
support ipcache dump operations and when certain Cilium features are
enabled on slow machines that caused the scheduled controller to run too
soon.
Fixes: #19360
Fixes: #19495
Signed-off-by: Jarno Rajahalme jarno@isovalent.com