From 154aca3948a1807541346f27303dd379f2b4aeb8 Mon Sep 17 00:00:00 2001 From: zhengwei6082 Date: Wed, 30 Aug 2017 11:19:41 +0800 Subject: [PATCH] Replace default gnocchi endpoint type The default gnocchi endpoint type is publicURL in gnocchiclient. This patch replaces default gnocchi endpoint type from internalURL to publicURL see https://github.com/openstack/keystoneauth/blob/master/keystoneauth1/adapter.py#L347-L351 Change-Id: I0ba2bde46de3025964affe23ef16cce9e5b4670f --- watcher/conf/gnocchi_client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/watcher/conf/gnocchi_client.py b/watcher/conf/gnocchi_client.py index 0e3acce71..d4b438c57 100644 --- a/watcher/conf/gnocchi_client.py +++ b/watcher/conf/gnocchi_client.py @@ -26,10 +26,10 @@ GNOCCHI_CLIENT_OPTS = [ default='1', help='Version of Gnocchi API to use in gnocchiclient.'), cfg.StrOpt('endpoint_type', - default='internalURL', + default='public', help='Type of endpoint to use in gnocchi client.' - 'Supported values: internalURL, publicURL, adminURL' - 'The default is internalURL.'), + 'Supported values: internal, public, admin' + 'The default is public.'), cfg.IntOpt('query_max_retries', default=10, help='How many times Watcher is trying to query again'),