<div dir="ltr"><div>Dear Chenjie,</div><div><br></div><div>I can't find that property in flavor on STX R1.0.</div><div><br></div>controller-0:~$ source /etc/nova/openrc<br><div>[wrsroot@controller-0 ~(keystone_admin)]$ openstack flavor create --vcpus 1 --disk 5 --ram 512 m1.tiny<br>+----------------------------+------------------------------------------------------+<br>| Field | Value |<br>+----------------------------+------------------------------------------------------+<br>| OS-FLV-DISABLED:disabled | False |<br>| OS-FLV-EXT-DATA:ephemeral | 0 |<br>| disk | 5 |<br>| id | ad3157f1-441c-4d7c-a611-c2a75ba7fc1e |<br>| name | m1.tiny |<br>| os-flavor-access:is_public | True |<br>| properties | aggregate_instance_extra_specs:storage='local_image' |<br>| ram | 512 |<br>| rxtx_factor | 1.0 |<br>| swap | |<br>| vcpus | 1 |<br>+----------------------------+------------------------------------------------------+<br>[wrsroot@controller-0 ~(keystone_admin)]$ openstack flavor show ad3157f1-441c-4d7c-a611-c2a75ba7fc1e<br>+----------------------------+------------------------------------------------------+<br>| Field | Value |<br>+----------------------------+------------------------------------------------------+<br>| OS-FLV-DISABLED:disabled | False |<br>| OS-FLV-EXT-DATA:ephemeral | 0 |<br>| access_project_ids | None |<br>| disk | 5 |<br>| id | ad3157f1-441c-4d7c-a611-c2a75ba7fc1e |<br>| name | m1.tiny |<br>| os-flavor-access:is_public | True |<br>| properties | aggregate_instance_extra_specs:storage='local_image' |<br>| ram | 512 |<br>| rxtx_factor | 1.0 |<br>| swap | |<br>| vcpus | 1 |<br>+----------------------------+------------------------------------------------------+<br>[wrsroot@controller-0 ~(keystone_admin)]$<br></div><div><br></div><div><br></div><div>Thanks</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Xu, Chenjie <<a href="mailto:chenjie.xu@intel.com">chenjie.xu@intel.com</a>> 於 2019年9月18日 週三 下午1:11寫道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="ZH-CN">
<div class="gmail-m_-8386271876957208961WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Hi Ezpeer,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">You are welcome!<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Best Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Xu, Chenjie<u></u><u></u></span></p>
<p class="MsoNormal"><a name="m_-8386271876957208961__MailEndCompose"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></a></p>
<p class="MsoNormal"><a name="m_-8386271876957208961______replyseparator"></a><b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"> Ezpeer Chen [mailto:<a href="mailto:ezpeerchen@gmail.com" target="_blank">ezpeerchen@gmail.com</a>]
<br>
<b>Sent:</b> Wednesday, September 18, 2019 11:53 AM<br>
<b>To:</b> Xu, Chenjie <<a href="mailto:chenjie.xu@intel.com" target="_blank">chenjie.xu@intel.com</a>><br>
<b>Cc:</b> <a href="mailto:starlingx-discuss@lists.starlingx.io" target="_blank">starlingx-discuss@lists.starlingx.io</a><br>
<b>Subject:</b> Re: [Starlingx-discuss] Flat Network not working on STX R2.0<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">Dear Chenjie, <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">It is working now.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Thanks for your help.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Thanks<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">Xu, Chenjie <<a href="mailto:chenjie.xu@intel.com" target="_blank">chenjie.xu@intel.com</a>>
</span>於<span lang="EN-US"> 2019</span>年<span lang="EN-US">9</span>月<span lang="EN-US">18</span>日 週三 上午<span lang="EN-US">11:23</span>寫道:<span lang="EN-US"><u></u><u></u></span></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Hi Ezpeer,</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">If OVS-DPDK is used, you need to add below property to your flavor:</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">openstack flavor set $i --property hw:mem_page_size=large</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">The VM created with above flavor will use hugepage. OVS-DPDK also uses hugepage and OVS-DPDK
communicates with VM through shared memory. That’s why VM needs to use hugepage. You can check the flavor in stx1.0, the above property is set by default.</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Best Regards,</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Xu, Chenjie</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><a name="m_-8386271876957208961_m_7529874883429976520__MailEndCompose"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></a><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><a name="m_-8386271876957208961_m_7529874883429976520______replyseparato"></a><b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">
Ezpeer Chen [mailto:<a href="mailto:ezpeerchen@gmail.com" target="_blank">ezpeerchen@gmail.com</a>]
<br>
<b>Sent:</b> Wednesday, September 18, 2019 11:05 AM<br>
<b>To:</b> Xu, Chenjie <<a href="mailto:chenjie.xu@intel.com" target="_blank">chenjie.xu@intel.com</a>><br>
<b>Cc:</b> <a href="mailto:starlingx-discuss@lists.starlingx.io" target="_blank">
starlingx-discuss@lists.starlingx.io</a><br>
<b>Subject:</b> Re: [Starlingx-discuss] Flat Network not working on STX R2.0</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">Dear Chenjie,<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">OVS-DPDK environment ( vswitch_type = ovs-dpdk)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Arial Unicode MS",sans-serif;color:rgb(51,51,51)">data network(VM instance </span><span lang="EN-US"><a href="http://192.168.100.3/24" target="_blank"><span style="font-size:10.5pt;font-family:"Arial Unicode MS",sans-serif">192.168.100.3/24</span></a></span><span lang="EN-US" style="font-size:10.5pt;font-family:"Arial Unicode MS",sans-serif;color:rgb(51,51,51)">,
nova:dhcp </span><span lang="EN-US"><a href="http://192.168.100.2/24" target="_blank"><span style="font-size:10.5pt;font-family:"Arial Unicode MS",sans-serif">192.168.100.2/24</span></a></span><span lang="EN-US" style="font-size:10.5pt;font-family:"Arial Unicode MS",sans-serif;color:rgb(51,51,51)">)
<=====> L2 switch <====> PC/NB 192.168.100.x/24</span><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">PC/NB ping 192.168.100.2 (nova:dhcp) =====> ok<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">PC/NB ping 192.168.100.3 (VM instance) =====> Fail (VM instance can't get ip , manual configure static IP)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Thanks<u></u><u></u></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">Xu, Chenjie <<a href="mailto:chenjie.xu@intel.com" target="_blank">chenjie.xu@intel.com</a>>
</span>於 <span lang="EN-US">2019</span>年<span lang="EN-US">9</span>月<span lang="EN-US">18</span>日 週三 上午<span lang="EN-US">10:56</span>寫道:<span lang="EN-US"><u></u><u></u></span></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt">
<div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Hi Ezpeer,</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Are you using OVS or OVS-DPDK? You mean you can ping external network through dhcp namespace
like following?</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">ip netns</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">sudo ip netns exec $NAMESPACE bash</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">ifconfig</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">ping $external_ip</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><a name="m_-8386271876957208961_m_7529874883429976520_m_8463283843200968"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><span lang="EN-US"><u></u><u></u></span></a></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">If so, can you ping the DHCP ip from the VM with static IP configured.</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Best Regards,</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Xu, Chenjie</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"> Ezpeer
Chen [mailto:</span><a href="mailto:ezpeerchen@gmail.com" target="_blank"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">ezpeerchen@gmail.com</span></a><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">]
<br>
<b>Sent:</b> Wednesday, September 18, 2019 10:34 AM<br>
<b>To:</b> Xu, Chenjie <</span><a href="mailto:chenjie.xu@intel.com" target="_blank"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">chenjie.xu@intel.com</span></a><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">><br>
<b>Cc:</b> </span><a href="mailto:starlingx-discuss@lists.starlingx.io" target="_blank"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">starlingx-discuss@lists.starlingx.io</span></a><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"><br>
<b>Subject:</b> Re: [Starlingx-discuss] Flat Network not working on STX R2.0</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">Dear all,<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">add additional information:<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">The nova:dhcp 's ip could ping to PC/NB.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Thanks<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">Ezpeer Chen <</span><a href="mailto:ezpeerchen@gmail.com" target="_blank"><span lang="EN-US">ezpeerchen@gmail.com</span></a><span lang="EN-US">>
</span>於<span lang="EN-US"> 2019</span>年<span lang="EN-US">9</span>月<span lang="EN-US">17</span>日 週二 下午<span lang="EN-US">4:30</span>寫道:<span lang="EN-US"><u></u><u></u></span></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt">
<div>
<p class="MsoNormal"><span lang="EN-US">Dear Chenjie,<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">I follow this document:<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><a href="https://wiki.openstack.org/wiki/StarlingX/Networking" target="_blank"><span lang="EN-US">https://wiki.openstack.org/wiki/StarlingX/Networking</span></a><span lang="EN-US"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Section:<u></u><u></u></span></p>
</div>
<p class="MsoNormal" style="margin-left:19.2pt;line-height:15pt">
<span lang="EN-US" style="font-size:10pt;font-family:Symbol;color:rgb(51,51,51)">·</span><span lang="EN-US" style="font-size:7pt;font-family:"Times New Roman",serif;color:rgb(51,51,51)">
</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Arial Unicode MS",sans-serif;color:rgb(51,51,51)">Configure the flat network.</span><span lang="EN-US"><u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Arial Unicode MS",sans-serif;color:rgb(51,51,51)">My procedure on STX R1.0 is working, but not working on STX R2.0.</span><span lang="EN-US"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Arial Unicode MS",sans-serif;color:rgb(51,51,51)">data network(VM instance 192.168.100.X/24) <=====> L2 switch <====> PC/NB 192.168.100.x/24</span><span lang="EN-US"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Arial Unicode MS",sans-serif;color:rgb(51,51,51)">VM </span><span lang="EN-US">instance ping to PC/NB fail on STX R2.0.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Thanks<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">Xu, Chenjie <</span><a href="mailto:chenjie.xu@intel.com" target="_blank"><span lang="EN-US">chenjie.xu@intel.com</span></a><span lang="EN-US">>
</span>於<span lang="EN-US"> 2019</span>年<span lang="EN-US">9</span>月<span lang="EN-US">17</span>日 週二 下午<span lang="EN-US">4:23</span>寫道:<span lang="EN-US"><u></u><u></u></span></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt">
<div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Hi Ezpeer,</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Could you please share all your steps for stx2.0 including creating datanetwork, binding
interface to datanetwork and so on. </span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">The following commands will create an internal flat network for VMs:</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">openstack network create --project ${ADMINID} --provider-network-type=flat --provider-physical-network=phy-flat netflat</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Typically you should not create VMs on external network. You should create an internal
network and create VMs on internal network. The external network and internal network should be connected by router. Then you can ping external network in VM. The below commands can be referred:</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">ADMINID=`openstack project list | grep admin | awk '{print $2}'`</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">PHYSNET0='flat_external'</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">PHYSNET1='flat_internal'</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">PUBLICNET='public-net0'</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">EXTERNALNET='external-net0'</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">PUBLICSUBNET='public-subnet0'</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">EXTERNALSUBNET='external-subnet0'</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">PUBLICROUTER='public-router0'</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">openstack network create --project ${ADMINID} --provider-network-type=flat --provider-physical-network=${PHYSNET0} --share --external ${EXTERNALNET}</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">openstack network create --project ${ADMINID} --provider-network-type=flat --provider-physical-network=${PHYSNET1} ${PUBLICNET}</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">PUBLICNETID=`openstack network list | grep ${PUBLICNET} | awk '{print $2}'`</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">EXTERNALNETID=`openstack network list | grep ${EXTERNALNET} | awk '{print $2}'`</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">openstack subnet create --project ${ADMINID} ${PUBLICSUBNET} --network ${PUBLICNET} --subnet-range
</span><a href="http://192.168.101.0/24" target="_blank"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif">192.168.101.0/24</span></a><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">openstack subnet create --project ${ADMINID} ${EXTERNALSUBNET} --gateway 192.168.100.1 --no-dhcp --network ${EXTERNALNET} --subnet-range
</span><a href="http://192.168.100.0/24" target="_blank"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif">192.168.100.0/24</span></a><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> --ip-version
4</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">openstack router create ${PUBLICROUTER}</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">PUBLICROUTERID=`openstack router list | grep ${PUBLICROUTER} | awk '{print $2}'`</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">openstack router set ${PUBLICROUTER} --external-gateway ${EXTERNALNETID} --disable-snat</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:15.75pt">
<span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">openstack router add subnet ${PUBLICROUTER} ${PUBLICSUBNET}</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Best Regards,</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Xu, Chenjie</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"> Ezpeer
Chen [mailto:</span><span lang="EN-US"><a href="mailto:ezpeerchen@gmail.com" target="_blank"><span style="font-size:11pt;font-family:Calibri,sans-serif">ezpeerchen@gmail.com</span></a></span><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">]
<br>
<b>Sent:</b> Tuesday, September 17, 2019 3:45 PM<br>
<b>To:</b> </span><span lang="EN-US"><a href="mailto:starlingx-discuss@lists.starlingx.io" target="_blank"><span style="font-size:11pt;font-family:Calibri,sans-serif">starlingx-discuss@lists.starlingx.io</span></a></span><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"><br>
<b>Subject:</b> [Starlingx-discuss] Flat Network not working on STX R2.0</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">Dear all,<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Please help check if this is my misunderstanding.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Issue:<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Flat Network not working on STX R2.0 but it's working on STX R1.0. VM instance can't ping to public network with static IP configuration.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Create Flat network on STX R1.0: <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">=============================================================<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">#ADMINID=`openstack project list | grep admin | awk '{print $2}'`<br>
#openstack network create --project ${ADMINID} --provider-network-type=flat --provider-physical-network=phy-flat netflat
<br>
#openstack subnet create --project ${ADMINID} netflat-subnet --network netflat --subnet-range
<a href="http://192.168.100.0/24" target="_blank">192.168.100.0/24</a> <br>
#openstack server create --image cirros --flavor m1.tiny --network netflat vm1<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">============================================================= <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Interface setting on STXR2.0:<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><br>
<br>
[sysadmin@controller-0 ~(keystone_admin)]$ system host-if-list controller-0<br>
+--------------------------------------+-----------+-----------+----------+------+----------------+------+---------+---------------------------+<br>
| uuid | name | class | type | vlan | ports | uses | used by | attributes |<br>
| | | | | id | | i/f | i/f | |<br>
+--------------------------------------+-----------+-----------+----------+------+----------------+------+---------+---------------------------+<br>
| e0b545f0-dc0d-4c6c-9327-0008191cf3e6 | enp3s0 | data | ethernet | None | [u'enp3s0'] | [] | [] | MTU=1500,accelerated=True |<br>
<br>
<br>
[sysadmin@controller-0 ~(keystone_admin)]$ system datanetwork-list<br>
+--------------------------------------+----------+--------------+------+<br>
| uuid | name | network_type | mtu |<br>
+--------------------------------------+----------+--------------+------+<br>
| b42f45d1-a474-47cc-b603-8c3b4e50189b | phy-flat | flat | 1500 |<br>
<br>
<br>
[sysadmin@controller-0 ~(keystone_admin)]$ system interface-datanetwork-list controller-0<br>
+--------------+--------------------------------------+-----------+------------------+<br>
| hostname | uuid | ifname | datanetwork_name |<br>
+--------------+--------------------------------------+-----------+------------------+<br>
| controller-0 | 88dd6d9c-fd66-4034-98d5-c6a2155a5085 | enp3s0 | phy-flat |<br>
+--------------+--------------------------------------+-----------+------------------+<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">Create Flat network on STX R2.0: <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">=============================================================<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">#export OS_CLOUD=openstack_helm<br>
#ADMINID=`openstack project list | grep admin | awk '{print $2}'`<br>
#openstack network create --project ${ADMINID} --provider-network-type=flat --provider-physical-network=phy-flat netflat<br>
#openstack subnet create --project ${ADMINID} netflat-subnet --network netflat --subnet-range
<a href="http://192.168.100.0/24" target="_blank">192.168.100.0/24</a> <br>
#openstack server create --project ${ADMINID} --image cirros --flavor m1.tiny --network netflat vm1<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">============================================================= <u></u><u></u></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">The same procedure to create flat network on STX R1.0 and R2.0.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">But the vm instance can't get ip and can't ping to public network with static IP configuration on STX R2.0.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Please help check this issue.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Thanks<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote></div>