From 7f951ea56e4d981ba5644b45e2bc0f04c71e0083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Trellu?= Date: Fri, 6 Dec 2019 14:49:19 -0500 Subject: [PATCH] Use internal API for masakari-monitor By default api_interface is set to public, masakari-monitor on compute nodes should communicate via the internal API to reach masakari-api. Change-Id: I454f44e57d7b17d93d4aefc4cbbed93aefe874b1 Closes-Bug: #1858431 --- ansible/roles/masakari/templates/masakari-monitors.conf.j2 | 1 + ...internal-api-for-masakari-monitor-9ba03166ff375601.yaml | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 releasenotes/notes/use-internal-api-for-masakari-monitor-9ba03166ff375601.yaml diff --git a/ansible/roles/masakari/templates/masakari-monitors.conf.j2 b/ansible/roles/masakari/templates/masakari-monitors.conf.j2 index 0a8a6b547e..18009ddb80 100644 --- a/ansible/roles/masakari/templates/masakari-monitors.conf.j2 +++ b/ansible/roles/masakari/templates/masakari-monitors.conf.j2 @@ -11,6 +11,7 @@ project_domain_id = {{ default_project_domain_id }} username = {{ masakari_keystone_user }} password = {{ masakari_keystone_password }} cafile = {{ openstack_cacert | default(omit) }} +api_interface = internal [libvirt] connection_uri = "qemu+tcp://{{ migration_interface_address | put_address_in_context('url') }}/system" diff --git a/releasenotes/notes/use-internal-api-for-masakari-monitor-9ba03166ff375601.yaml b/releasenotes/notes/use-internal-api-for-masakari-monitor-9ba03166ff375601.yaml new file mode 100644 index 0000000000..eeb0ac2639 --- /dev/null +++ b/releasenotes/notes/use-internal-api-for-masakari-monitor-9ba03166ff375601.yaml @@ -0,0 +1,7 @@ +--- +fixes: + - | + ``masakari-monitor`` will now use the internal API to + reach masakari-api. + `LP#1858431 + `__