Bug 2111534 - [OVNK] Conntrack Rules are removed before the service rules/flows
Summary: [OVNK] Conntrack Rules are removed before the service rules/flows
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.8
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.12.0
Assignee: Surya Seetharaman
QA Contact: Weibin Liang
URL:
Whiteboard:
Depends On:
Blocks: 2111548
TreeView+ depends on / blocked
 
Reported: 2022-07-27 12:59 UTC by Surya Seetharaman
Modified: 2023-01-17 19:54 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 2111548 (view as bug list)
Environment:
Last Closed: 2023-01-17 19:53:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift ovn-kubernetes pull 1214 0 None Merged Bug 2111534: Downstream Merge: 27-07-2022 2022-09-01 18:00:07 UTC
Red Hat Product Errata RHSA-2022:7399 0 None None None 2023-01-17 19:54:01 UTC

Description Surya Seetharaman 2022-07-27 12:59:46 UTC
Description of problem:

When we fixed https://bugzilla.redhat.com/show_bug.cgi?id=2053609, we ended up deleting the conntrack entries for services before the service flows and iptable rules were removed.

To be safer, removing conntrack entries should be done after the service flows and rules to ensure the entries don't get recreated.


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Weibin Liang 2022-08-17 19:29:51 UTC
Comparing verification steps in https://bugzilla.redhat.com/show_bug.cgi?id=2053609#c14, can not see the entry with the dnat from externalIP/172.31.249.55 to clusterIP/172.30.208.240 in 4.12.0-0.nightly-2022-08-15-150248.

[weliang@weliang ~]$ oc get all -o wide -n test-sctp
NAME             READY   STATUS    RESTARTS   AGE     IP            NODE                              NOMINATED NODE   READINESS GATES
pod/sctpclient   1/1     Running   0          5h36m   10.128.2.16   weliang-817a-w4wnl-worker-9d8ks   <none>           <none>
pod/sctpserver   1/1     Running   0          5h36m   10.129.2.8    weliang-817a-w4wnl-worker-nqz6f   <none>           <none>

NAME                  TYPE           CLUSTER-IP       EXTERNAL-IP     PORT(S)            AGE     SELECTOR
service/sctpservice   LoadBalancer   172.30.208.240   172.31.249.55   30102:30741/SCTP   5h36m   name=sctpserver
[weliang@weliang ~]$ 

## streaming traffic and checking entries simultaneously

[weliang@weliang ~]$ oc debug node/weliang-817a-w4wnl-worker-9d8ks
sh-4.4# chroot /host
sh-4.4# conntrack -E -p sctp 
    [NEW] sctp     132 3 src=10.128.2.16 dst=172.31.249.55 sport=40919 dport=30102 [UNREPLIED] src=10.129.2.8 dst=10.128.2.16 sport=30102 dport=40919 mark=2 zone=24
^Cconntrack v1.4.4 (conntrack-tools): 2 flow events have been shown.

Comment 3 Surya Seetharaman 2022-09-01 18:00:58 UTC
Working with Weibin on this one, we were doing wrong verification steps so the previous message can be ignored.

Comment 4 Weibin Liang 2022-09-01 18:11:01 UTC
Verified in 4.12.0-0.nightly-2022-08-31-101631 after checking conntrack entry in the correct node.
Thanks Surya for helping the debugging the issue.

Comment 7 errata-xmlrpc 2023-01-17 19:53:34 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 (Moderate: OpenShift Container Platform 4.12.0 bug fix and security update), 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/RHSA-2022:7399


Note You need to log in before you can comment on or make changes to this bug.