<div dir="ltr">Thank you, use debug option will also help us to get detail of RPC message, good luck~</div><div class="gmail_extra"><br><div class="gmail_quote">2017-04-06 14:20 GMT+08:00 김기석 [Kiseok Kim] <span dir="ltr"><<a href="mailto:kskim@netmarble.com" target="_blank">kskim@netmarble.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







<div lang="KO" link="blue" vlink="purple">
<div class="m_-6863395430712465131Section1">
<p class="MsoNormal"><font size="2" color="#1f497d" face="맑은 고딕"><span lang="EN-US" style="font-size:10.0pt;font-family:"\00b9d1\00c740  \00ace0\00b515";color:#1f497d">Sam,<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="맑은 고딕"><span lang="EN-US" style="font-size:10.0pt;font-family:"\00b9d1\00c740  \00ace0\00b515";color:#1f497d"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="맑은 고딕"><span lang="EN-US" style="font-size:10.0pt;font-family:"\00b9d1\00c740  \00ace0\00b515";color:#1f497d">I have no idea whether or not the document exists.
 (I want to read too)<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="맑은 고딕"><span lang="EN-US" style="font-size:10.0pt;font-family:"\00b9d1\00c740  \00ace0\00b515";color:#1f497d"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="맑은 고딕"><span lang="EN-US" style="font-size:10.0pt;font-family:"\00b9d1\00c740  \00ace0\00b515";color:#1f497d">about L3 RPC messages(L3_AGENT topic), its client-side
 is implemented in l3_router_plugin.[1]<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="맑은 고딕"><span lang="EN-US" style="font-size:10.0pt;font-family:"\00b9d1\00c740  \00ace0\00b515";color:#1f497d">There is an oslo_meessaging document.[2] I guess
 it would help.<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="맑은 고딕"><span lang="EN-US" style="font-size:10.0pt;font-family:"\00b9d1\00c740  \00ace0\00b515";color:#1f497d"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="맑은 고딕"><span lang="EN-US" style="font-size:10.0pt;font-family:"\00b9d1\00c740  \00ace0\00b515";color:#1f497d">[1] <a href="https://github.com/openstack/neutron/blob/master/neutron/api/rpc/agentnotifiers/l3_rpc_agent_api.py#L37" target="_blank">https://github.com/openstack/<wbr>neutron/blob/master/neutron/<wbr>api/rpc/agentnotifiers/l3_rpc_<wbr>agent_api.py#L37</a><u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="맑은 고딕"><span lang="EN-US" style="font-size:10.0pt;font-family:"\00b9d1\00c740  \00ace0\00b515";color:#1f497d">[2] <a href="https://docs.openstack.org/developer/oslo.messaging/" target="_blank">https://docs.openstack.org/<wbr>developer/oslo.messaging/</a><u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="맑은 고딕"><span lang="EN-US" style="font-size:10.0pt;font-family:"\00b9d1\00c740  \00ace0\00b515";color:#1f497d"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="맑은 고딕"><span lang="EN-US" style="font-size:10.0pt;font-family:"\00b9d1\00c740  \00ace0\00b515";color:#1f497d">good luck!<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="맑은 고딕"><span lang="EN-US" style="font-size:10.0pt;font-family:"\00b9d1\00c740  \00ace0\00b515";color:#1f497d"><u></u> <u></u></span></font></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
 Sam [mailto:<a href="mailto:batmanustc@gmail.com" target="_blank">batmanustc@gmail.com</a>] <br>
<b><span style="font-weight:bold">Sent:</span></b> Thursday, April 06, 2017 10:56 AM<br>
<b><span style="font-weight:bold">To:</span></b> </span></font><font size="2"><span style="font-size:10.0pt">김기석</span></font><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
 [Kiseok Kim]<br>
