Comment 0 for bug 1131233

Revision history for this message
Mark McLoughlin (markmc) wrote :

Issue raised by Julien here:

  http://lists.openstack.org/pipermail/openstack-dev/2013-February/thread.html#5861

Basically, we should be able to create a new ConfigOpts() object and have the rpc code use that instead of global cfg.CONF

An rpc.get_impl() call may be sufficient:

 +def get_impl(conf):
  + conf.register_opts(rpc_opts)
 + try:
 + return = importutils.import_module(conf.rpc_backend)
 + except ImportError:
 + # For backwards compatibility with older nova config.
 + impl = conf.rpc_backend.replace('nova.rpc',
 + 'nova.openstack.common.rpc')
 + return importutils.import_module(impl)