Merge "[API replay] Do not collect Octavia stats in API replay mode"

This commit is contained in:
Zuul 2021-09-24 22:50:25 +00:00 committed by Gerrit Code Review
commit 11fafef7cb
1 changed files with 3 additions and 0 deletions

View File

@ -744,6 +744,9 @@ class NSXOctaviaStatisticsCollector(object):
LOG.info("NSXOctaviaStatisticsCollector thread_runner is running")
while True:
time.sleep(interval)
if cfg.CONF.api_replay_mode:
LOG.debug("Not collecting Octavia stats in API replay mode")
continue
try:
self.collect()
except Exception as e: