From 571e48caeab86905396b83c897dec7501c226150 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Tue, 16 Jun 2020 13:43:37 -0400 Subject: [PATCH] Add tripleo_states to default callback whitelist tripleo_states will be a useful callback to print out informations about a deployment state (e.g. if a node failed but was ignored because of max_failed_percentage). Change-Id: Ia53a5fb554e231d8ea16639efe3c394d0811556c (cherry picked from commit 7e7c3c23dd2199efe69b8da1fa376813821d4c51) --- tripleoclient/constants.py | 2 +- tripleoclient/utils.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tripleoclient/constants.py b/tripleoclient/constants.py index d1b009e52..5f5c47de4 100644 --- a/tripleoclient/constants.py +++ b/tripleoclient/constants.py @@ -43,7 +43,7 @@ OVERCLOUD_NETWORKS_FILE = "network_data.yaml" STANDALONE_NETWORKS_FILE = "/dev/null" UNDERCLOUD_NETWORKS_FILE = "network_data_undercloud.yaml" ANSIBLE_HOSTS_FILENAME = "hosts.yaml" -ANSIBLE_CWL = "tripleo_dense,tripleo_profile_tasks" +ANSIBLE_CWL = "tripleo_dense,tripleo_profile_tasks,tripleo_states" # The name of the file which holds the plan environment contents PLAN_ENVIRONMENT = 'plan-environment.yaml' diff --git a/tripleoclient/utils.py b/tripleoclient/utils.py index ea6ef416d..dc6e85bc2 100644 --- a/tripleoclient/utils.py +++ b/tripleoclient/utils.py @@ -276,7 +276,8 @@ def run_ansible_playbook(playbook, inventory, workdir, playbook_dir=None, :param callback_whitelist: Comma separated list of callback plugins. Defaults to - "tripleo_dense,tripleo_profile_tasks". + "tripleo_dense,tripleo_profile_tasks, + tripleo_states". Custom output_callback is also whitelisted. :type callback_whitelist: String