You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make ensureSecurityRule() safely idempotent (#2249)
`ensureSecurityRule()` is used to add a rule to an existing security
group. At first it was listing all the rules in the SG and then if the
requested rule wasn't present it was adding it. This has some risk - the
list of SG rules can be modified in-between by some other thread.
This commit changes the logic of that function to just try to create the
rule. Neutron API will return 409 Conflict if the rule already exists
and if it does OCCM will just ignore the error and move on.
0 commit comments