<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 6 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle24
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle25
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;}
span.EmailStyle26
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;}
span.EmailStyle27
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle28
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;}
span.EmailStyle29
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle30
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;}
span.EmailStyle31
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle32
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle33
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;}
span.EmailStyle34
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle35
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle36
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-CA" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hello Huifeng,<o:p></o:p></p>
<p class="MsoNormal">I wanted to follow-up on item #1 below (ba9d9f60a7a2665194cacb92a05e0acd2dc3de41: Add rpc notification for trunk updates).  The concern is that there is a difference in behavior between the port and trunks, that may impact the user experience
 and not just impact the agent/server behavior.  <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The problem is that it is not symmetric with setting admin_setup_up on a Port.   If you set that attribute to False on a Port then that port is disabled in the vswitch; packets are no longer sent/received.    Based on that expectation,
 then it would make sense that setting admin_state_up=False on a trunk would disable that trunk on the vswitch (i.e., stop processing VLAN packets arriving from that VM instance), but that is not what happens; it continues to be operational.   It is our opinion
 that this is an incorrect behavior that is worth correcting.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Based on the above behavioral difference, I think it makes sense to pursue this with the neutron team since they may want to align on this behavior as well.  If the neutron team rejects this change, then we can align on the current upstream
 behavior.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards, Matt<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">"Peters, Matt" <Matt.Peters@windriver.com><br>
<b>Date: </b>Friday, September 7, 2018 at 11:00 AM<br>
<b>To: </b>"Le, Huifeng" <huifeng.le@intel.com>, "Jolliffe, Ian" <Ian.Jolliffe@windriver.com>, "Jones, Bruce E" <bruce.e.jones@intel.com>, Brent Rowsell <Brent.Rowsell@windriver.com><br>
<b>Cc: </b>"Zhao, Forrest" <forrest.zhao@intel.com>, "Troyer, Dean" <dean.troyer@intel.com>, "starlingx-discuss@lists.starlingx.io" <starlingx-discuss@lists.starlingx.io><br>
<b>Subject: </b>RE: Analysis report about Network Trunk feature for StartlingX upstreaming<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D">See inline for specific responses to the review information<i>.</i></span><o:p></o:p></p>
<p class="MsoNormal"><i><span style="color:#1F497D">Responses marked with [MP>]</span></i><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif"> Le, Huifeng [mailto:huifeng.le@intel.com]
<br>
<b>Sent:</b> Sunday, August 19, 2018 10:32 PM<br>
<b>To:</b> Jolliffe, Ian; Jones, Bruce E; Rowsell, Brent; Peters, Matt<br>
<b>Cc:</b> Zhao, Forrest; Troyer, Dean; starlingx-discuss@lists.starlingx.io<br>
<b>Subject:</b> RE: Analysis report about Network Trunk feature for StartlingX upstreaming</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Ian,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks very much for the comments. some comments below for you reference, and please help to review, thanks much!</span><o:p></o:p></p>
<p class="MsoNormal"><b><i><span style="color:#1F497D"> </span></i></b><o:p></o:p></p>
<p class="MsoNormal"><b><i><span style="color:#1F497D">Best Regards,</span></i></b><o:p></o:p></p>
<p class="MsoNormal"><b><i><span style="color:#1F497D">Le, Huifeng</span></i></b><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><a name="_____replyseparator"></a><b>From:</b> Jolliffe, Ian [mailto:Ian.Jolliffe@windriver.com]
<br>
<b>Sent:</b> Saturday, August 18, 2018 4:16 AM<br>
<b>To:</b> Le, Huifeng <huifeng.le@intel.com>; Jones, Bruce E <bruce.e.jones@intel.com>; Rowsell, Brent <Brent.Rowsell@windriver.com>; Peters, Matt <Matt.Peters@windriver.com><br>
<b>Cc:</b> Zhao, Forrest <forrest.zhao@intel.com>; Troyer, Dean <dean.troyer@intel.com>; starlingx-discuss@lists.starlingx.io<br>
<b>Subject:</b> Re: Analysis report about Network Trunk feature for StartlingX upstreaming<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Hi Huifeng;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Thanks for the updates/analysis, comments below.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Ian</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Ian/Brent/Matt,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">We did analysis about the Network trunk related patches for StartingX upstream, below are the suggestions for upstreaming, could you please help to review and comment? Thanks much!<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">1.  ba9d9f60a7a2665194cacb92a05e0acd2dc3de41: Add rpc notification for trunk updates<o:p></o:p></p>
<p class="MsoNormal">     <b>Function</b>: sent notification to the agent when a trunk is updated<o:p></o:p></p>
<p class="MsoNormal">     <b>Analysis</b>:<o:p></o:p></p>
<p class="MsoNormal">      (1)Trunk’s AFTER_UPDATE event is generated for API call: PUT /v2.0/trunks/{trunk-id}<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:18.0pt"><i><span lang="EN" style="font-size:10.0pt;font-family:"Segoe UI";color:#333333">The update request is only for changing fields like name, description or admin_state_up. Setting the admin_state_up to False locks
 the trunk in that it prevents operations such as adding/removing subports.</span></i><o:p></o:p></p>
