Merge "Move datasource query_retry into baseclass."

This commit is contained in:
Zuul
2019-06-14 09:04:15 +00:00
committed by Gerrit Code Review
9 changed files with 141 additions and 43 deletions

View File

@@ -34,7 +34,19 @@ DATASOURCES_OPTS = [
" the default for all strategies unless a strategy has a"
" specific override.",
item_type=cfg.types.String(choices=possible_datasources),
default=possible_datasources)
default=possible_datasources),
cfg.IntOpt('query_max_retries',
min=1,
default=10,
mutable=True,
help='How many times Watcher is trying to query again',
deprecated_group="gnocchi_client"),
cfg.IntOpt('query_timeout',
min=0,
default=1,
mutable=True,
help='How many seconds Watcher should wait to do query again',
deprecated_group="gnocchi_client")
]

View File

@@ -32,15 +32,8 @@ GNOCCHI_CLIENT_OPTS = [
'The default is public.'),
cfg.StrOpt('region_name',
help='Region in Identity service catalog to use for '
'communication with the OpenStack service.'),
cfg.IntOpt('query_max_retries',
default=10,
mutable=True,
help='How many times Watcher is trying to query again'),
cfg.IntOpt('query_timeout',
default=1,
mutable=True,
help='How many seconds Watcher should wait to do query again')]
'communication with the OpenStack service.')
]
def register_opts(conf):