"unknown option" warnings at config creation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
New
|
Undecided
|
Unassigned | ||
keystonemiddleware |
New
|
Undecided
|
Unassigned |
Bug Description
During swift_proxy_server start the following warnings are reported:
2021-03-
2021-03-
2021-03-
2021-03-
2021-03-
2021-03-
2021-03-
2021-03-
2021-03-
2021-03-
2021-03-
2021-03-
2021-03-
2021-03-
2021-03-
At keystonemiddleware initialisation, swift_proxy_server provides configuration options from proxy-server.conf. Provided options are from groups [DEFAULT], [filter:authtoken] and [filter:
At the init of keystonemiddleware, validation of all config options is executed in the following function:
def _conf_values_
"""Convert conf values into correct type."""
if not conf:
return {}
opts = {}
opt_types = {}
for group, options in all_options:
# only accept paste overrides for the primary group
if group != group_name:
for o in options:
# Also add the deprecated name with the same type and dest.
for d_o in o.deprecated_opts:
break
for k, v in conf.items():
dest = k
try:
if v is not None:
v = type_(v)
except KeyError: # nosec
# This option is not known to auth_token. v is not converted.
except ValueError as e:
raise exceptions.
opts[dest] = v
return opts
In function, there's a validation of whether the passed option is present in supported options. This validation fails on all options from swift proxy server [DEFAULT] configuration section and on all options relevant to keystoneauth1 plugin type "password" from [filter:authtoken].
These warnings have no impact on functionality of swift_proxy_server or keystonemiddleware itself.