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)
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): opts(rpc_ opts) import_ module( conf.rpc_ backend) backend. replace( 'nova.rpc' , .common. rpc') import_ module( impl)
+ conf.register_
+ try:
+ return = importutils.
+ except ImportError:
+ # For backwards compatibility with older nova config.
+ impl = conf.rpc_
+ 'nova.openstack
+ return importutils.