[openstack-dev] [oslo] Option conflict when mixing projects

Julien Danjou julien at danjou.info
Wed Feb 20 13:39:20 UTC 2013


On Wed, Feb 20 2013, Mark McLoughlin wrote:

> If the code is running inside nova-compute, it should be using nova's
> CONF object - previously nova.openstack.common.cfg.CONF but since last
> night, oslo.config.cfg.CONF

I don't think you understood the issue, but I might also not have been
totally clear.

Here's the real problem we're facing:

% python
Python 2.7.3 (default, Jan  2 2013, 13:56:14) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import nova.openstack.common.rpc
>>> import ceilometer.openstack.common.rpc
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jd/Work/src/ceilometer/ceilometer/openstack/common/rpc/__init__.py", line 75, in <module>
    CONF.register_opts(rpc_opts)
  File "/home/jd/.local/lib/python2.7/site-packages/oslo/config/cfg.py", line 1091, in __inner
    return f(self, *args, **kwargs)
  File "/home/jd/.local/lib/python2.7/site-packages/oslo/config/cfg.py", line 1220, in register_opts
    self.register_opt(opt, group, clear_cache=False)
  File "/home/jd/.local/lib/python2.7/site-packages/oslo/config/cfg.py", line 1091, in __inner
    return f(self, *args, **kwargs)
  File "/home/jd/.local/lib/python2.7/site-packages/oslo/config/cfg.py", line 1209, in register_opt
    if _is_opt_registered(self._opts, opt):
  File "/home/jd/.local/lib/python2.7/site-packages/oslo/config/cfg.py", line 479, in _is_opt_registered
    raise DuplicateOptError(opt.name)
oslo.config.cfg.DuplicateOptError: duplicate option: rpc_backend

-- 
Julien Danjou
// Free Software hacker / freelance consultant
// http://julien.danjou.info
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130220/77ede426/attachment.pgp>


More information about the OpenStack-dev mailing list