Fix multi proxy race condition (#909)

Refactored PR of #904 for easier review.  Once #908 is reviewed & merged, this will be easier to review.
This commit is contained in:
bmc-msft
2021-05-22 02:50:08 -04:00
committed by GitHub
parent 6e5f7e4d4c
commit a103985c0d
3 changed files with 33 additions and 42 deletions

View File

@ -169,6 +169,9 @@ class Proxy(ORMMixin):
self.delete()
def is_outdated(self) -> bool:
if self.state not in VmState.available():
return True
if self.version != __version__:
logging.info(
PROXY_LOG_PREFIX + "mismatch version: proxy:%s service:%s state:%s",