[config] Fix race in security resource modification when draft mode enabled
In security draft mode to avoid issues, a scope lock is created when
an action is ongoing. It avoids any other action to be performed and also
forbidden any security resource modifications.
The check on resource modification was buggy as it required the lock to
check if it was already acquired. That produces race when concurrency
security resources modifications occur.
Reviewed: https:/ /review. opencontrail. org/42591 github. com/Juniper/ contrail- controller/ commit/ d60145153b1381d 24ef81f809147a7 66bce6b9b2
Committed: http://
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master
commit d60145153b1381d 24ef81f809147a7 66bce6b9b2
Author: Édouard Thuleau <email address hidden>
Date: Fri Apr 27 18:03:09 2018 +0200
[config] Fix race in security resource modification when draft mode enabled
In security draft mode to avoid issues, a scope lock is created when
an action is ongoing. It avoids any other action to be performed and also
forbidden any security resource modifications.
The check on resource modification was buggy as it required the lock to
check if it was already acquired. That produces race when concurrency
security resources modifications occur.
Change-Id: I980456c22551ca 6e7f5dd645140f4 f54fb354c0a
Closes-Bug: #1767425