From c77aaece1d0d67a38151937e11891f5c72f1637d Mon Sep 17 00:00:00 2001 From: Ethan Paul <24588726+enpaul@users.noreply.github.com> Date: Wed, 27 Oct 2021 13:42:52 -0400 Subject: [PATCH] Skip additional instance checks on unrecognized hosts Skip checking the health of a mesh instance when the instance is not registered with the application. This prevents encountering an 'UnbouncLocalError' when running the application attached to a multi-use Receptor mesh network Signed-off-by: Ethan Paul <24588726+enpaul@users.noreply.github.com> --- awx/main/tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 01c13bb661..42fb01d253 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -514,6 +514,7 @@ def inspect_execution_nodes(instance_list): logger.warn(f"Registered execution node '{hostname}' (marked disabled by default)") else: logger.warn(f"Unrecognized node on mesh advertising ansible-runner work type: {hostname}") + continue was_lost = instance.is_lost(ref_time=nowtime) last_seen = parse_date(ad['Time'])