Bug 1990279

Summary: Only client to server packets are logged
Product: Red Hat OpenStack Reporter: Alex Katz <akatz>
Component: python-networking-ovnAssignee: Elvira <egarciar>
Status: CLOSED ERRATA QA Contact: Maor <mblue>
Severity: high Docs Contact:
Priority: high    
Version: 16.2 (Train)CC: apevec, egarciar, ekuris, jamsmith, lhh, majopela, scohen
Target Milestone: z5Keywords: Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-networking-ovn-7.4.2-2.20220409154873.el8ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2152877 2181805 (view as bug list) Environment:
Last Closed: 2023-04-26 12:16:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2031150    
Bug Blocks: 1619266, 2152877, 2181805    

Description Alex Katz 2021-08-05 07:35:41 UTC
Description of problem:
With the OVN security group logging feature enabled there is only one direction (from client to server) packets are actually logged. It happens because there is a single OpenFlow rule created for the returned traffic and it has no logging action


1. ICMP request (client-to-server)

cookie=0x3c29ab85, duration=15.254s, table=44, n_packets=1, n_bytes=98, priority=2002,icmp,reg0=0x80/0x80,reg15=0x3,metadata=0x2 actions=load:0x1->NXM_NX_XXREG0[97],controller(userdata=00.00.00.07.00.00.00.00.00.06.6e.65.75.74.72.6f.6e.2d.38.34.61.61.30.64.65.61.2d.35.33.63.31.2d.34.39.33.62.2d.61.33.33.39.2d.62.38.37.63.66.32.65.62.35.61.34.37,meter_id=1),resubmit(,45)

2. ICMP reply (server-to-client)

cookie=0xc7091af2, duration=15.251s, table=44, n_packets=1, n_bytes=98, priority=65532,ct_state=-new+est-rel+rpl-inv+trk,ct_label=0/0x1,metadata=0x2 actions=resubmit(,45)


With ml2/OVS (ovs-firewall driver) plugin there is no such issue as there are logs only for the first packet of each session.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:
From my point of view, we need to log all the packets that are passed through or limit logs with just a single packet for each session.


Additional info:

Comment 17 Elvira 2023-02-23 16:05:33 UTC
This is just waiting for the functional test gate to be unblocked, it is otherwise ready to be merged and merged in 17.1: https://bugzilla.redhat.com/show_bug.cgi?id=2152877

Comment 30 errata-xmlrpc 2023-04-26 12:16:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform 16.2.5 (Train) bug fix and enhancement advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:1763