<div class="__aliyun_email_body_block"><div style="line-height:1.7;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;"><div style="clear:both;"> Ezpeer,</div><div style="clear:both;"><br ></div><div style="clear:both;"> Thanks for your support such a long time.</div><div style="clear:both;"> This morning, when I retry creating network just as what I did before, It works. Yes, <span style="color:#ff0000;">It works</span>!!! </div><div style="clear:both;"> But I completely have no idea what I modified, even I suspect I changed nothing but it goes well now.</div><div style="clear:both;"> I can not reproduce this issue, I just decided continue my starlingx trip. </div><div style="clear:both;"> Anyway, thanks a lot.</div><div style="clear:both;"><br ></div><div style="clear:both;"> Best Regard </div><div style="clear:both;"><br ></div><blockquote style="color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;margin-top:.0px;margin-right:.0px;margin-bottom:.0px;"><div style="clear:both;">------------------------------------------------------------------</div><div style="clear:both;">发件人:Ezpeer Chen <ezpeerchen@gmail.com></div><div style="clear:both;">发送时间:2019年11月4日(星期一) 16:15</div><div style="clear:both;">收件人:钱江 <qianjiang@baicells.com></div><div style="clear:both;">抄 送:starlingx-discuss <starlingx-discuss@lists.starlingx.io></div><div style="clear:both;">主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled</div><div style="clear:both;"><br ></div><div ><div class="gmail-ii gmail-gt gmail-adO" id="gmail-:1bs" style="margin:8.0px .0px .0px;padding:.0px;width:1120.0px;font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:.9rem;direction:ltr;"><div class="gmail-a3s gmail-aXjCH" id="gmail-:1br" style="overflow:hidden;font-family:Arial,Helvetica,sans-serif;font-size:small;font-stretch:normal;"><div >Dear <span style="color:#555555;font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:14.0px;">Qianjiang,</span> <br ><div ><br ></div><div ><pre style="padding:9.5px;border-radius:4.0px;border:1.0px solid;border-image:none;line-height:20.0px;font-family:Monaco,Menlo,Consolas,Courier New,monospace;font-size:13.0px;margin-top:.0px;margin-bottom:10.0px;word-break:break-all;background-color:#f5f5f5;"><b ><span style="color:#333333;">system host-lock ${COMPUTE}
#</span><span style="color:#0000ff;">If the interface has been bound to other datanetwork, need to remove the binding.</span><span style="color:#333333;">
system interface-datanetwork-list ${COMPUTE}
system interface-datanetwork-remove ${PHYSNETDATA0UUID}</span></b><span class="gmail-im" style="color:#500050;"><span style="color:#333333;">
#Create a flat datanetwork and bind it to the interface.
system datanetwork-add phy-flat flat
system host-if-modify -m 1500 -n data0 -c data ${COMPUTE} ${DATA0IFUUID}
system interface-datanetwork-assign ${COMPUTE} ${DATA0IFUUID} phy-flat
</span><span style="color:#0000ff;">system host-unlock ${COMPUTE}</span></span></pre></div></div><br ></div><div class="gmail-a3s gmail-aXjCH" id="gmail-:1br" style="overflow:hidden;font-family:Arial,Helvetica,sans-serif;font-size:small;font-stretch:normal;"><div >My Example:</div><div ><br ></div><div >[sysadmin@controller-0 ~(keystone_admin)]$ system host-if-list controller-0<br >+--------------------------------------+-----------+-----------------+----------+------+----------------+------+------+-----------------------+<br >| uuid | name | class | type | vlan | ports | uses | used | attributes |<br >| | | | | id | | i/f | by | |<br >| | | | | | | | i/f | |<br >+--------------------------------------+-----------+-----------------+----------+------+----------------+------+------+-----------------------+<br >| 5e6ab3c1-ff01-4ca9-b8c3-98984c9ab403 | lo | platform | virtual | None | [] | [] | [] | MTU=1500 |<br >| a68ceee4-77d7-4ec1-a5f1-bf667b7fa7f7 | enp2s0 | platform | ethernet | None | [u'enp2s0'] | [] | [] | MTU=1500 |<br >| e0b545f0-dc0d-4c6c-9327-0008191cf3e6 | enp3s0 | data | ethernet | None | [u'enp3s0'] | [] | [] | MTU=1500,accelerated= |<br >| | | | | | | | | True |<br >| | | | | | | | | |<br >| fe0be665-6e66-4113-99b3-164374e40b17 | enp98s0f1 | pci-passthrough | ethernet | None | [u'enp98s0f1'] | [] | [] | MTU=1500 |<br >| ffb39ada-ef0a-4a19-87df-9998c5a23e11 | enp98s0f0 | pci-sriov | ethernet | None | [u'enp98s0f0'] | [] | [] | MTU=1500 |<br >+--------------------------------------+-----------+-----------------+----------+------+----------------+------+------+-----------------------+<br >[sysadmin@controller-0 ~(keystone_admin)]$<br ></div><div ><br ></div><div ><br ></div><div ><span class="gmail-im" style="color:#500050;">[sysadmin@controller-0 ~(keystone_admin)]$ system datanetwork-list<br ></span>+--------------------------------------+---------------+--------------+------+<br >| uuid | name | network_type | mtu |<br >+--------------------------------------+---------------+--------------+------+<br >| b42f45d1-a474-47cc-b603-8c3b4e50189b | phy-flat | flat | 1500 |<br >| a772f2ee-4f45-4593-9aa2-e9d007b3ebb0 | physnet-pci | flat | 1500 |<br >| 322d1ff6-7446-48b3-810f-47cdde3d8b4a | physnet-sriov | flat | 1500 |<br >+--------------------------------------+---------------+--------------+------+<br ></div><span class="gmail-im" style="color:#500050;"><div ><br ></div><div >[sysadmin@controller-0 ~(keystone_admin)]$ system interface-datanetwork-list controller-0<br >+--------------+--------------------------------------+-----------+------------------+<br >| hostname | uuid | ifname | datanetwork_name |<br >+--------------+--------------------------------------+-----------+------------------+<br >| controller-0 | 13e47f32-e9a4-4a33-9bc0-63c96e32bfb0 | enp98s0f1 | physnet-pci |<br >| controller-0 | 6be1d6c2-01c2-45de-a319-4a6337375f7b | enp3s0 | phy-flat |<br >| controller-0 | f4d817b4-97ca-40e2-a1df-7ef8d0640937 | enp98s0f0 | physnet-sriov |<br >+--------------+--------------------------------------+-----------+------------------+<br ></div><div ><br ></div></span><div >=============================================================================</div><div ><br ></div><div ><br ></div><div ><span class="gmail-im" style="color:#500050;">controller-0:~$ export OS_CLOUD=openstack_helm<br >controller-0:~$ ADMINID=`openstack project list | grep admin | awk '{print $2}'`<br >controller-0:~$ openstack network create --project ${ADMINID} --provider-network-type=flat --provider-physical-network=phy-flat netflat<br ></span>+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+<br >| Field | Value |<br >+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+<br >| admin_state_up | UP |<br >| availability_zone_hints | |<br >| availability_zones | |<br >| created_at | 2019-11-04T03:22:36Z |<br >| description | |<br >| dns_domain | None |<br >| id | 4916450b-f018-4065-ac7a-bfd1475afe17 |<br >| ipv4_address_scope | None |<br >| ipv6_address_scope | None |<br >| is_default | False |<br >| is_vlan_transparent | False |<br >| location | Munch({'project': Munch({'domain_name': 'default', 'domain_id': None, 'name': 'admin', 'id': u'9be757c8e5464416b41cd1bcdaca990e'}), 'cloud': 'openstack_helm', 'region_name': 'RegionOne', 'zone': None}) |<br >| mtu | 1500 |<br >| name | netflat |<br >| port_security_enabled | True |<br >| project_id | 9be757c8e5464416b41cd1bcdaca990e |<br >| provider:network_type | flat |<br >| provider:physical_network | phy-flat |<br >| provider:segmentation_id | None |<br >| qos_policy_id | None |<br >| revision_number | 1 |<br >| router:external | Internal |<br >| segments | None |<br >| shared | False |<br >| status | ACTIVE |<br >| subnets | |<br >| tags | |<br >| updated_at | 2019-11-04T03:22:36Z |<br >+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+<br >controller-0:~$<br ></div><div > </div><div ><br ></div><div ><br ></div></div><div class="gmail-a3s gmail-aXjCH" id="gmail-:1br" style="overflow:hidden;font-family:Arial,Helvetica,sans-serif;font-size:small;font-stretch:normal;"><br ></div></div><div class="gmail_quote"><div style="color:#000000;line-height:20.0px;clear:both;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;"><br ></div></div></div></blockquote><div style="line-height:20.0px;clear:both;"><br ></div></div></div>