openstack-k8s-operators / edpm-ansible

External Dataplane Management Ansible Playbooks
https://openstack-k8s-operators.github.io/edpm-ansible/
Apache License 2.0
9 stars 65 forks source link

nftables: disable logging of dropped packets by default #685

Closed rjarry closed 2 months ago

rjarry commented 2 months ago

Depending on the console redirection configured on boot, logging packets before dropping them may cause excessive latency issues. Sometimes this can even stall a CPU for 200ms with some UART controllers and console=ttyS0.

In most openstack deployments, the is a bridge that may receive random DHCP requests. For example, when creating a lot of SRIOV VFs, NetworkManager will try to configure them with DHCP and broadcast packets. This causes the packets to be received by all overcloud nodes and be dropped, e.g:

kernel: IN=ens8f0v2 OUT= MAC=ff:ff:ff:ff:ff:ff:2a:75:ff:3d:02:f0:08:00 SRC=0.0.0.0 DST=255.255.255.255 LEN=327 TOS=0x00 PREC=0xC0 TTL=64 ID=0 DF PROTO=UDP SPT=68 DPT=67 LEN=307

I could not find any motivation for the existence of this LOG rule. Not event in puppet tripleo where this log rule was first introduced in 2015.

I think this rule has no real purpose and should be removed. There are counters for dropped packets in nftables. And if users want to know what packets are dropped, they can see them using tcpdump.

The LOG rule can be restored using the edpm_nftables_debug role variable.

Link: https://github.com/stackforge/puppet-openstack-cloud/commit/5102e5130ae4

openshift-ci[bot] commented 2 months ago

Hi @rjarry. Thanks for your PR.

I'm waiting for a openstack-k8s-operators member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.
openshift-ci[bot] commented 2 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rjarry, slagle

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: - ~~[OWNERS](https://github.com/openstack-k8s-operators/edpm-ansible/blob/main/OWNERS)~~ [slagle] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment