Bug 2029742
Summary: | [ovn] Stale lr-policy-list and snat rules left for egressip | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | huirwang |
Component: | Networking | Assignee: | ffernand <ffernand> |
Networking sub component: | ovn-kubernetes | QA Contact: | huirwang |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | high | ||
Priority: | medium | CC: | bpickard, dbrahane, jechen |
Version: | 4.10 | Keywords: | Triaged |
Target Milestone: | --- | ||
Target Release: | 4.10.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-03-10 16:32:20 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: | |||
Bug Blocks: | 2034477, 2048841 |
Description
huirwang
2021-12-07 08:28:57 UTC
Stale rows are not getting deleted because of the following error in the transaction:
I1221 22:49:13.197021 37 model_client.go:313] Delete operations generated as: [{Op:delete Table:Logical_Router_Policy Row:map[] Rows:[] Columns:[] Mutations:[] Timeout:0 Where:[where column _uuid == {a97cd20d-c22b-4a99-882f-e19ebf9d\
6af7}] Until: Durable:<nil> Comment:<nil> Lock:<nil> UUIDName:}]
E1221 22:49:13.197075 37 egressip.go:877] XXX syncStaleEgressReroutePolicy will delete egressip: {a97cd20d-c22b-4a99-882f-e19ebf9d6af7 reroute map[name:egressip] ip4.src == 10.244.1.27 <nil> [100.64.0.4] map[] 100}
I1221 22:49:13.197388 37 model_client.go:304] Mutate operations generated as: [{Op:mutate Table:Logical_Router Row:map[] Rows:[] Columns:[] Mutations:[{Column:policies Mutator:delete Value:{GoSet:[{GoUUID:a97cd20d-c22b-4a99-882f-e19\
ebf9d6af7}]}}] Timeout:0 Where:[where column _uuid == {4a681460-5950-463c-9fb9-745721734569}] Until: Durable:<nil> Comment:<nil> Lock:<nil> UUIDName:}]
I1221 22:49:13.197447 37 transact.go:41] Configuring OVN: [{Op:delete Table:Logical_Router_Policy Row:map[] Rows:[] Columns:[] Mutations:[] Timeout:0 Where:[where column _uuid == {891376ae-6907-4ba9-b72f-d476ebaeb5c6}] Until: Durabl\
e:<nil> Comment:<nil> Lock:<nil> UUIDName:} {Op:delete Table:Logical_Router_Policy Row:map[] Rows:[] Columns:[] Mutations:[] Timeout:0 Where:[where column _uuid == {a97cd20d-c22b-4a99-882f-e19ebf9d6af7}] Until: Durable:<nil> Comment:<nil\
> Lock:<nil> UUIDName:} {Op:mutate Table:Logical_Router Row:map[] Rows:[] Columns:[] Mutations:[{Column:policies Mutator:delete Value:{GoSet:[{GoUUID:a97cd20d-c22b-4a99-882f-e19ebf9d6af7}]}}] Timeout:0 Where:[where column _uuid == {4a681\
460-5950-463c-9fb9-745721734569}] Until: Durable:<nil> Comment:<nil> Lock:<nil> UUIDName:}]
I1221 22:49:13.197651 37 client.go:726] "msg"="transacting operations" "database"="OVN_Northbound" "operations"="[{Op:delete Table:Logical_Router_Policy Row:map[] Rows:[] Columns:[] Mutations:[] Timeout:0 Where:[where column _uuid\
== {891376ae-6907-4ba9-b72f-d476ebaeb5c6}] Until: Durable:<nil> Comment:<nil> Lock:<nil> UUIDName:} {Op:delete Table:Logical_Router_Policy Row:map[] Rows:[] Columns:[] Mutations:[] Timeout:0 Where:[where column _uuid == {a97cd20d-c22b-4\
a99-882f-e19ebf9d6af7}] Until: Durable:<nil> Comment:<nil> Lock:<nil> UUIDName:} {Op:mutate Table:Logical_Router Row:map[] Rows:[] Columns:[] Mutations:[{Column:policies Mutator:delete Value:{GoSet:[{GoUUID:a97cd20d-c22b-4a99-882f-e19ebf\
9d6af7}]}}] Timeout:0 Where:[where column _uuid == {4a681460-5950-463c-9fb9-745721734569}] Until: Durable:<nil> Comment:<nil> Lock:<nil> UUIDName:}]"
E1221 22:49:13.198459 37 egressip.go:895] Unable to remove stale logical router policies, err: error in transact with ops [{Op:delete Table:Logical_Router_Policy Row:map[] Rows:[] Columns:[] Mutations:[] Timeout:0 Where:[where colum\
n _uuid == {891376ae-6907-4ba9-b72f-d476ebaeb5c6}] Until: Durable:<nil> Comment:<nil> Lock:<nil> UUIDName:} {Op:delete Table:Logical_Router_Policy Row:map[] Rows:[] Columns:[] Mutations:[] Timeout:0 Where:[where column _uuid == {a97cd20d\
-c22b-4a99-882f-e19ebf9d6af7}] Until: Durable:<nil> Comment:<nil> Lock:<nil> UUIDName:} {Op:mutate Table:Logical_Router Row:map[] Rows:[] Columns:[] Mutations:[{Column:policies Mutator:delete Value:{GoSet:[{GoUUID:a97cd20d-c22b-4a99-882f\
-e19ebf9d6af7}]}}] Timeout:0 Where:[where column _uuid == {4a681460-5950-463c-9fb9-745721734569}] Until: Durable:<nil> Comment:<nil> Lock:<nil> UUIDName:}] results [{Count:1 Error: Details: UUID:{GoUUID:} Rows:[]} {Count:1 Error: Details\
: UUID:{GoUUID:} Rows:[]} {Count:1 Error: Details: UUID:{GoUUID:} Rows:[]} {Count:0 Error:referential integrity violation Details:cannot delete Logical_Router_Policy row 891376ae-6907-4ba9-b72f-d476ebaeb5c6 because of 1 remaining referen\
ce(s) UUID:{GoUUID:} Rows:[]}] and errors []: referential integrity violation: cannot delete Logical_Router_Policy row 891376ae-6907-4ba9-b72f-d476ebaeb5c6 because of 1 remaining reference(s)
There is something wrong in the mutation delete, because the wrong uuid is being deleted. To be further investigated.
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.10.3 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:0056 |