os-brick should use oslo_log for logging
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Invalid
|
High
|
Tomoki Sekiyama | ||
os-brick |
Fix Released
|
High
|
Unassigned |
Bug Description
Currently, the following code will fails by exception "oslo_config.
When "from os_brick.initiator import connector" is commented out, the exception doesn't occur.
This is because os-brick is not using oslo_log but using oslo-incubator's logging.py.
This should by replaced with oslo_log.
*Code to reproduce the bug:
from os_brick.initiator import connector
from oslo_log import log as logging
from oslo_config import cfg
CONF = cfg.CONF
logging.
*Result:
Traceback (most recent call last):
File "test.py", line 6, in <module>
logging.
File "/usr/lib/
conf.
File "/usr/lib/
result = f(self, *args, **kwargs)
File "/usr/lib/
self.
File "/usr/lib/
return f(self, *args, **kwargs)
File "/usr/lib/
if _is_opt_
File "/usr/lib/
raise DuplicateOptErr
oslo_config.
Changed in cinder: | |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in cinder: | |
assignee: | nobody → Vilobh Meshram (vilobhmm) |
Changed in cinder: | |
status: | In Progress → Invalid |
A patch to fix this bug is proposed: /review. openstack. org/#/c/ 173106/
https:/