<b><span style="font-weight:bold">Cc:</span></b> OpenStack General; OpenStack Development Mailing List (not for usage questions)<br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [Openstack] How to get all detail RPC message and detail context in neutron docs?<u></u><u></u></span></font></p>
</div><div><div class="h5">
<p class="MsoNormal"><font size="3" face="굴림"><span lang="EN-US" style="font-size:12.0pt"><u></u> <u></u></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="굴림"><span lang="EN-US" style="font-size:12.0pt">For example, detail of the messages of topics.L3_AGENT<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="굴림"><span lang="EN-US" style="font-size:12.0pt"><u></u> <u></u></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="굴림"><span lang="EN-US" style="font-size:12.0pt">2017-04-06 9:38 GMT+08:00 Sam <<a href="mailto:batmanustc@gmail.com" target="_blank">batmanustc@gmail.com</a>>:<u></u><u></u></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="굴림"><span lang="EN-US" style="font-size:12.0pt">Thank you all.<u></u><u></u></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="굴림"><span lang="EN-US" style="font-size:12.0pt"><u></u> <u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="굴림"><span lang="EN-US" style="font-size:12.0pt">For 'context', I got it.<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="굴림"><span lang="EN-US" style="font-size:12.0pt">For RPCs, is there some document or blog or some debug method to get its detal contains in neutron L3 Agent?<u></u><u></u></span></font></p>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><font size="3" face="굴림"><span lang="EN-US" style="font-size:12.0pt"><u></u> <u></u></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="굴림"><span lang="EN-US" style="font-size:12.0pt">2017-04-06 9:33 GMT+08:00
</span>김기석<span lang="EN-US"> [Kiseok Kim] <<a href="mailto:kskim@netmarble.com" target="_blank">kskim@netmarble.com</a>>:<u></u><u></u></span></font></p>
<div>
<div>
<p class="MsoNormal"><font size="2" color="#1f497d" face="¹d1Ç40  ¬e0µ15"><span lang="EN-US" style="font-size:10.0pt;font-family:"\0000b9d1\0000c740  \0000ace0\0000b515","serif";color:#1f497d">Hi
 Sam,</span></font><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="맑은 고딕"><span lang="EN-US" style="font-size:10.0pt;font-family:"\00b9d1\00c740  \00ace0\00b515";color:#1f497d"> </span></font><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="¹d1Ç40  ¬e0µ15"><span lang="EN-US" style="font-size:10.0pt;font-family:"\0000b9d1\0000c740  \0000ace0\0000b515","serif";color:#1f497d">that
 'context' is olso_context and neutron use it with addition attributes.</span></font><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="맑은 고딕"><span lang="EN-US" style="font-size:10.0pt;font-family:"\00b9d1\00c740  \00ace0\00b515";color:#1f497d"> </span></font><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="¹d1Ç40  ¬e0µ15"><span lang="EN-US" style="font-size:10.0pt;font-family:"\0000b9d1\0000c740  \0000ace0\0000b515","serif";color:#1f497d">oslo.context
 has to_dict method,</span></font><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="¹d1Ç40  ¬e0µ15"><span lang="EN-US" style="font-size:10.0pt;font-family:"\0000b9d1\0000c740  \0000ace0\0000b515","serif";color:#1f497d">so
 you could add debug log in 'agent_updated' method like:</span></font><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="맑은 고딕"><span lang="EN-US" style="font-size:10.0pt;font-family:"\00b9d1\00c740  \00ace0\00b515";color:#1f497d"> </span></font><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="맑은 고딕"><span lang="EN-US" style="font-size:10.0pt;font-family:"\00b9d1\00c740  \00ace0\00b515";color:#1f497d">          </span></font><font size="2" color="#1f497d" face="¹d1Ç40  ¬e0µ15"><span lang="EN-US" style="font-size:10.0pt;font-family:"\0000b9d1\0000c740  \0000ace0\0000b515","serif";color:#1f497d">
 LOG.debug("context in agent_updated: %s", context.to_dict())</span></font><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="맑은 고딕"><span lang="EN-US" style="font-size:10.0pt;font-family:"\00b9d1\00c740  \00ace0\00b515";color:#1f497d"> </span></font><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="¹d1Ç40  ¬e0µ15"><span lang="EN-US" style="font-size:10.0pt;font-family:"\0000b9d1\0000c740  \0000ace0\0000b515","serif";color:#1f497d">and
 you can find out the attributes of context in</span></font><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="¹d1Ç40  ¬e0µ15"><span lang="EN-US" style="font-size:10.0pt;font-family:"\0000b9d1\0000c740  \0000ace0\0000b515","serif";color:#1f497d"><a href="https://github.com/openstack/neutron-lib/blob/master/neutron_lib/context.py#L83-L92" target="_blank">https://github.com/openstack/<wbr>neutron-lib/blob/master/<wbr>neutron_lib/context.py#L83-L92</a><wbr>,</span></font><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="¹d1Ç40  ¬e0µ15"><span lang="EN-US" style="font-size:10.0pt;font-family:"\0000b9d1\0000c740  \0000ace0\0000b515","serif";color:#1f497d"><a href="https://github.com/openstack/oslo.context/blob/master/oslo_context/context.py#L310-L332" target="_blank">https://github.com/openstack/<wbr>oslo.context/blob/master/oslo_<wbr>context/context.py#L310-L332</a></span></font><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="¹d1Ç40  ¬e0µ15"><span lang="EN-US" style="font-size:10.0pt;font-family:"\0000b9d1\0000c740  \0000ace0\0000b515","serif";color:#1f497d">.</span></font><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="맑은 고딕"><span lang="EN-US" style="font-size:10.0pt;font-family:"\00b9d1\00c740  \00ace0\00b515";color:#1f497d"> </span></font><span lang="EN-US"><u></u><u></u></span></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
 Sam [mailto:<a href="mailto:batmanustc@gmail.com" target="_blank">batmanustc@gmail.com</a>]
