Remove reject ACLs regardless of cache#1738
Conversation
|
/hold Want to test this more and maybe also add another commit for handling stale ACL removal in syncServices. |
bfd27a4 to
16fa58b
Compare
|
If we have to do some kind of "sync OVN database to Kube API state" when ovnkube restarts, we should do that in the sync functions if possible. |
16fa58b to
608adcd
Compare
@dcbw I added some handling in the services sync function. This is a little tricky because these are ACLs, so we can't be 100% sure that they belong to services unless the name matches. Therefore I only blow those away if I can tell that they have the expected name of a service and are stale (aka have endpoints). I fixed the regular delete operation to use the cache. However, when we can tell the cache is in an invalid state, last resort is still to try to query OVN. |
|
running downstream on openshift/ovn-kubernetes#295 |
608adcd to
cee6292
Compare
cee6292 to
79223d6
Compare
|
/lgtm |
Previously we were just checking if there as a known ACL which existed in the cache. If the cache is ever out of sync, we could accidentally leave stale reject ACLs configured in OVN. This patch adds checking during service sync for any known stale ACLs with reject actions belonging to a service. During regular reject ACL delete a new check is added to see if cache is in an invalid state, and if so attempt to remove the ACL by querying OVN. Signed-off-by: Tim Rozet <trozet@redhat.com>
79223d6 to
3e00ff5
Compare
I didn't look closely. I saw there were a few flakes, and that's about what we usually get out of our CI these days 🥇 Let's see what the next round of CI results bring. |
|
I think CI looks OK. These changes aren't IPv6 or shared gw specific. |
…_413 [release-4.13] OCPBUGS-15496: Fix default GW IPs retrieval
Previously we were just checking if there as a known ACL which existed
in the cache. If the cache is ever out of sync, we could accidentally
leave stale reject ACLs configured in OVN.
This patch adds checking during service sync for any known stale ACLs
with reject actions belonging to a service. During regular reject ACL
delete a new check is added to see if cache is in an invalid state, and
if so attempt to remove the ACL by querying OVN.
Signed-off-by: Tim Rozet trozet@redhat.com