For example, detail of the messages of topics.L3_AGENT 2017-04-06 9:38 GMT+08:00 Sam <batmanu...@gmail.com>:
> 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] <ks...@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_c >> ontext/context.py#L310-L332 >> >> . >> >> >> >> *From:* Sam [mailto:batmanu...@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. >> > >
_______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack