-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't delete equivalent ACLs by predicate, since it will fail if
equivalent ACL is not deleted from port group/switch. e.g. on netpol sync, users (somehow) ended up with equivalent default deny ACLs with different names, and extra ACL wasn't deleted. Remove DeleteACLs and DeleteACLsOps functions, use DeleteACLsFromPortGroups and RemoveACLsFromLogicalSwitchesWithPredicate instead. Hack unit tests, since we don't explicitly delete ACLs anymore, they will be garbage collected by the ovsdb, but not by our unit test db. Therefore, add dereferenced ACLs to the expected db state, remove that when test server learns to garbage collect acls. Signed-off-by: Nadia Pinaeva <npinaeva@redhat.com> (cherry picked from commit d4604ec) (cherry picked from commit e074706) Conflits: go-controller/pkg/ovn/egressfirewal_test.go: Updated to expect not garbage-collected ACLs
- Loading branch information
Showing
6 changed files
with
137 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.