From 9eff43809ff54f2f39cdcf5265de4e4aa9a5c51a Mon Sep 17 00:00:00 2001 From: "wu.chunyang" Date: Wed, 10 Jan 2024 11:42:02 +0800 Subject: [PATCH] Fix trove failed to discover swift endpoint This change fixes the trove failed to discover swift endpoint by adding service_credentials in guest-agent.conf Closes-Bug: #2048829 Change-Id: I185484d2a0d0a2d4016df6acf8a6b0a7f934c237 --- .../roles/trove/templates/trove-guestagent.conf.j2 | 11 +++++++++++ .../fix-trove-failed-to-backup-2ae4e4a301638585.yaml | 6 ++++++ 2 files changed, 17 insertions(+) create mode 100644 releasenotes/notes/fix-trove-failed-to-backup-2ae4e4a301638585.yaml diff --git a/ansible/roles/trove/templates/trove-guestagent.conf.j2 b/ansible/roles/trove/templates/trove-guestagent.conf.j2 index 27acf78b23..112b22f7d4 100644 --- a/ansible/roles/trove/templates/trove-guestagent.conf.j2 +++ b/ansible/roles/trove/templates/trove-guestagent.conf.j2 @@ -1,10 +1,21 @@ [DEFAULT] +log_file = trove-guestagent.log +log_dir = /var/log/trove/ transport_url = {{ rpc_transport_url }} control_exchange = trove root_grant = ALL root_grant_option = True debug = {{ trove_logging_debug }} +[service_credentials] +auth_url = {{ keystone_internal_url }} +region_name = {{ openstack_region_name }} +project_name = service +password = {{ trove_keystone_password }} +project_domain_name = {{ default_project_domain_name }} +user_domain_name = {{ default_user_domain_name }} +username = {{ trove_keystone_user }} + [oslo_messaging_rabbit] heartbeat_in_pthread = false {% if om_enable_rabbitmq_high_availability | bool %} diff --git a/releasenotes/notes/fix-trove-failed-to-backup-2ae4e4a301638585.yaml b/releasenotes/notes/fix-trove-failed-to-backup-2ae4e4a301638585.yaml new file mode 100644 index 0000000000..8cf1817c4a --- /dev/null +++ b/releasenotes/notes/fix-trove-failed-to-backup-2ae4e4a301638585.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fix trove failed to discover swift endpoint due to the missing of + `service_credentials` in guest-agent.conf. + see `bug 2048829 `__