From 10d33f82bb4d6815a0d12c14511d457836fe6f78 Mon Sep 17 00:00:00 2001 From: Bartosz Zurkowski Date: Sun, 16 Dec 2018 16:49:48 +0100 Subject: [PATCH] Find Monasca agent plugins locally Find module searches paths on managed server. Since role path and custom Kolla config is located on deployment node and deployment node is not considered to be a managed server, Monasca plugin files cannot be found. After the deployment container running Monasca agent collector stucks in restart mode due to missing plugin files. The problem does not occur if deployment was started from a managed server (eg. OSC). The problem occurs if the deployment was started from a separate deployment server - a common case. This change enforces running find module locally on deployment node. Change-Id: Ia25daafe2f82f5744646fd2eda2d255ccead814e Signed-off-by: Bartosz Zurkowski --- ansible/roles/monasca/tasks/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible/roles/monasca/tasks/config.yml b/ansible/roles/monasca/tasks/config.yml index 83654a952b..ed47a98681 100644 --- a/ansible/roles/monasca/tasks/config.yml +++ b/ansible/roles/monasca/tasks/config.yml @@ -61,7 +61,8 @@ - service.enabled | bool - name: Find monasca-agent-collector plugin configuration files - find: + local_action: + module: find paths: - "{{ role_path }}/templates/monasca-agent-collector/plugins/" - "{{ node_custom_config }}/monasca/agent_plugins/"