An option in deprecated name causes failure on overriding the value
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Backup/Restore and DR (Freezer) |
Fix Released
|
Undecided
|
Unassigned | ||
oslo.config |
Invalid
|
Low
|
Kent Wu |
Bug Description
This occurs in Freezer when it calls oslo.config to override(
>>> from oslo_config import cfg
>>> CONF=cfg.CONF
>>> CONF.register_
True
>>> CONF._deprecate
{'DEFAULT': {'os_auth_ver': {'opt': <oslo_config.
>>> CONF.set_
No handlers could be found for logger "oslo_config.cfg"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
return f(*args, **kwargs)
File "/usr/lib/
result = f(self, *args, **kwargs)
File "/usr/lib/
opt_info = self._get_
File "/usr/lib/
return opts[opt_name]
KeyError: 'os-identity-
This is because the key stored in self._opts has replaced '-' to '_'. Will introduce the fix in short.
Fix proposed to branch: master /review. openstack. org/571900
Review: https:/