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

김기석 [Kiseok Kim] kskim at netmarble.com
Thu Apr 6 01:33:42 UTC 2017


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/e905058c/attachment.html>


More information about the OpenStack-dev mailing list