marlof / ScORCH

DevOps Orchestration for Obrar deploy and Ansible playbooks
http://www.autoscorch.com
Apache License 2.0
5 stars 1 forks source link

Dispatcher completion closes scorch dashboard #180

Closed marlof closed 11 months ago

marlof commented 11 months ago

When scorch is running and the dispatcher is started, when the dispatcher finishes, it triggers scorch to also finish

marlof commented 11 months ago

The error can be replicated by the following steps on CentOS. (This repeat failure does not seem to work on Ubuntu)

The error is trigger between "Checking authority: user:", then shows the line "This is the dispatch host but the process associated with the dispatch lock file has died. (Removing lock) and exits with a status 0 after a clear.

marlof commented 11 months ago

When run in bash -x mode in step 4 the debug comes up with

+ typeset int_DispatcherPID
++ ls -l /opt/scorch/var/locks//dispatch.lck
++ /bin/awk -F_ '{print $NF}'
+ int_DispatcherPID=
+ int_DispatcherPID=0
marlof commented 11 months ago

Added a [[ -L ]] test