Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete address sets after acls that reference them #3766

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

npinaeva
Copy link
Member

to avoid ovn-controller syntax errors.

For some stupid reason I changed the cleanup order when implemented PodSelectorAddressSet, fix it

ovn-controller syntax errors

Signed-off-by: Nadia Pinaeva <npinaeva@redhat.com>
@npinaeva npinaeva marked this pull request as ready for review July 12, 2023 18:19
Copy link
Member

@tssurya tssurya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
is the reason why tests don't catch this because e2e's don't have coverage?
i understand the UT framework is not smart enough..

@npinaeva
Copy link
Member Author

this bug is only causing a warning in ovn-controller logs, so we would need to check ovn-controller logs to find that (on a node that had pods affected by the network policy), so it may be tricky to test

@JacobTanenbaum
Copy link
Contributor

JacobTanenbaum commented Jul 13, 2023

it is POSSIBLE to test this with UT but I don't like the solution. Using Eventually() we can poll the ovn database to make sure we don't get into a state that we don't want before we get into the expected state...that would catch this but it would be racey (we would only catch it if the database is in bad state at the time we poll) and we would need to know the bad states to poll for.

@trozet trozet merged commit eaf4827 into ovn-org:master Jul 13, 2023
25 of 26 checks passed
@npinaeva npinaeva deleted the delete-acls-first branch July 14, 2023 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants