[openstack-dev] [neutron][oslo.messaging]

Milton Xu (mxu) mxu at cisco.com
Thu Jul 3 23:03:51 UTC 2014


Thanks Nader for the extra effort and I am glad you made progress here.

Milton

From: Nader Lahouti [mailto:nader.lahouti at gmail.com]
Sent: Thursday, July 03, 2014 3:59 PM
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] [neutron][oslo.messaging]

Thanks a lot Doug and Alexei for your prompt response.
I used what Doug suggested and worked.

Thanks again for the help.
Nader.

On Thu, Jul 3, 2014 at 12:04 PM, Doug Hellmann <doug.hellmann at dreamhost.com<mailto:doug.hellmann at dreamhost.com>> wrote:
On Thu, Jul 3, 2014 at 1:58 PM, Alexei Kornienko
<alexei.kornienko at gmail.com<mailto:alexei.kornienko at gmail.com>> wrote:
> Hi,
>
> You can use oslo.messaging._drivers.impl_rabbit instead of impl_kombu
> It was renamed and slightly change but I think it will work as you expect.
You should not depend on using any API defined in that module. The
_drivers package is a private package inside oslo.messaging, and
shouldn't be used directly. Use the public, documented, API instead to
ensure that future changes to the internal implementation details of
oslo.messaging do not break your code.

Doug

>
> Regards,
> Alexei Kornienko
>
>
> On 07/03/2014 08:47 PM, Nader Lahouti wrote:
>
> Hi All and Ihar,
>
> As part of blueprint oslo-messaging the neutron/openstack/common/rpc tree is
> removed. I was using impl_kombu module to process notification from keystone
> with this following code sample:
> ...
> from neutron.openstack.common.rpc import impl_kombu
>        try:
>            conf = impl_kombu.cfg.CONF
>             topicname = self._topic_name
>             exchange = self._exchange_name
>             connection = impl_kombu.Connection(conf)
>             connection.declare_topic_consumer(topic,
>                                               self.callback,
>                                               topic, exchange)
>             connection.consume()
>         except Exception:
>             connection.close()
>
>
> Can you please let me what needs to be done to replace the above code and
> make it work with current neutron code?
>
>
> Thanks in advance,
> Nader.
>
>
>
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org<mailto:OpenStack-dev at lists.openstack.org>
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org<mailto:OpenStack-dev at lists.openstack.org>
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>

_______________________________________________
OpenStack-dev mailing list
OpenStack-dev at lists.openstack.org<mailto:OpenStack-dev at lists.openstack.org>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140703/7ae97170/attachment.html>


More information about the OpenStack-dev mailing list