This patch moves the creation of the connection pool from nova.rpc.amqp
back into nova.rpc.impl_kombu and nova.rpc.impl_qpid. The pool now gets
passed into nova.rpc.amqp using arguments as needed.
The previous method worked fine unless both rpc implementations got
loaded into the same Python instance. In that case, whichever one got
loaded 2nd had control over what type of connections nova.rpc.amqp would
create. With these changes in place, this conflict between impl_kombu
and impl_qpid is resolved.
Reviewed: https:/ /review. openstack. org/3893 github. com/openstack/ nova/commit/ e0efd7551d0d4e1 c23111419f0622a 1994601fda
Committed: http://
Submitter: Jenkins
Branch: master
commit e0efd7551d0d4e1 c23111419f0622a 1994601fda
Author: Russell Bryant <email address hidden>
Date: Tue Feb 7 22:31:27 2012 -0500
Move connection pool back into impl_kombu/qpid.
Fix bug 928996.
This patch moves the creation of the connection pool from nova.rpc.amqp
back into nova.rpc.impl_kombu and nova.rpc.impl_qpid. The pool now gets
passed into nova.rpc.amqp using arguments as needed.
The previous method worked fine unless both rpc implementations got
loaded into the same Python instance. In that case, whichever one got
loaded 2nd had control over what type of connections nova.rpc.amqp would
create. With these changes in place, this conflict between impl_kombu
and impl_qpid is resolved.
Change-Id: I72bc0c95bfc04c cdfb89d3456332f 622ca5ffa42