-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
SWP Policy Rule - Mitigate multiple rules issue #12704
base: main
Are you sure you want to change the base?
Conversation
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @slevenick, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Adding wait time when deleting makes sense to me. But I doubt if the wait time will resolve the multiple rules creation issue as the wait time is added to each rule. Do you know the reason for the creation internal error? |
Tests analyticsTotal tests: 50 Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
@zli82016 This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a comment
I was investigation this creation error but I was not able to find anything that explains. On the logs it only shows the internal error but no further inforations. One test I did was create the policy alongside with the rules on the GCP Console:
I believe that it could be some sort of a race codition during the creation! FYI: I just tryied to create 10 simutaniously and I got the error, I'm investigating to see what else I can do on the code to prevent this creation issue |
@Samir-Cit , thanks for the investigation. Do you have the github issue for the creation error? |
I'll create the issue and link to this PR |
@zli82016 issue opened: |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 46 Click here to see the affected service packages
🔴 Tests were added that are skipped in VCR:
View the build log |
I just changed the function to get the wait time for the sleep function. Using this code below to create the rules:
But it's just a workaround, even though it's two "random" numbers multiplying there's a chance to get a small diference result which will cause the issue. |
Thanks for working on it. Can we hold for a while for this issue? I need to check with the service team for their input. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Sure, no problem. |
Tests analyticsTotal tests: 47 Click here to see the affected service packages
🔴 Tests were added that are skipped in VCR:
View the build log |
@zli82016 This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
@modular-magician reassign-reviewer as I am going be OOO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still waiting on service team response
Hello folks.
This PR is to mitigate the issue when creating and/or deleting multiple google_network_security_gateway_security_policy_rule
internal error
which looks like a race condition.Release Note Template for Downstream PRs (will be copied)
See Write release notes for guidance.