<p class="MsoNormal" style="text-indent:18.0pt">In Neutron upstream, admin_state_up is used in server side, e.g. add_subports, remove subports, delete_trunk and not used in agent side<o:p></o:p></p>
<p class="MsoNormal">      (2)OVS trunk agent driver uses OVSDB event to handle trunk event, no need to manually trigger trunk update event<o:p></o:p></p>
<p class="MsoNormal">     (3)Linux trunk agent driver will handle trunk update event triggered by server, while it will need apply the patch only in case admin_state_up update need to be handled<o:p></o:p></p>
<p class="MsoNormal">     <b>Suggestion: </b>Not a bug for Neutron upstream, suggest not to upstream<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">If this is not upstreamed, are the dependencies or changes required in the StarlingX code base?  What are the implications of not upstreaming?<o:p></o:p></p>
<p class="MsoNormal"><b><span style="color:#0070C0">[hle2]</span></b><span style="color:#0070C0"> for STX, trunk_updated event will force the trunk’s parent-port to refresh (e.g. handle_trunks->mark_port_for_refresh(trunk['port_id']) etc.) to get the new “admin_state_up”
 value from server and this value will be used in handle_updated_port() to determine whether it is allowed to update port/device status in server side.
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#0070C0">“admin_state_up” is mainly used to control operation at neutron server side like add_subports, remove subports, delete_trunk etc. and all these 3 operations will force port to refresh (handle_trunks/handle_subports->mark_port_for_refresh),
 so suppose, the general flow will not be impacted whether to handle trunk_updated event or not.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#0070C0"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#0070C0">But in some wired cases, add “admin_state_up” check in agent side may cause issues (<span style="background:yellow;mso-highlight:yellow">please help to review whether it is make sense</span>), e.g for below calling
 flow (suppose trunk’s ‘admin_state_up’ is ‘up’): (1) add_subports (2) set “admin_state_up” to ‘down’, step(1) may fail to set device’s state at agent side in case aws agent’s handle_updated_port() (in daemon loop) executed after step (2)
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#0070C0"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#0070C0">So to my understanding:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#0070C0">(1) if using OVS agent in STX, no impact for not upstream</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#0070C0">(2) if using AVS agent + STX, suggest removing “admin_state_up” check in AVS agent (in function handle_updated_port () of avs/agent.py) like below.</span><o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt"><i><span style="font-size:10.0pt">if trunk_details
<s>and trunk_details['admin_state_up']</s>:</span></i><o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt"><i><span style="font-size:10.0pt">   …</span></i><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><b><i><span style="color:#1F497D">[MP>] Thanks for the detailed analysis.  The suggested change will need to be tested to see if it full resolves the original issue.  However, since the driver could be used by other agents (beyond just
 the AVS agent), I think it would not hurt to have the additional notification sent to complete the driver definition for the set of RPC notifications.
