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

Ezpeer Chen ezpeerchen at gmail.com
Fri Nov 1 07:22:58 UTC 2019


Your  data0 and data1 are vlan type datanetwork.


This is your configuration.

system datanetwork-add ${PHYSNET0} vlan
system datanetwork-add ${PHYSNET1} vlan


钱江 <qianjiang at baicells.com> 於 2019年11月1日 週五 下午3:17寫道:

>        You see, "eth1000" and "eth1001" are assigned to datanetwork.
> [sysadmin at controller-0 ~(keystone_admin)]$ system host-if-list
> controller-0
>
> +--------------------------------------+--------+----------+----------+---------+--------------+----------+-------------+---------------------------+
> | uuid                                 | name   | class    | type     |
> vlan id | ports        | uses i/f | used by i/f | attributes
> |
>
> +--------------------------------------+--------+----------+----------+---------+--------------+----------+-------------+---------------------------+
> | 0531b618-2628-4545-9ea0-904e73047b8e | lo     | platform | virtual  |
> None    | []           | []       | []          | MTU=1500
> |
> | 9de81b86-afc6-4918-a8f9-d740c343232b | enp2s1 | platform | ethernet |
> None    | [u'enp2s1']  | []       | []          | MTU=1500
> |
> | cf96be60-b1aa-4669-87a8-90ca5c2ecb49 | data1  | data     | ethernet |
> None    | [u'eth1001'] | []       | []          | MTU=1500,accelerated=True
> |
> | db89ae12-c519-476f-a09a-2da262ac47eb | data0  | data     | ethernet |
> None    | [u'eth1000'] | []       | []          | MTU=1500,accelerated=True
> |
>
> +--------------------------------------+--------+----------+----------+---------+--------------+----------+-------------+---------------------------+
>
> ------------------------------------------------------------------
> 发件人:Ezpeer Chen <ezpeerchen at gmail.com>
> 发送时间:2019年11月1日(星期五) 14:46
> 收件人:钱江 <qianjiang at baicells.com>
> 抄 送:"Sun, Austin" <austin.sun at intel.com>; starlingx-discuss <
> starlingx-discuss at lists.starlingx.io>
> 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure:
> Flat provider networks are disabled
>
> Do you do the interface-datanetwork-assign ?
>
> #system interface-datanetwork-assign controller-0  <interface name>
> <data-network name>
>
>
> Reference Doc:
> https://wiki.openstack.org/wiki/StarlingX/Networking
>
>
> Your enp2s1 interface is not assigned to any data network?
>
>
>
> Thanks.
>
> BR
>
> 钱江 <qianjiang at baicells.com> 於 2019年11月1日 週五 下午2:35寫道:
>        Hi, Ezpeer
>
> Below is the log of "system interface-datanetwork-list  controller-0",
> any problem?
>
> [sysadmin at controller-0 ~(keystone_admin)]$ system
> interface-datanetwork-list  controller-0
>
> +--------------+--------------------------------------+--------+------------------+
> | hostname     | uuid                                 | ifname |
> datanetwork_name |
>
> +--------------+--------------------------------------+--------+------------------+
> | controller-0 | 4dc1a3d0-cf0e-478e-b936-f8489d26ae69 | data0  |
> physnet0         |
> | controller-0 | 5a6763ae-0720-44b4-aa30-645974d9daa8 | data1  |
> physnet1         |
>
> +--------------+--------------------------------------+--------+------------------+
> [sysadmin at controller-0 ~(keystone_admin)]$ system host-if-list
> controller-0
>
> +--------------------------------------+--------+----------+----------+---------+--------------+----------+-------------+---------------------------+
> | uuid                                 | name   | class    | type     |
> vlan id | ports        | uses i/f | used by i/f | attributes
> |
>
> +--------------------------------------+--------+----------+----------+---------+--------------+----------+-------------+---------------------------+
> | 0531b618-2628-4545-9ea0-904e73047b8e | lo     | platform | virtual  |
> None    | []           | []       | []          | MTU=1500
> |
> | 9de81b86-afc6-4918-a8f9-d740c343232b | enp2s1 | platform | ethernet |
> None    | [u'enp2s1']  | []       | []          | MTU=1500
> |
> | cf96be60-b1aa-4669-87a8-90ca5c2ecb49 | data1  | data     | ethernet |
> None    | [u'eth1001'] | []       | []          | MTU=1500,accelerated=True
> |
> | db89ae12-c519-476f-a09a-2da262ac47eb | data0  | data     | ethernet |
> None    | [u'eth1000'] | []       | []          | MTU=1500,accelerated=True
> |
>
> +--------------------------------------+--------+----------+----------+---------+--------------+----------+-------------+---------------------------+
>
>        Best Regard
>
> ------------------------------------------------------------------
> 发件人:Ezpeer Chen <ezpeerchen at gmail.com>
> 发送时间:2019年11月1日(星期五) 10:10
> 收件人:钱江 <qianjiang at baicells.com>
> 抄 送:"Sun, Austin" <austin.sun at intel.com>; starlingx-discuss <
> starlingx-discuss at lists.starlingx.io>
> 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure:
> Flat provider networks are disabled
>
> Dear  QianJiang,
>
> Your command is incorrect.
>
> Example:
> [sysadmin at controller-0 ~(keystone_admin)]$ system
> interface-datanetwork-list  controller-0
>
> +--------------+--------------------------------------+-----------+------------------+
> | hostname     | uuid                                 | ifname    |
> datanetwork_name |
>
> +--------------+--------------------------------------+-----------+------------------+
> | controller-0 | 13e47f32-e9a4-4a33-9bc0-63c96e32bfb0 | enp98s0f1 |
> physnet-pci      |
> | controller-0 | 6be1d6c2-01c2-45de-a319-4a6337375f7b | enp3s0    |
> phy-flat         |
> | controller-0 | f4d817b4-97ca-40e2-a1df-7ef8d0640937 | enp98s0f0 |
> physnet-sriov    |
>
> +--------------+--------------------------------------+-----------+------------------+
> [sysadmin at controller-0 ~(keystone_admin)]$
>
>
>
> 钱江 <qianjiang at baicells.com> 於 2019年10月31日 週四 下午7:23寫道:
>        Hi, Ezpeer
>
>       I checked and yes,
> [sysadmin at controller-0 ~(keystone_admin)]$ system interface-network-list
> controller-0
>
> +--------------+--------------------------------------+--------+--------------+
> | hostname     | uuid                                 | ifname |
> network_name |
>
> +--------------+--------------------------------------+--------+--------------+
> | controller-0 | 2a17737a-bd4c-40fe-bbe7-163237109ed7 | enp2s1 |
> oam          |
> | controller-0 | 33472810-e1b3-44fa-9a30-cda0d73bc296 | lo     |
> mgmt         |
> | controller-0 | 3ae75daf-b22f-47d9-bc48-5086f700563d | lo     |
> cluster-host |
>
> +--------------+--------------------------------------+--------+--------------+
>
>       Best Regard
>
> ------------------------------------------------------------------
> 发件人:Ezpeer Chen <ezpeerchen at gmail.com>
> 发送时间:2019年10月31日(星期四) 18:12
> 收件人:钱江 <qianjiang at baicells.com>
> 抄 送:"Sun, Austin" <austin.sun at intel.com>; starlingx-discuss <
> starlingx-discuss at lists.starlingx.io>
> 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure:
> Flat provider networks are disabled
>
> Dear  ,
>
> Do you do the interface-datanetwork-assign ?
>
> #system interface-datanetwork-assign controller-0  <interface name>
> <data-network name>
>
>
> Reference Doc:
> https://wiki.openstack.org/wiki/StarlingX/Networking
>
>
>
> Thanks.
>
> BR
>
> 钱江 <qianjiang at baicells.com> 於 2019年10月31日 週四 下午5:28寫道:
>       Hi, Austin
>
>        I checked, the type_drivers field has no problem. Do you have more
> ideas?
>
> controller-0:~$ grep type_drivers -r
> /scratch/apps/stx-openstack/1.0-18-centos-stable-latest/charts/neutron/values.yaml
>
>         type_drivers: flat,vlan,vxlan
>
>        Best Regard
>
> ------------------------------------------------------------------
> 发件人:Sun, Austin <austin.sun at intel.com>
> 发送时间:2019年10月31日(星期四) 16:42
> 收件人:钱江 <qianjiang at baicells.com>; starlingx-discuss <
> starlingx-discuss at lists.starlingx.io>
> 主 题:RE: 回复:[Starlingx-discuss] openstack network creation failure: Flat
> provider networks are disabled
>
>
>
> 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>
>
> 发送时间:2019年10月31日(星期四) 15:23
>
> 收件人:钱江 <qianjiang at baicells.com>; starlingx-discuss <
> 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>
> *Sent:* Thursday, October 31, 2019 2:42 PM
> *To:* starlingx-discuss <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
>
>
>
>
>
> _______________________________________________
> Starlingx-discuss mailing list
> Starlingx-discuss at lists.starlingx.io
> http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20191101/f81ebb07/attachment-0001.html>


More information about the Starlingx-discuss mailing list