[openstack-dev] [Openstack] How to get all detail RPC message and detail context in neutron docs?
Kevin Benton
kevin at benton.pub
Tue Apr 11 00:33:18 UTC 2017
I would strongly recommend that you don't build anything based on these
messages. The contents change from release to release since this is an
internal API between the agents and the server.
On Apr 6, 2017 00:48, "Sam" <batmanustc at gmail.com> wrote:
> Thank you, use debug option will also help us to get detail of RPC
> message, good luck~
>
> 2017-04-06 14:20 GMT+08:00 김기석 [Kiseok Kim] <kskim at netmarble.com>:
>
>> Sam,
>>
>>
>>
>> I have no idea whether or not the document exists. (I want to read too)
>>
>>
>>
>> about L3 RPC messages(L3_AGENT topic), its client-side is implemented in
>> l3_router_plugin.[1]
>>
>> There is an oslo_meessaging document.[2] I guess it would help.
>>
>>
>>
>> [1] https://github.com/openstack/neutron/blob/master/neutron/api
>> /rpc/agentnotifiers/l3_rpc_agent_api.py#L37
>>
>> [2] https://docs.openstack.org/developer/oslo.messaging/
>>
>>
>>
>> good luck!
>>
>>
>>
>> *From:* Sam [mailto:batmanustc at gmail.com]
>> *Sent:* Thursday, April 06, 2017 10:56 AM
>> *To:* 김기석 [Kiseok Kim]
>> *Cc:* OpenStack General; OpenStack Development Mailing List (not for
>> usage questions)
>> *Subject:* Re: [Openstack] How to get all detail RPC message and detail
>> context in neutron docs?
>>
>>
>>
>> For example, detail of the messages of topics.L3_AGENT
>>
>>
>>
>> 2017-04-06 9:38 GMT+08:00 Sam <batmanustc at 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] <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_c
>> ontext/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.
>>
>>
>>
>>
>>
>
>
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/
> openstack
> Post to : openstack at lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/
> openstack
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170410/b57123bf/attachment.html>
More information about the OpenStack-dev
mailing list