</span></i></b><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal">2. 6955351c5eca6e37061fb0140d11ea53693fe0e1: Add support to delete bound network<o:p></o:p></p>
<p class="MsoNormal">     <b>Function</b>: enable delete trunk if it is can_be_trunked (not bounded or driver’s can_trunk_bound_port=true)<o:p></o:p></p>
<p class="MsoNormal">     <b>Analysis</b>: Applied for LinuxBridge Driver and AVS bridge Driver (can_trunk_bound_port=True), no impact for OVSTrunkDriver (can_trunk_bound_port=False). workaround also available for linux bridge (e.g. unbind the port first then
 delete the trunk)<o:p></o:p></p>
<p class="MsoNormal">     <b>Suggestion</b>: it is a low priority bug for Neutron upstream (only applied for linux bridge and workround available), suggest not to upstream<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I think you need to propose a fix.  Or this will need to be carried long term.<o:p></o:p></p>
<p class="MsoNormal"><b><span style="color:#0070C0">[hle2]</span></b><span style="color:#1F497D">
</span><span style="color:#0070C0">yes, let’s try to propose a fix for upstream.</span><o:p></o:p></p>
<p class="MsoNormal"><b><i><span style="color:#1F497D">[MP>] Agree.</span></i></b><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal">3. 43a684946e781a25d21a4f50b8dc67d61be42809: Enable trunk service by default<o:p></o:p></p>
<p class="MsoNormal">     <b>Function</b>: add “trunk” in DEFAULT_SERVICE_PLUGINS<o:p></o:p></p>
<p class="MsoNormal">     <b>Analysis</b>: It is a deploy configuration for downstream product<o:p></o:p></p>
<p class="MsoNormal">     <b>Suggestion</b>: Not a bug for Neutron upstream, suggest not to upstream<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Agree<o:p></o:p></p>
<p class="MsoNormal"><b><i><span style="color:#1F497D">[MP>] Agree.</span></i></b><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">4. c54d804792f10b7f505de6794274c4df4768f6f0: Include trunk presence in port details<o:p></o:p></p>
<p class="MsoNormal">     <b>Function</b>: add trunk_port (bool) flag in port_details to identify whether this port is a parent port for a trunk<o:p></o:p></p>
<p class="MsoNormal">     <b>Analysis</b>: It is a performance improvement for AVS agent by reducing RPC call from agent to server. OVS agent has different implementation with no improvement by introducing this field<o:p></o:p></p>
<p class="MsoNormal">     <b>Suggestion</b>: Not a bug for Neutron upstream, suggest not to upstream<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Agree<o:p></o:p></p>
<p class="MsoNormal"><b><i><span style="color:#1F497D">[MP>] Agree.</span></i></b><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">5. 3eed837ebd236e6b1959ea88d9ab5322c9eef6b9: Ignore trunk subports on same vlan as vlan-subnet ports<o:p></o:p></p>
<p class="MsoNormal">     <b>Function</b>: Ignore trunk subports on same vlan as vlan-subnet ports<o:p></o:p></p>
<p class="MsoNormal">     <b>Analysis</b>: It is a bug fix for AVS agent<o:p></o:p></p>
<p class="MsoNormal">     <b>Suggestion</b>: Not a bug for Neutron upstream, suggest not to upstream<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Agree<o:p></o:p></p>
<p class="MsoNormal"><b><i><span style="color:#1F497D">[MP>] Agree.</span></i></b><o:p></o:p></p>
<p class="MsoNormal"><b><i> </i></b><o:p></o:p></p>
<p class="MsoNormal"><b><i> </i></b><o:p></o:p></p>
<p class="MsoNormal"><b><i> </i></b><o:p></o:p></p>
<p class="MsoNormal"><b><i>Best Regards,</i></b><o:p></o:p></p>
<p class="MsoNormal"><b><i>Le, Huifeng</i></b><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
</div>
</div>
</body>
</html>