mistralclient can't be imported from another openstack project
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mistral |
Fix Released
|
Medium
|
Angus Salkeld |
Bug Description
mistralclient registers oslo logging config opts which conflict with other projects config opts.
File "/home/
from mistralclient.api import client as mistralclient
File "/home/
from mistralclient.api import httpclient
File "/home/
from mistralclient.
File "/home/
CONF.
File "/usr/local/
result = f(self, *args, **kwargs)
File "/usr/local/
self.
File "/usr/local/
return f(self, *args, **kwargs)
File "/usr/local/
if _is_opt_
File "/usr/local/
raise DuplicateOptErr
DuplicateOptError: duplicate option: default_log_levels
I'd suggest not using oslo logging in the client, but base python logging if really needed.
Changed in mistral: | |
importance: | Undecided → Medium |
assignee: | nobody → Angus Salkeld (asalkeld) |
milestone: | none → 0.1 |
status: | New → Confirmed |
Changed in mistral: | |
milestone: | 0.1 → 0.0.4 |
Changed in mistral: | |
status: | Fix Committed → Fix Released |
Reviewed: https:/ /review. openstack. org/97162 /git.openstack. org/cgit/ stackforge/ python- mistralclient/ commit/ ?id=069f19e0b23 f8cc0f45a58b963 564c67a9a0ca4c
Committed: https:/
Submitter: Jenkins
Branch: master
commit 069f19e0b23f8cc 0f45a58b963564c 67a9a0ca4c
Author: Angus Salkeld <email address hidden>
Date: Mon Jun 2 19:48:57 2014 +1000
Don't use oslo logging in the client
Else this causes DuplicateOptError because both mistralclient
and the project that imports mistralclient will have registered
the logging options.
Closes-bug: #1325478 38be45bcf783275 cb4d214aa2f
Change-Id: Id64fc61964d2f6