OVN security group logging burst limit has an unexpected value for stateless security groups
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Low
|
Elvira García Ruiz |
Bug Description
If we set the meter band burst limit for a certain number, we expect to have a a total number of logs almost equal (~10% difference) to the rate_limit + burst_limit for 1 second timeframe. This is true for stateful security groups, but not for stateless security groups. The result of tuning the burst limit should be equal for both stateless and stateful. Currently, stateless security groups outputs exactly double of the expected logs.
I have already discussed this with OVN folks and it looks like it is not on them how stateless and stateful connections work, it's kernel-wise. Therefore, the most immediate way of fixing this is on Neutron itself.
* Step-by-step reproduction steps using Devstack:
See current number of log in ovn-controller.log
C1=$(sudo grep acl_log /opt/stack/
Send big amount of ICMP requests from the undercloud node for less than a second:
sudo ping 172.24.4.223 -i 0.002 -c 500 | tail -n4 #stateless
sudo ping 172.24.4.129 -i 0.002 -c 500 | tail -n4 #stateful
o traffic loss should be observed
Check the last log entry ID and so calculate the amount of logs generated from the last time:
C2=$(sudo grep acl_log /opt/stack/
Log amount (C2 - C1) should be almost equal (~10% difference) to the rate_limit + burst_limit.
Result in between 112 and 138, according to default limit values.
* Results on my environment
burst limit: 25 rate limit: 100
RESULTS (C2-C1):
For stateless security groups: 248
For stateful security groups: 124
Expected result: Aproximately 125 for both
More information at: https:/
Changed in neutron: | |
importance: | Undecided → Medium |
importance: | Medium → Low |
assignee: | nobody → Elvira García Ruiz (elviragr) |
tags: | added: ovn |
description: | updated |
description: | updated |
Changed in neutron: | |
status: | New → In Progress |
Patch: https:/ /review. opendev. org/c/openstack /neutron/ +/892648