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

v1.13 Backports 2023-05-16 #25503

Merged
merged 11 commits into from May 19, 2023
Merged

v1.13 Backports 2023-05-16 #25503

merged 11 commits into from May 19, 2023

Conversation

jibi
Copy link
Member

@jibi jibi commented May 17, 2023

PRs skipped due to conflicts:

Once this PR is merged, you can update the PR labels via:

for pr in 25341 25352 25183 25374 25306 25390 25278; do contrib/backporting/set-labels.py $pr done 1.13; done

or with

make add-labels BRANCH=v1.13 ISSUES=25341,25352,25183,25374,25306,25390,25278

@jibi jibi requested a review from a team as a code owner May 17, 2023 09:33
@jibi jibi added kind/backports This PR provides functionality previously merged into master. backport/1.13 This PR represents a backport for Cilium 1.13.x of a PR that was merged to main. labels May 17, 2023
tommyp1ckles and others added 3 commits May 17, 2023 11:34
[ upstream commit 6878133 ]

In the K8sDatapathConfig tests "echo-svc" deployment Pods are failing to terminate while waiting to terminate all Pods.
These come from a deployment, that shouldn't be applied in this suite. Presumably failure to delete is being cause by the Deployment controller restarting the Pods as they're deleted.

To try to fix this, going to wait for applied yamls in K8sServices to be fully deleted, including finalizers.

Addresses: #25255

Signed-off-by: Tom Hadlaw <tom.hadlaw@isovalent.com>
Signed-off-by: Gilberto Bertin <jibi@cilium.io>
[ upstream commit 0112ddb ]

Add missing 'sudo' commands so that this can be run from a shell in a dev
VM to launch a local cilium agent in docker.

Only install the bpf mount unit to systemd if not already mounted. This
avoids error message like this:

    Unit sys-fs-bpf.mount has a bad unit file setting

With these changes Cilium agent can be compiled and launced in docker,
assuming the VM hostname does NOT include "k8s", like so:

   $ SKIP_TEST_IMAGE_DOWNLOAD=1 VMUSER=${USER} PROVISIONSRC=test/provision test/provision/compile.sh

After this 'docker ps' should show a "cilium" container.

This can be used, for example to quickly run Cilium agent locally to
observer agent startup and exit logs via 'docker logs cilium -f' when
stopping cilium with 'docker stop cilium'.

Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
Signed-off-by: Gilberto Bertin <jibi@cilium.io>
[ upstream commit f601b4c ]

We're returning a DROP reason, but nothing outside do_netdev() creates the
corresponding drop notification from it.

Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
Signed-off-by: Gilberto Bertin <jibi@cilium.io>
@jibi jibi force-pushed the pr/v1.13-backport-2023-05-16 branch from 098daa1 to c4c4725 Compare May 17, 2023 09:35
[ upstream commit 9788f53 ]

do_netdev_encrypt_encap() can return various errors, but its caller doesn't
raise the corresponding drop notification.

Also clean up the one case in do_netdev_encrypt_encap() where we currently
*do* raise a drop notification.

Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
Signed-off-by: Gilberto Bertin <jibi@cilium.io>
[ upstream commit e92863c ]

__encap_and_redirect_with_nodeid() expects the caller to handle this check.
Otherwise we end up encapsulating with an OuterDstIP of 0.0.0.0.

I looked at all the other users, looks like this was the only one missing.

Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
Signed-off-by: Gilberto Bertin <jibi@cilium.io>
[ upstream commit c058e9b ]

Align with all the other error paths in tail_handle_arp() and raise a drop
notification on error. This function is executed as a tail-call, so there's
no surrounding code that would do this for us otherwise.

Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
Signed-off-by: Gilberto Bertin <jibi@cilium.io>
[ upstream commit b96624d ]

Add an error path for the from-netdev program that handles the missing
drop notification.

backporting conflicts:
* bpf/bpf_host.c: some conflicts in cil_from_netdev as that function
  differs quite a bit in v1.13

Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
Signed-off-by: Gilberto Bertin <jibi@cilium.io>
@jibi jibi force-pushed the pr/v1.13-backport-2023-05-16 branch from c4c4725 to 4387482 Compare May 17, 2023 09:36
tommyp1ckles and others added 4 commits May 17, 2023 11:38
[ upstream commit 8f7a537 ]

Allow ICMP/ICMPv6 traffic on all nodes.

Fixes: #25344 #25343 #25342

Signed-off-by: Tom Hadlaw <tom.hadlaw@isovalent.com>
Signed-off-by: Gilberto Bertin <jibi@cilium.io>
[ upstream commit 405bd39 ]

When revSNATing ICMPv6 packets, check for the ICMPv6 type identifiers.

Fixes: 0759290 ("bpf/nat: review snat_v{4|6}_rewrite_ingress to support more ICMP types")
Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
Signed-off-by: Gilberto Bertin <jibi@cilium.io>
[ upstream commit 7f3d8d0 ]

This distro has recently been confirmed to play well with Cilium #15393

Signed-off-by: Maciej Kwiek <maciej@isovalent.com>
Signed-off-by: Gilberto Bertin <jibi@cilium.io>
[ upstream commit 800c7ef ]

Signed-off-by: Akhil Velagapudi <4@4khil.com>
Signed-off-by: Gilberto Bertin <jibi@cilium.io>
@jibi jibi force-pushed the pr/v1.13-backport-2023-05-16 branch from 4387482 to 59d5b90 Compare May 17, 2023 09:38
@jibi
Copy link
Member Author

jibi commented May 17, 2023

/test-backport-1.13

Copy link
Member

@nebril nebril left a comment

Choose a reason for hiding this comment

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

My changes look good

Copy link
Member

@julianwiedmann julianwiedmann left a comment

Choose a reason for hiding this comment

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

bpf: add missing drop notifications #25183 (@julianwiedmann)

* warning quite some conflicts here in `bpf/bpf_host.c`, documented in the individual commits, review it carefully

I found only one commit that mentioned a conflict, and the resolution there looks good. The other commits look good too :). Thank you!

@jibi
Copy link
Member Author

jibi commented May 17, 2023

bpf: add missing drop notifications #25183 (@julianwiedmann)

* warning quite some conflicts here in `bpf/bpf_host.c`, documented in the individual commits, review it carefully

I found only one commit that mentioned a conflict, and the resolution there looks good. The other commits look good too :). Thank you!

sorry, realized only afterwards that the other 2 conflicting commits ended up being empty :disappear:

@aditighag aditighag merged commit f9bdd00 into v1.13 May 19, 2023
62 checks passed
@aditighag aditighag deleted the pr/v1.13-backport-2023-05-16 branch May 19, 2023 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.13 This PR represents a backport for Cilium 1.13.x of a PR that was merged to main. kind/backports This PR provides functionality previously merged into master.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants