From ae48f65f206ba9422765add3f936baea1a35cf07 Mon Sep 17 00:00:00 2001 From: jgilaber Date: Mon, 28 Apr 2025 12:13:23 +0200 Subject: [PATCH] Set keystone_client default interface to public Set the default interface for keystone_client to public in the watcher conf instead of admin. Closes-Bug: 2109494 Change-Id: I9e0289249981ca965190df6dbdc37e09fd0951d7 --- releasenotes/notes/bug-2109494-e5bf401767fa6cd6.yaml | 11 +++++++++++ watcher/conf/keystone_client.py | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/bug-2109494-e5bf401767fa6cd6.yaml diff --git a/releasenotes/notes/bug-2109494-e5bf401767fa6cd6.yaml b/releasenotes/notes/bug-2109494-e5bf401767fa6cd6.yaml new file mode 100644 index 000000000..5df45fa4a --- /dev/null +++ b/releasenotes/notes/bug-2109494-e5bf401767fa6cd6.yaml @@ -0,0 +1,11 @@ +--- +upgrade: + - | + The default value of ``[keystone_client] interface`` has been changed from + ``admin`` to ``public``. +fixes: + - | + When trying to do volume migration using the zone migration strategy, the + keystone service is reached, by default through the admin endpoint. + The default value of ``[keystone_client] interface`` has been fixed. + see Bug https://bugs.launchpad.net/watcher/+bug/2109494 for more info. diff --git a/watcher/conf/keystone_client.py b/watcher/conf/keystone_client.py index 3de4f699a..3e0102e71 100644 --- a/watcher/conf/keystone_client.py +++ b/watcher/conf/keystone_client.py @@ -21,7 +21,7 @@ keystone_client = cfg.OptGroup(name='keystone_client', KEYSTONE_CLIENT_OPTS = [ cfg.StrOpt('interface', - default='admin', + default='public', choices=['internal', 'public', 'admin'], help='Type of endpoint to use in keystoneclient.'), cfg.StrOpt('region_name',