<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:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:PMingLiU;
panose-1:2 1 6 1 0 1 1 1 1 1;}
@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:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"\@PMingLiU";
panose-1:2 1 6 1 0 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:ZH-TW;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
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-US" link="#0563C1" vlink="#954F72" style="text-justify-trim:punctuation">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:ZH-CN">Hi C.H. Huang,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
<p class="MsoNormal"><span 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 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 style="font-size:11.0pt;mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:ZH-CN">Mingyuan<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span 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 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt">From:</span></b><span style="font-size:11.0pt"> CH.Huang789 <ch.huang789@advantech.com.tw>
<br>
<b>Sent:</b> Tuesday, November 17, 2020 16:37<br>
<b>To:</b> starlingx-discuss@lists.starlingx.io<br>
<b>Subject:</b> Re: [Starlingx-discuss] </span><span lang="ZH-TW" style="font-size:11.0pt;font-family:"PMingLiU",serif">¦^Î`¡G¦^Î`¡G</span><span lang="ZH-TW" style="font-size:11.0pt">
</span><span lang="ZH-TW" style="font-size:11.0pt;font-family:"PMingLiU",serif">¡i</span><span style="font-size:11.0pt">StarlingX</span><span lang="ZH-TW" style="font-size:11.0pt;font-family:"PMingLiU",serif">¡j</span><span style="font-size:11.0pt">Regarding
external networking issue<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi All:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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></p>
<p class="MsoNormal">controller-0:~$ source ./openrc.os<o:p></o:p></p>
<p class="MsoNormal">[sysadmin@controller-0 ~(keystone_admin)]$ kubectl exec -it neutron-ovs-agent-controller-0-937646f6-k5q4x -n openstack -- bash<o:p></o:p></p>
<p class="MsoNormal">[root@controller-0 /]# vi /etc/neutron/plugins/ml2/ml2_conf.ini<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[agent]<o:p></o:p></p>
<p class="MsoNormal">extensions =<o:p></o:p></p>
<p class="MsoNormal">[ml2]<o:p></o:p></p>
<p class="MsoNormal">extension_drivers = port_security<o:p></o:p></p>
<p class="MsoNormal">mechanism_drivers = openvswitch,sriovnicswitch,l2population<o:p></o:p></p>
<p class="MsoNormal">path_mtu = 0<o:p></o:p></p>
<p class="MsoNormal">physical_network_mtus = phy-flat1:1500,physnet2:1500<o:p></o:p></p>
<p class="MsoNormal">tenant_network_types = vlan,vxlan<o:p></o:p></p>
<p class="MsoNormal">type_drivers = flat,vlan,vxlan<o:p></o:p></p>
<p class="MsoNormal">[ml2_type_flat]<o:p></o:p></p>
<p class="MsoNormal">flat_networks = phy-flat1,physnet2<o:p></o:p></p>
<p class="MsoNormal">[ml2_type_vxlan]<o:p></o:p></p>
<p class="MsoNormal">vni_ranges =<o:p></o:p></p>
<p class="MsoNormal">vxlan_group =<o:p></o:p></p>
<p class="MsoNormal">[ovs_driver]<o:p></o:p></p>
<p class="MsoNormal">vhost_user_enabled = true<o:p></o:p></p>
<p class="MsoNormal">[securitygroup]<o:p></o:p></p>
<p class="MsoNormal">firewall_driver = openvswitch<o:p></o:p></p>
<p class="MsoNormal">~<o:p></o:p></p>
<p class="MsoNormal">"/etc/neutron/plugins/ml2/ml2_conf.ini" [readonly] 18L, 435C<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Can someone help me?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal">C.H. Huang<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>