<br>
<b><span style="font-weight:bold">Sent:</span></b> Wednesday, April 05, 2017 7:10 PM<br>
<b><span style="font-weight:bold">To:</span></b> OpenStack General; OpenStack Development Mailing List (not for usage questions)<br>
<b><span style="font-weight:bold">Subject:</span></b> [Openstack] How to get all detail RPC message and detail context in neutron docs?</span></font><span lang="EN-US"><u></u><u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><font size="3" face="굴림"><span lang="EN-US" style="font-size:12.0pt"> <u></u><u></u></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="굴림"><span lang="EN-US" style="font-size:12.0pt">Hi all,<u></u><u></u></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="굴림"><span lang="EN-US" style="font-size:12.0pt"> <u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="굴림"><span lang="EN-US" style="font-size:12.0pt">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?<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="굴림"><span lang="EN-US" style="font-size:12.0pt"> <u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="굴림"><span lang="EN-US" style="font-size:12.0pt">If there are no docs, could I get these using some debug method? Like '--debug' option or using pdb or something?<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="굴림"><span lang="EN-US" style="font-size:12.0pt"> <u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="굴림"><span lang="EN-US" style="font-size:12.0pt">RPC: like 'agent_updated' in neutron/neutron/agent/l3/<wbr>agent.py Line759.<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="굴림"><span lang="EN-US" style="font-size:12.0pt"> <u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="굴림"><span lang="EN-US" style="font-size:12.0pt">context: it's param in some function like 'def router_added_to_agent(self, context, payload):' in neutron/neutron/agent/l3/<wbr>agent.py.<u></u><u></u></span></font></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><font size="3" face="굴림"><span lang="EN-US" style="font-size:12.0pt"><u></u> <u></u></span></font></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><font size="3" face="굴림"><span lang="EN-US" style="font-size:12.0pt"><u></u> <u></u></span></font></p>
</div>
</div></div></div>
</div>

</blockquote></div><br></div>