diff --git a/ansible/roles/common/tasks/config.yml b/ansible/roles/common/tasks/config.yml index 5915ac02dd..022570bff3 100644 --- a/ansible/roles/common/tasks/config.yml +++ b/ansible/roles/common/tasks/config.yml @@ -111,7 +111,7 @@ vars: log_direct_to_elasticsearch: >- {{ ( enable_elasticsearch | bool or - ( elasticsearch_address != kolla_internal_vip_address )) and + ( elasticsearch_address != kolla_internal_fqdn )) and ( not enable_monasca | bool or not monasca_ingest_control_plane_logs | bool ) }} fluentd_version: "{{ fluentd_labels.images.0.ContainerConfig.Labels.fluentd_version | default('0.12') }}" # Inputs diff --git a/releasenotes/notes/bug-1927880-cc407f18f415bbd2.yaml b/releasenotes/notes/bug-1927880-cc407f18f415bbd2.yaml new file mode 100644 index 0000000000..e94e1a5f59 --- /dev/null +++ b/releasenotes/notes/bug-1927880-cc407f18f415bbd2.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixes elasticsearch fluentd output being enabled when + elasticsearch is not enabled. + `LP#1927880 `__