[openstack-dev] [Openstack] How to get all detail RPC message and detail context in neutron docs?

Sam batmanustc at gmail.com
Thu Apr 6 01:38:34 UTC 2017


Thank you all.

For 'context', I got it.
For RPCs, is there some document or blog or some debug method to get its
detal contains in neutron L3 Agent?

2017-04-06 9:33 GMT+08:00 김기석 [Kiseok Kim] <kskim at netmarble.com>:

> Hi Sam,
>
>
>
> that 'context' is olso_context and neutron use it with addition attributes.
>
>
>
> oslo.context has to_dict method,
>
> so you could add debug log in 'agent_updated' method like:
>
>
>
>            LOG.debug("context in agent_updated: %s", context.to_dict())
>
>
>
> and you can find out the attributes of context in
>
> https://github.com/openstack/neutron-lib/blob/master/
> neutron_lib/context.py#L83-L92,
>
> https://github.com/openstack/oslo.context/blob/master/oslo_
> context/context.py#L310-L332
>
> .
>
>
>
> *From:* Sam [mailto:batmanustc at gmail.com]
> *Sent:* Wednesday, April 05, 2017 7:10 PM
> *To:* OpenStack General; OpenStack Development Mailing List (not for
> usage questions)
> *Subject:* [Openstack] How to get all detail RPC message and detail
> context in neutron docs?
>
>
>
> Hi all,
>
>
>
> I'm working on neutron L3 Agent and some other Agent. I found that there
> are lots of RPCs including RPC call and notification and lots of 'context'
> as bellow. But I don't know its detail context, can I get these from some
> docs?
>
>
>
> If there are no docs, could I get these using some debug method? Like
> '--debug' option or using pdb or something?
>
>
>
> RPC: like 'agent_updated' in neutron/neutron/agent/l3/agent.py Line759.
>
>
>
> context: it's param in some function like 'def router_added_to_agent(self,
> context, payload):' in neutron/neutron/agent/l3/agent.py.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170406/a075ad81/attachment.html>


More information about the OpenStack-dev mailing list