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 `__