Increase port cleanup interval

If we set the interval too short (currently 3m), we may delete
a port which simply hasn't been attached to an instance yet if
instance creation is proceeding slowly.

Change-Id: I372e45f2442003369ab9057e1e5d468249e23dad
This commit is contained in:
James E. Blair 2019-06-21 07:39:12 -07:00
parent 1c97e4f690
commit 75adc01f0a
1 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,10 @@ class OpenStackProvider(Provider):
self._zk = None
self._down_ports = set()
self._last_port_cleanup = None
self._port_cleanup_interval_secs = 180
# Set this long enough to avoid deleting a port which simply
# hasn't yet been attached to an instance which is being
# created.
self._port_cleanup_interval_secs = 600
self._statsd = stats.get_client()
def start(self, zk_conn):