<div dir="ltr">Thanks a lot Doug and Alexei for your prompt response. <div style>I used what Doug suggested and worked.</div><div style><br></div><div style>Thanks again for the help.</div><div style>Nader.</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Jul 3, 2014 at 12:04 PM, Doug Hellmann <span dir="ltr"><<a href="mailto:doug.hellmann@dreamhost.com" target="_blank">doug.hellmann@dreamhost.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">On Thu, Jul 3, 2014 at 1:58 PM, Alexei Kornienko<br>
<<a href="mailto:alexei.kornienko@gmail.com">alexei.kornienko@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> You can use oslo.messaging._drivers.impl_rabbit instead of impl_kombu<br>
> It was renamed and slightly change but I think it will work as you expect.<br>
<br>
</div>You should not depend on using any API defined in that module. The<br>
_drivers package is a private package inside oslo.messaging, and<br>
shouldn't be used directly. Use the public, documented, API instead to<br>
ensure that future changes to the internal implementation details of<br>
oslo.messaging do not break your code.<br>
<span class="HOEnZb"><font color="#888888"><br>
Doug<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
><br>
> Regards,<br>
> Alexei Kornienko<br>
><br>
><br>
> On 07/03/2014 08:47 PM, Nader Lahouti wrote:<br>
><br>
> Hi All and Ihar,<br>
><br>
> As part of blueprint oslo-messaging the neutron/openstack/common/rpc tree is<br>
> removed. I was using impl_kombu module to process notification from keystone<br>
> with this following code sample:<br>
> ...<br>
> from neutron.openstack.common.rpc import impl_kombu<br>
> try:<br>
> conf = impl_kombu.cfg.CONF<br>
> topicname = self._topic_name<br>
> exchange = self._exchange_name<br>
> connection = impl_kombu.Connection(conf)<br>
> connection.declare_topic_consumer(topic,<br>
> self.callback,<br>
> topic, exchange)<br>
> connection.consume()<br>
> except Exception:<br>
> connection.close()<br>
><br>
><br>
> Can you please let me what needs to be done to replace the above code and<br>
> make it work with current neutron code?<br>
><br>
><br>
> Thanks in advance,<br>
> Nader.<br>
><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br></div>