<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: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=big5">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:新細明體;
panose-1:2 2 5 0 0 0 0 0 0 0;}
@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:"\@新細明體";
panose-1:2 1 6 1 0 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.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.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:12.0pt;
font-family:"新細明體",serif;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.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="ZH-TW" link="#0563C1" vlink="#954F72" style="text-justify-trim:punctuation">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Thanks, Mingyuan.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">I follow Austin’s input and its working now.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">echo "Using helm-overrides to change the vni"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">cat > neutron-overrides.yaml <<EOF<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">conf:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">plugins:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> ml2_conf:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> ml2_type_vxlan:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> vni_ranges:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> - 1:4000<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">EOF<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">echo "Update the neutron overrides and apply to stx-openstack"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">source /etc/platform/openrc<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">system helm-override-update stx-openstack neutron openstack --values neutron-overrides.yaml<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">system application-apply stx-openstack<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">watch -n 5 system application-list<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">[ml2_type_vxlan]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">vni_ranges = 1:4000<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">C.H. Huang<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><a href="https://advt.ch/support"><span style="color:#0563C1">Technical Service for Advantech Cloud-IoT</span></a><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt">From:</span></b><span lang="EN-US" style="font-size:11.0pt"> Qi, Mingyuan <mingyuan.qi@intel.com>
<br>
<b>Sent:</b> Tuesday, November 17, 2020 4:51 PM<br>
<b>To:</b> CH.Huang789 <ch.huang789@advantech.com.tw>; starlingx-discuss@lists.starlingx.io<br>
<b>Subject:</b> RE: [Starlingx-discuss] </span><span style="font-size:11.0pt;font-family:"新細明體",serif">回复:回复:</span><span style="font-size:11.0pt">
</span><span style="font-size:11.0pt;font-family:"新細明體",serif">【</span><span lang="EN-US" style="font-size:11.0pt">StarlingX</span><span style="font-size:11.0pt;font-family:"新細明體",serif">】</span><span lang="EN-US" style="font-size:11.0pt">Regarding external
networking issue<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:ZH-CN">Hi C.H. Huang,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:ZH-CN">The config are mounted from secret “neutron-etc” with read-only attribute. That’s why you are not able to change that config within the pod.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:ZH-CN">If you want to modify the config, you will need to modify the ml2_conf.ini in secret “neutron-etc” (base64 encoded) and restart the ovs-agent pod.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:ZH-CN">Mingyuan<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt">From:</span></b><span lang="EN-US" style="font-size:11.0pt"> CH.Huang789 <<a href="mailto:ch.huang789@advantech.com.tw">ch.huang789@advantech.com.tw</a>>
<br>
<b>Sent:</b> Tuesday, November 17, 2020 16:37<br>
<b>To:</b> <a href="mailto:starlingx-discuss@lists.starlingx.io">starlingx-discuss@lists.starlingx.io</a><br>
<b>Subject:</b> Re: [Starlingx-discuss] </span><span style="font-size:11.0pt;font-family:"新細明體",serif">回复:回复:</span><span style="font-size:11.0pt">
</span><span style="font-size:11.0pt;font-family:"新細明體",serif">【</span><span lang="EN-US" style="font-size:11.0pt">StarlingX</span><span style="font-size:11.0pt;font-family:"新細明體",serif">】</span><span lang="EN-US" style="font-size:11.0pt">Regarding external
networking issue<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Hi All:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I try to edit the ml2_config.ini but it’s always show me a readonly file even I am the root user or I use “sudo”.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">controller-0:~$ source ./openrc.os<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[sysadmin@controller-0 ~(keystone_admin)]$ kubectl exec -it neutron-ovs-agent-controller-0-937646f6-k5q4x -n openstack -- bash<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[root@controller-0 /]# vi /etc/neutron/plugins/ml2/ml2_conf.ini<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[agent]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">extensions =<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[ml2]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">extension_drivers = port_security<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">mechanism_drivers = openvswitch,sriovnicswitch,l2population<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">path_mtu = 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">physical_network_mtus = phy-flat1:1500,physnet2:1500<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">tenant_network_types = vlan,vxlan<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">type_drivers = flat,vlan,vxlan<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[ml2_type_flat]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">flat_networks = phy-flat1,physnet2<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[ml2_type_vxlan]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">vni_ranges =<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">vxlan_group =<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[ovs_driver]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">vhost_user_enabled = true<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[securitygroup]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">firewall_driver = openvswitch<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">~<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">"/etc/neutron/plugins/ml2/ml2_conf.ini" [readonly] 18L, 435C<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Can someone help me?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">C.H. Huang<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>