[Starlingx-discuss] 回复: openstack network creation failure: Flat provider networks are disabled

Sun, Austin austin.sun at intel.com
Thu Oct 31 08:41:57 UTC 2019


Could you double check ?
grep -r type_drivers /scratch/apps/stx-openstack/{app-version}-centos-stable-latest/charts/neutron/values.yaml ?

it comes out like ‘type_drivers: flat,vlan,vxlan’,
if not , you have to use helm command to override to include flat network.

Thanks.
BR
Austin Sun.

From: 钱江 <qianjiang at baicells.com>
Sent: Thursday, October 31, 2019 4:12 PM
To: Sun, Austin <austin.sun at intel.com>; starlingx-discuss <starlingx-discuss at lists.starlingx.io>
Subject: 回复:[Starlingx-discuss] openstack network creation failure: Flat provider networks are disabled

       Hi, Austin

       Thanks for your warmhearted.
       Follow your suggestion, but I still get the same issue.

[sysadmin at controller-0 ~(keystone_admin)]$ system datanetwork-add enp2s1 flat
+--------------+--------------------------------------+
| Property     | Value                                |
+--------------+--------------------------------------+
| id           | 3                                    |
| uuid         | 7b999f8b-05fe-4c44-9742-907e4551d9b7 |
| name         | enp2s1                               |
| network_type | flat                                 |
| mtu          | 1500                                 |
| description  | None                                 |
+--------------+--------------------------------------+
[sysadmin at controller-0 ~(keystone_admin)]$ system datanetwork-list
+--------------------------------------+----------+--------------+------+
| uuid                                 | name     | network_type | mtu  |
+--------------------------------------+----------+--------------+------+
| 7b999f8b-05fe-4c44-9742-907e4551d9b7 | enp2s1   | flat         | 1500 |
| 15eeb861-6910-4254-bb79-847bcbd88ed7 | physnet0 | vlan         | 1500 |
| ad22c935-51a9-4823-9b55-f18df57e5982 | physnet1 | vlan         | 1500 |
+--------------------------------------+----------+--------------+------+

controller-0:~$ openstack network create  --share --external   --provider-physical-network provider   --provider-network-type flat provider
Error while executing command: BadRequestException: 400, Invalid input for operation: Flat provider networks are disabled.

When I tried type vlan as following, it directed different issue.

controller-0:~$ openstack network create  --share --external   --provider-physical-network provider   --provider-network-type vlan provider
Error while executing command: BadRequestException: 400, Invalid input for operation: physical_network 'provider' unknown for VLAN provider network.

------------------------------------------------------------------
发件人:Sun, Austin <austin.sun at intel.com<mailto:austin.sun at intel.com>>
发送时间:2019年10月31日(星期四) 15:23
收件人:钱江 <qianjiang at baicells.com<mailto:qianjiang at baicells.com>>; starlingx-discuss <starlingx-discuss at lists.starlingx.io<mailto:starlingx-discuss at lists.starlingx.io>>
主 题:Re: [Starlingx-discuss] openstack network creation failure: Flat provider networks are disabled

Hi QianJiang:
The default datanetwork in guide is vlan, you should change it to flat before openstack network create.

system datanetwork-add ${PHYSNET0} flat

Thanks.
BR
Austin Sun.
From: 钱江 <qianjiang at baicells.com<mailto:qianjiang at baicells.com>>
Sent: Thursday, October 31, 2019 2:42 PM
To: starlingx-discuss <starlingx-discuss at lists.starlingx.io<mailto:starlingx-discuss at lists.starlingx.io>>
Subject: [Starlingx-discuss] openstack network creation failure: Flat provider networks are disabled


Hi, the community

After installation of "Virtual All-in-one Simplex Installation R2.0<https://docs.starlingx.io/deploy_install_guides/r2_release/virtual/aio_simplex.html>", everything goes well except,

controller-0:~$ openstack network create  --share --external   --provider-physical-network provider   --provider-network-type flat provider
Error while executing command: BadRequestException: 400, Invalid input for operation: Flat provider networks are disabled.

Could anyone help to point out what's the issue, and how to fix it?

Best Regard


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20191031/cb542c53/attachment-0001.html>


More information about the Starlingx-discuss mailing list