Sunday, 2024-05-19

mohsen_Hello dear friends. I have an issue with utilizing elasticsearch within my openstack environment deployed using kolla-ansible. the problem is that I just wanna enable elasticsearch outside my openstack environment but when I set the variable "elasticsearch_address", it automatically enables opensearch and add its dedicated configuration section to the fluentd config file (td-agent.conf). Since I don't have opensearch 06:23
mohsen_deployed in my environment, fluentd looks for opensearch service in the backend and cannot find anything so get stuck in error state and don't send any logs to elasticsearch as well. 06:23
mohsen_I searched a lot to find the root cause and found these variables in the ansible/group_vars/all.yml file:06:23
mohsen_opensearch_address: "{{ elasticsearch_address if elasticsearch_address is defined else kolla_internal_fqdn }}"06:23
mohsen_and respectively found the following lines in the roles/common/tasks/config.yml file:06:23
mohsen_    default_output_files:06:23
mohsen_      - name: "conf/output/00-local.conf.j2"06:23
mohsen_        enabled: true06:23
mohsen_      - name: "conf/output/01-es.conf.j2"06:23
mohsen_        enabled: "{{ log_direct_to_elasticsearch }}"06:23
mohsen_      - name: "conf/output/03-opensearch.conf.j2"06:23
mohsen_        enabled: "{{ log_direct_to_opensearch }}"06:23
mohsen_I manually set the enable directive to false but again faced the same issue. tell me what should I do?06:23
mohsen_Thank you in advance06:23
mohsenHello dear friends. I have an issue with utilizing elasticsearch within my openstack environment deployed using kolla-ansible. the problem is that I just wanna enable elasticsearch outside my openstack environment but when I set the variable "elasticsearch_address", it automatically enables opensearch and add its dedicated configuration section to the fluentd config file (td-agent.conf). Since I don't have opensearch 06:24
mohsendeployed in my environment, fluentd looks for opensearch service in the backend and cannot find anything so get stuck in error state and don't send any logs to elasticsearch as well. 06:24
mohsenI searched a lot to find the root cause and found these variables in the ansible/group_vars/all.yml file:06:24
mohsenopensearch_address: "{{ elasticsearch_address if elasticsearch_address is defined else kolla_internal_fqdn }}"06:24
mohsenand respectively found the following lines in the roles/common/tasks/config.yml file:06:24
mohsen    default_output_files:06:24
mohsen      - name: "conf/output/00-local.conf.j2"06:24
mohsen        enabled: true06:24
mohsen      - name: "conf/output/01-es.conf.j2"06:24
mohsen        enabled: "{{ log_direct_to_elasticsearch }}"06:24
mohsen      - name: "conf/output/03-opensearch.conf.j2"06:24
mohsen        enabled: "{{ log_direct_to_opensearch }}"06:24
mohsenI manually set the enable directive to false but again faced the same issue. tell me what should I do?06:24
mohsenThank you in advance06:24

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!