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

Mark McLoughlin markmc at redhat.com
Wed Feb 20 13:36:40 UTC 2013


On Wed, 2013-02-20 at 14:14 +0100, Julien Danjou wrote:
> Hi,
> 
> Context: Ceilometer provides a special notifier driver for Nova,
> publishing the last counters before an instance get destroyed.
> 
> That means this code is run from `nova-compute' and uses some Ceilometer
> code. The problem is that when importing Ceilometer modules from this
> notifier, it ends up importing `ceilometer.openstack.common.rpc', which
> tries to register the `rpc_backend' option inside
> `oslo.config.cfg.CONF', object which already has this option defined by
> nova.openstack.common.rpc. So `DuplicateOptError' is raised, and
> badaboum.

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

Cheers,
Mark.




More information about the OpenStack-dev mailing list