From f165b81e2a73e02bc9c8bab82de0a712d8c226e3 Mon Sep 17 00:00:00 2001 From: generalfuzz Date: Tue, 5 May 2020 09:55:50 -0700 Subject: [PATCH] Use FQDN to communicate with Kibana and Elasticsearch Switch URL composition from using VIP to FQDN to connect with Kibana and Elasticsearch services. Change-Id: I5d559ead1d6d5e928e76bb685e0f730868fd7b89 Closes-Bug: #1862419 --- ansible/roles/kibana/tasks/migrate-kibana-index.yml | 2 +- ansible/roles/kibana/tasks/post_config.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/kibana/tasks/migrate-kibana-index.yml b/ansible/roles/kibana/tasks/migrate-kibana-index.yml index 694a5a8d96..e0d699eeee 100644 --- a/ansible/roles/kibana/tasks/migrate-kibana-index.yml +++ b/ansible/roles/kibana/tasks/migrate-kibana-index.yml @@ -1,7 +1,7 @@ --- - name: Set fact for Elasticsearch URL set_fact: - elasticsearch_url: "{{ internal_protocol }}://{{ kolla_internal_vip_address | put_address_in_context('url') }}:{{ elasticsearch_port }}" + elasticsearch_url: "{{ internal_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ elasticsearch_port }}" - name: Wait for Elasticsearch become: true diff --git a/ansible/roles/kibana/tasks/post_config.yml b/ansible/roles/kibana/tasks/post_config.yml index 0d393b5f25..b5e7c4397a 100644 --- a/ansible/roles/kibana/tasks/post_config.yml +++ b/ansible/roles/kibana/tasks/post_config.yml @@ -1,7 +1,7 @@ --- - name: Wait for kibana port wait_for: - host: "{{ kolla_internal_vip_address }}" + host: "{{ kolla_internal_fqdn }}" port: "{{ kibana_server_port }}" run_once: true