From 038c58f3d51c15e6fb4d41e79155554f52b4e9bf Mon Sep 17 00:00:00 2001 From: Wes Lambert Date: Tue, 16 Mar 2021 14:51:16 +0000 Subject: [PATCH] Ignore TIME_WAIT when checking for Strelka frontend port reservation --- salt/strelka/init.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/strelka/init.sls b/salt/strelka/init.sls index 3d916aa93..d90484fed 100644 --- a/salt/strelka/init.sls +++ b/salt/strelka/init.sls @@ -103,7 +103,7 @@ strelkaunprocessed: # Check to see if Strelka frontend port is available strelkaportavailable: cmd.run: - - name: netstat -utanp | grep ":57314" | grep -qv docker && PROCESS=$(netstat -utanp | grep ":57314" | uniq) && echo "Another process ($PROCESS) appears to be using port 57314. Please terminate this process, or reboot to ensure a clean state so that Strelka can start properly." && exit 1 || exit 0 + - name: netstat -utanp | grep ":57314" | grep -qvE 'docker|TIME_WAIT' && PROCESS=$(netstat -utanp | grep ":57314" | uniq) && echo "Another process ($PROCESS) appears to be using port 57314. Please terminate this process, or reboot to ensure a clean state so that Strelka can start properly." && exit 1 || exit 0 strelka_coordinator: docker_container.running: