From 76579b80a1586b2c8d29555f47b01f5e58be655b Mon Sep 17 00:00:00 2001 From: wuchunyang <wuchunyang@yovole.com> Date: Wed, 10 Mar 2021 21:26:59 +0800 Subject: [PATCH] Fix cyborg api doesn't listen on api interface host -> host_ip[0] Remove deprecated configuration notification_topics. WARNING oslo_config.cfg [-] Deprecated: Option "notification_topics" from group "DEFAULT" is deprecated. Use option "topics" from group "oslo_messaging_notifications". [0]https://docs.openstack.org/cyborg/latest/configuration/sample-config.html Change-Id: Ia5d53fb60d34c1509c6cdb905cbd0a93dd1c8b3d --- ansible/roles/cyborg/templates/cyborg.conf.j2 | 3 +-- .../notes/fix-cyborg-host-config-dee1d79476b94981.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/fix-cyborg-host-config-dee1d79476b94981.yaml diff --git a/ansible/roles/cyborg/templates/cyborg.conf.j2 b/ansible/roles/cyborg/templates/cyborg.conf.j2 index 89a3191090..0b00cc4cc8 100644 --- a/ansible/roles/cyborg/templates/cyborg.conf.j2 +++ b/ansible/roles/cyborg/templates/cyborg.conf.j2 @@ -2,13 +2,12 @@ auth_strategy = keystone log_dir = /var/log/kolla/cyborg debug = {{ cyborg_logging_debug }} -notification_topics = notifications transport_url = {{ rpc_transport_url }} [api] port = {{ cyborg_api_port }} -host = {{ api_interface_address }} +host_ip = {{ api_interface_address }} [database] connection = mysql+pymysql://{{ cyborg_database_user }}:{{ cyborg_database_password }}@{{ cyborg_database_address }}/{{ cyborg_database_name }} diff --git a/releasenotes/notes/fix-cyborg-host-config-dee1d79476b94981.yaml b/releasenotes/notes/fix-cyborg-host-config-dee1d79476b94981.yaml new file mode 100644 index 0000000000..8c1ac75224 --- /dev/null +++ b/releasenotes/notes/fix-cyborg-host-config-dee1d79476b94981.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fix cyborg api doesn't listen on api interface. change host to + host_ip in cyborg.conf. See the `cyborg documentation + <https://docs.openstack.org/cyborg/latest/configuration/sample-config.html>`__