From 296de45b302a1163e5d2f7dc1119a5bcbd77a3ce Mon Sep 17 00:00:00 2001 From: FelipeAFV Date: Mon, 6 Mar 2023 15:17:35 -0300 Subject: [PATCH] Clarifies misleading error on ceilometer role`s precheck task Signed-off-by: FelipeAFV Closes-Bug: #2009518 Change-Id: I8c4b0053f2f16b6d243462c4b8117748d26143a0 --- ansible/roles/ceilometer/tasks/precheck.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ansible/roles/ceilometer/tasks/precheck.yml b/ansible/roles/ceilometer/tasks/precheck.yml index 96240ca94d..4f5580f135 100644 --- a/ansible/roles/ceilometer/tasks/precheck.yml +++ b/ansible/roles/ceilometer/tasks/precheck.yml @@ -5,11 +5,10 @@ service_precheck_services: "{{ ceilometer_services }}" service_name: "{{ project_name }}" -- name: Checking gnocchi backend for ceilometer - fail: - msg: "gnocchi is required but not enabled" +- name: Checking Ceilometer publishers + assert: + that: + - not (enable_ceilometer | bool) or enable_gnocchi | bool or enable_ceilometer_prometheus_pushgateway | bool + msg: "At least one Ceilometer publisher must be enabled" run_once: True changed_when: false - when: - - enable_ceilometer | bool - - not (enable_gnocchi | bool or enable_ceilometer_prometheus_pushgateway | bool)