[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", 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
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@baicells.com Sent: Thursday, October 31, 2019 2:42 PM To: starlingx-discuss starlingx-discuss@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.0https://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
Hi, Austin
Thanks for your warmhearted. Follow your suggestion, but I still get the same issue.
[sysadmin@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@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@intel.com 发送时间:2019年10月31日(星期四) 15:23 收件人:钱江 qianjiang@baicells.com; starlingx-discuss starlingx-discuss@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@baicells.com Sent: Thursday, October 31, 2019 2:42 PM To: starlingx-discuss starlingx-discuss@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", 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
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@baicells.com Sent: Thursday, October 31, 2019 4:12 PM To: Sun, Austin austin.sun@intel.com; starlingx-discuss starlingx-discuss@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@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@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@intel.commailto:austin.sun@intel.com> 发送时间:2019年10月31日(星期四) 15:23 收件人:钱江 <qianjiang@baicells.commailto:qianjiang@baicells.com>; starlingx-discuss <starlingx-discuss@lists.starlingx.iomailto:starlingx-discuss@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@baicells.commailto:qianjiang@baicells.com> Sent: Thursday, October 31, 2019 2:42 PM To: starlingx-discuss <starlingx-discuss@lists.starlingx.iomailto:starlingx-discuss@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.0https://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
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@intel.com 发送时间:2019年10月31日(星期四) 16:42 收件人:钱江 qianjiang@baicells.com; starlingx-discuss starlingx-discuss@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@baicells.com Sent: Thursday, October 31, 2019 4:12 PM To: Sun, Austin austin.sun@intel.com; starlingx-discuss starlingx-discuss@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@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@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@intel.com 发送时间:2019年10月31日(星期四) 15:23 收件人:钱江 qianjiang@baicells.com; starlingx-discuss starlingx-discuss@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@baicells.com Sent: Thursday, October 31, 2019 2:42 PM To: starlingx-discuss starlingx-discuss@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", 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
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@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@intel.com 发送时间:2019年10月31日(星期四) 16:42 收件人:钱江 qianjiang@baicells.com; starlingx-discuss < starlingx-discuss@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@baicells.com *Sent:* Thursday, October 31, 2019 4:12 PM *To:* Sun, Austin austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@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@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@intel.com
发送时间:2019年10月31日(星期四) 15:23
收件人:钱江 qianjiang@baicells.com; starlingx-discuss < starlingx-discuss@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@baicells.com *Sent:* Thursday, October 31, 2019 2:42 PM *To:* starlingx-discuss starlingx-discuss@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@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
Hi, Ezpeer
I checked and yes, [sysadmin@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@gmail.com 发送时间:2019年10月31日(星期四) 18:12 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@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@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@intel.com 发送时间:2019年10月31日(星期四) 16:42 收件人:钱江 qianjiang@baicells.com; starlingx-discuss starlingx-discuss@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@baicells.com Sent: Thursday, October 31, 2019 4:12 PM To: Sun, Austin austin.sun@intel.com; starlingx-discuss starlingx-discuss@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@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@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@intel.com 发送时间:2019年10月31日(星期四) 15:23 收件人:钱江 qianjiang@baicells.com; starlingx-discuss starlingx-discuss@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@baicells.com Sent: Thursday, October 31, 2019 2:42 PM To: starlingx-discuss starlingx-discuss@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", 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@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
Dear QianJiang,
Your command is incorrect.
Example: [sysadmin@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@controller-0 ~(keystone_admin)]$
钱江 qianjiang@baicells.com 於 2019年10月31日 週四 下午7:23寫道:
Hi, Ezpeer I checked and yes,
[sysadmin@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@gmail.com 发送时间:2019年10月31日(星期四) 18:12 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@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@intel.com 发送时间:2019年10月31日(星期四) 16:42 收件人:钱江 qianjiang@baicells.com; starlingx-discuss < starlingx-discuss@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@baicells.com *Sent:* Thursday, October 31, 2019 4:12 PM *To:* Sun, Austin austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@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@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@intel.com
发送时间:2019年10月31日(星期四) 15:23
收件人:钱江 qianjiang@baicells.com; starlingx-discuss < starlingx-discuss@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@baicells.com *Sent:* Thursday, October 31, 2019 2:42 PM *To:* starlingx-discuss starlingx-discuss@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@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
Hi, Ezpeer
I just followed "Install StarlingX Kubernetes on Virtual AIO-SX" (https://docs.starlingx.io/deploy_install_guides/r2_release/virtual/aio_simpl...). Below pasted from the guide, 1). the read one, "physnet0" and "physnet1", should I replace it using real interfaces in host? 2). do you have any material about "system datanetwork"
-------------------------- DATA0IF=eth1000 DATA1IF=eth1001 export COMPUTE=controller-0 PHYSNET0='physnet0' PHYSNET1='physnet1' SPL=/tmp/tmp-system-port-list SPIL=/tmp/tmp-system-host-if-list system host-port-list ${COMPUTE} --nowrap > ${SPL} system host-if-list -a ${COMPUTE} --nowrap > ${SPIL} DATA0PCIADDR=$(cat $SPL | grep $DATA0IF |awk '{print $8}') DATA1PCIADDR=$(cat $SPL | grep $DATA1IF |awk '{print $8}') DATA0PORTUUID=$(cat $SPL | grep ${DATA0PCIADDR} | awk '{print $2}') DATA1PORTUUID=$(cat $SPL | grep ${DATA1PCIADDR} | awk '{print $2}') DATA0PORTNAME=$(cat $SPL | grep ${DATA0PCIADDR} | awk '{print $4}') DATA1PORTNAME=$(cat $SPL | grep ${DATA1PCIADDR} | awk '{print $4}') DATA0IFUUID=$(cat $SPIL | awk -v DATA0PORTNAME=$DATA0PORTNAME '($12 ~ DATA0PORTNAME) {print $2}') DATA1IFUUID=$(cat $SPIL | awk -v DATA1PORTNAME=$DATA1PORTNAME '($12 ~ DATA1PORTNAME) {print $2}')
system datanetwork-add ${PHYSNET0} vlan system datanetwork-add ${PHYSNET1} vlan
system host-if-modify -m 1500 -n data0 -c data ${COMPUTE} ${DATA0IFUUID} system host-if-modify -m 1500 -n data1 -c data ${COMPUTE} ${DATA1IFUUID} system interface-datanetwork-assign ${COMPUTE} ${DATA0IFUUID} ${PHYSNET0} system interface-datanetwork-assign ${COMPUTE} ${DATA1IFUUID} ${PHYSNET1} --------------------------
------------------------------------------------------------------ 发件人:Ezpeer Chen ezpeerchen@gmail.com 发送时间:2019年11月1日(星期五) 10:10 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@lists.starlingx.io 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Dear QianJiang,
Your command is incorrect.
Example: [sysadmin@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@controller-0 ~(keystone_admin)]$
钱江 qianjiang@baicells.com 於 2019年10月31日 週四 下午7:23寫道:
Hi, Ezpeer
I checked and yes, [sysadmin@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@gmail.com 发送时间:2019年10月31日(星期四) 18:12 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@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@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@intel.com 发送时间:2019年10月31日(星期四) 16:42 收件人:钱江 qianjiang@baicells.com; starlingx-discuss starlingx-discuss@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@baicells.com Sent: Thursday, October 31, 2019 4:12 PM To: Sun, Austin austin.sun@intel.com; starlingx-discuss starlingx-discuss@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@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@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@intel.com 发送时间:2019年10月31日(星期四) 15:23 收件人:钱江 qianjiang@baicells.com; starlingx-discuss starlingx-discuss@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@baicells.com Sent: Thursday, October 31, 2019 2:42 PM To: starlingx-discuss starlingx-discuss@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", 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@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
valid_lft forever preferred_lft forever 163: cali4b88ce Install StarlingX Kubernetes on Virtual AIO-SX Install StarlingX Kubernetes on Virtual AIO-SX Install StarlingX Kubernetes on Virtual AIO-SX Install StarlingX Kubernetes on Virtual AIO-SX
Dear QianJiang,
Please reference the document https://wiki.openstack.org/wiki/StarlingX/Networking .
The document has an example about configuring the flat network.
- Configure the flat network.
Thanks.
BR
钱江 qianjiang@baicells.com 於 2019年11月1日 週五 上午10:28寫道:
Hi, Ezpeer I just followed "Install StarlingX Kubernetes on Virtual AIO-SX" (
https://docs.starlingx.io/deploy_install_guides/r2_release/virtual/aio_simpl... ). Below pasted from the guide, 1). the read one, "physnet0" and "physnet1", should I replace it using real interfaces in host? 2). do you have any material about "system datanetwork"
--------------------------
DATA0IF=eth1000 DATA1IF=eth1001 export COMPUTE=controller-0 PHYSNET0='physnet0' PHYSNET1='physnet1' SPL=/tmp/tmp-system-port-list SPIL=/tmp/tmp-system-host-if-list system host-port-list ${COMPUTE} --nowrap > ${SPL} system host-if-list -a ${COMPUTE} --nowrap > ${SPIL} DATA0PCIADDR=$(cat $SPL | grep $DATA0IF |awk '{print $8}') DATA1PCIADDR=$(cat $SPL | grep $DATA1IF |awk '{print $8}') DATA0PORTUUID=$(cat $SPL | grep ${DATA0PCIADDR} | awk '{print $2}') DATA1PORTUUID=$(cat $SPL | grep ${DATA1PCIADDR} | awk '{print $2}') DATA0PORTNAME=$(cat $SPL | grep ${DATA0PCIADDR} | awk '{print $4}') DATA1PORTNAME=$(cat $SPL | grep ${DATA1PCIADDR} | awk '{print $4}') DATA0IFUUID=$(cat $SPIL | awk -v DATA0PORTNAME=$DATA0PORTNAME '($12 ~ DATA0PORTNAME) {print $2}') DATA1IFUUID=$(cat $SPIL | awk -v DATA1PORTNAME=$DATA1PORTNAME '($12 ~ DATA1PORTNAME) {print $2}')
system datanetwork-add ${PHYSNET0} vlan system datanetwork-add ${PHYSNET1} vlan
system host-if-modify -m 1500 -n data0 -c data ${COMPUTE} ${DATA0IFUUID} system host-if-modify -m 1500 -n data1 -c data ${COMPUTE} ${DATA1IFUUID} system interface-datanetwork-assign ${COMPUTE} ${DATA0IFUUID} ${PHYSNET0} system interface-datanetwork-assign ${COMPUTE} ${DATA1IFUUID} ${PHYSNET1} --------------------------
发件人:Ezpeer Chen ezpeerchen@gmail.com 发送时间:2019年11月1日(星期五) 10:10 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@lists.starlingx.io> 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Dear QianJiang,
Your command is incorrect.
Example: [sysadmin@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@controller-0 ~(keystone_admin)]$
钱江 qianjiang@baicells.com 於 2019年10月31日 週四 下午7:23寫道: Hi, Ezpeer
I checked and yes,
[sysadmin@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@gmail.com 发送时间:2019年10月31日(星期四) 18:12 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@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@intel.com 发送时间:2019年10月31日(星期四) 16:42 收件人:钱江 qianjiang@baicells.com; starlingx-discuss < starlingx-discuss@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@baicells.com *Sent:* Thursday, October 31, 2019 4:12 PM *To:* Sun, Austin austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@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@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@intel.com
发送时间:2019年10月31日(星期四) 15:23
收件人:钱江 qianjiang@baicells.com; starlingx-discuss < starlingx-discuss@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@baicells.com *Sent:* Thursday, October 31, 2019 2:42 PM *To:* starlingx-discuss starlingx-discuss@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@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
valid_lft forever preferred_lft forever 163: cali4b88ce Install StarlingX Kubernetes on Virtual AIO-SX Install StarlingX Kubernetes on Virtual AIO-SX Install StarlingX Kubernetes on Virtual AIO-SX Install StarlingX Kubernetes on Virtual AIO-SX
Hi, Ezpeer
Thanks very much, however I am very confused with some starlingx network concepts. From the system command, we see, systen network list system interface-network list system datanetwork list system interface-datanetwork list
Could you tell me concepts of these network/datanetwork/interface-network? Or any available materials about the system networks?
------------------------------------------------------------------ 发件人:Ezpeer Chen ezpeerchen@gmail.com 发送时间:2019年11月1日(星期五) 10:40 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@lists.starlingx.io 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Dear QianJiang,
Please reference the document https://wiki.openstack.org/wiki/StarlingX/Networking .
The document has an example about configuring the flat network. Configure the flat network.
Thanks. BR 钱江 qianjiang@baicells.com 於 2019年11月1日 週五 上午10:28寫道:
Hi, Ezpeer
I just followed "Install StarlingX Kubernetes on Virtual AIO-SX" (https://docs.starlingx.io/deploy_install_guides/r2_release/virtual/aio_simpl...). Below pasted from the guide, 1). the read one, "physnet0" and "physnet1", should I replace it using real interfaces in host? 2). do you have any material about "system datanetwork"
-------------------------- DATA0IF=eth1000 DATA1IF=eth1001 export COMPUTE=controller-0 PHYSNET0='physnet0' PHYSNET1='physnet1' SPL=/tmp/tmp-system-port-list SPIL=/tmp/tmp-system-host-if-list system host-port-list ${COMPUTE} --nowrap > ${SPL} system host-if-list -a ${COMPUTE} --nowrap > ${SPIL} DATA0PCIADDR=$(cat $SPL | grep $DATA0IF |awk '{print $8}') DATA1PCIADDR=$(cat $SPL | grep $DATA1IF |awk '{print $8}') DATA0PORTUUID=$(cat $SPL | grep ${DATA0PCIADDR} | awk '{print $2}') DATA1PORTUUID=$(cat $SPL | grep ${DATA1PCIADDR} | awk '{print $2}') DATA0PORTNAME=$(cat $SPL | grep ${DATA0PCIADDR} | awk '{print $4}') DATA1PORTNAME=$(cat $SPL | grep ${DATA1PCIADDR} | awk '{print $4}') DATA0IFUUID=$(cat $SPIL | awk -v DATA0PORTNAME=$DATA0PORTNAME '($12 ~ DATA0PORTNAME) {print $2}') DATA1IFUUID=$(cat $SPIL | awk -v DATA1PORTNAME=$DATA1PORTNAME '($12 ~ DATA1PORTNAME) {print $2}')
system datanetwork-add ${PHYSNET0} vlan system datanetwork-add ${PHYSNET1} vlan
system host-if-modify -m 1500 -n data0 -c data ${COMPUTE} ${DATA0IFUUID} system host-if-modify -m 1500 -n data1 -c data ${COMPUTE} ${DATA1IFUUID} system interface-datanetwork-assign ${COMPUTE} ${DATA0IFUUID} ${PHYSNET0} system interface-datanetwork-assign ${COMPUTE} ${DATA1IFUUID} ${PHYSNET1} --------------------------
------------------------------------------------------------------ 发件人:Ezpeer Chen ezpeerchen@gmail.com 发送时间:2019年11月1日(星期五) 10:10 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@lists.starlingx.io 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Dear QianJiang,
Your command is incorrect.
Example: [sysadmin@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@controller-0 ~(keystone_admin)]$
钱江 qianjiang@baicells.com 於 2019年10月31日 週四 下午7:23寫道: Hi, Ezpeer
I checked and yes, [sysadmin@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@gmail.com 发送时间:2019年10月31日(星期四) 18:12 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@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@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@intel.com 发送时间:2019年10月31日(星期四) 16:42 收件人:钱江 qianjiang@baicells.com; starlingx-discuss starlingx-discuss@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@baicells.com Sent: Thursday, October 31, 2019 4:12 PM To: Sun, Austin austin.sun@intel.com; starlingx-discuss starlingx-discuss@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@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@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@intel.com 发送时间:2019年10月31日(星期四) 15:23 收件人:钱江 qianjiang@baicells.com; starlingx-discuss starlingx-discuss@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@baicells.com Sent: Thursday, October 31, 2019 2:42 PM To: starlingx-discuss starlingx-discuss@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", 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@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
valid_lft forever preferred_lft forever 163: cali4b88ce Install StarlingX Kubernetes on Virtual AIO-SX Install StarlingX Kubernetes on Virtual AIO-SX Install StarlingX Kubernetes on Virtual AIO-SX Install StarlingX Kubernetes on Virtual AIO-SX
Hi Qian,
systen network list
List of all the IP networks across your system. Like your host or pod networks. Basically each network here defines a network type that you would assign to interfaces below. For e.g. you can leverage this to separate networks etc.
system interface-network list
List of interfaces (logical interface names) like OAM/MGMT/CLUSTER on a specifc host. Each interface will be using a specifc network name (from your system network-list). To understand to what physical interface it is mapped on the host you can use with system host-if-list <node uuid/name>
system datanetwork list
List of datanetworks available on the system. Basically a data network type either you want to assign it as flat or vlan etc.
system interface-datanetwork list
List of data interfaces (logical data interface names) on a specific system/host and you can know how they are mapped to the above data networks. To understand to what physical interface it is mapped on the specific host you can use with system host-if-list <node uuid/name>
Regards, Venkata Veldanda From: 钱江 qianjiang@baicells.com Sent: Friday, November 01, 2019 10:02 AM To: Ezpeer Chen ezpeerchen@gmail.com Cc: Sun, Austin austin.sun@intel.com; starlingx-discuss starlingx-discuss@lists.starlingx.io Subject: [Starlingx-discuss] 回复: 回复:回复: openstack network creation failure: Flat provider networks are disabled
Hi, Ezpeer
Thanks very much, however I am very confused with some starlingx network concepts. From the system command, we see, systen network list system interface-network list system datanetwork list system interface-datanetwork list
Could you tell me concepts of these network/datanetwork/interface-network? Or any available materials about the system networks?
------------------------------------------------------------------ 发件人:Ezpeer Chen <ezpeerchen@gmail.commailto:ezpeerchen@gmail.com> 发送时间:2019年11月1日(星期五) 10:40 收件人:钱江 <qianjiang@baicells.commailto:qianjiang@baicells.com> 抄 送:"Sun, Austin" <austin.sun@intel.commailto:austin.sun@intel.com>; starlingx-discuss <starlingx-discuss@lists.starlingx.iomailto:starlingx-discuss@lists.starlingx.io> 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Dear QianJiang,
Please reference the document https://wiki.openstack.org/wiki/StarlingX/Networking .
The document has an example about configuring the flat network. · Configure the flat network.
Thanks. BR
钱江 <qianjiang@baicells.commailto:qianjiang@baicells.com> 於 2019年11月1日 週五 上午10:28寫道: Hi, Ezpeer
I just followed "Install StarlingX Kubernetes on Virtual AIO-SX" (https://docs.starlingx.io/deploy_install_guides/r2_release/virtual/aio_simpl...). Below pasted from the guide, 1). the read one, "physnet0" and "physnet1", should I replace it using real interfaces in host? 2). do you have any material about "system datanetwork"
-------------------------- DATA0IF=eth1000 DATA1IF=eth1001 export COMPUTE=controller-0 PHYSNET0='physnet0' PHYSNET1='physnet1' SPL=/tmp/tmp-system-port-list SPIL=/tmp/tmp-system-host-if-list system host-port-list ${COMPUTE} --nowrap > ${SPL} system host-if-list -a ${COMPUTE} --nowrap > ${SPIL} DATA0PCIADDR=$(cat $SPL | grep $DATA0IF |awk '{print $8}') DATA1PCIADDR=$(cat $SPL | grep $DATA1IF |awk '{print $8}') DATA0PORTUUID=$(cat $SPL | grep ${DATA0PCIADDR} | awk '{print $2}') DATA1PORTUUID=$(cat $SPL | grep ${DATA1PCIADDR} | awk '{print $2}') DATA0PORTNAME=$(cat $SPL | grep ${DATA0PCIADDR} | awk '{print $4}') DATA1PORTNAME=$(cat $SPL | grep ${DATA1PCIADDR} | awk '{print $4}') DATA0IFUUID=$(cat $SPIL | awk -v DATA0PORTNAME=$DATA0PORTNAME '($12 ~ DATA0PORTNAME) {print $2}') DATA1IFUUID=$(cat $SPIL | awk -v DATA1PORTNAME=$DATA1PORTNAME '($12 ~ DATA1PORTNAME) {print $2}')
system datanetwork-add ${PHYSNET0} vlan system datanetwork-add ${PHYSNET1} vlan
system host-if-modify -m 1500 -n data0 -c data ${COMPUTE} ${DATA0IFUUID} system host-if-modify -m 1500 -n data1 -c data ${COMPUTE} ${DATA1IFUUID} system interface-datanetwork-assign ${COMPUTE} ${DATA0IFUUID} ${PHYSNET0} system interface-datanetwork-assign ${COMPUTE} ${DATA1IFUUID} ${PHYSNET1} --------------------------
------------------------------------------------------------------ 发件人:Ezpeer Chen <ezpeerchen@gmail.commailto:ezpeerchen@gmail.com> 发送时间:2019年11月1日(星期五) 10:10 收件人:钱江 <qianjiang@baicells.commailto:qianjiang@baicells.com> 抄 送:"Sun, Austin" <austin.sun@intel.commailto:austin.sun@intel.com>; starlingx-discuss <starlingx-discuss@lists.starlingx.iomailto:starlingx-discuss@lists.starlingx.io> 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Dear QianJiang,
Your command is incorrect.
Example: [sysadmin@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@controller-0 ~(keystone_admin)]$
钱江 <qianjiang@baicells.commailto:qianjiang@baicells.com> 於 2019年10月31日 週四 下午7:23寫道: Hi, Ezpeer
I checked and yes, [sysadmin@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@gmail.commailto:ezpeerchen@gmail.com> 发送时间:2019年10月31日(星期四) 18:12 收件人:钱江 <qianjiang@baicells.commailto:qianjiang@baicells.com> 抄 送:"Sun, Austin" <austin.sun@intel.commailto:austin.sun@intel.com>; starlingx-discuss <starlingx-discuss@lists.starlingx.iomailto:starlingx-discuss@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@baicells.commailto:qianjiang@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@intel.commailto:austin.sun@intel.com> 发送时间:2019年10月31日(星期四) 16:42 收件人:钱江 <qianjiang@baicells.commailto:qianjiang@baicells.com>; starlingx-discuss <starlingx-discuss@lists.starlingx.iomailto:starlingx-discuss@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@baicells.commailto:qianjiang@baicells.com> Sent: Thursday, October 31, 2019 4:12 PM To: Sun, Austin <austin.sun@intel.commailto:austin.sun@intel.com>; starlingx-discuss <starlingx-discuss@lists.starlingx.iomailto:starlingx-discuss@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@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@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@intel.commailto:austin.sun@intel.com> 发送时间:2019年10月31日(星期四) 15:23 收件人:钱江 <qianjiang@baicells.commailto:qianjiang@baicells.com>; starlingx-discuss <starlingx-discuss@lists.starlingx.iomailto:starlingx-discuss@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@baicells.commailto:qianjiang@baicells.com> Sent: Thursday, October 31, 2019 2:42 PM To: starlingx-discuss <starlingx-discuss@lists.starlingx.iomailto:starlingx-discuss@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.0https://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@lists.starlingx.iomailto:Starlingx-discuss@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
valid_lft forever preferred_lft forever 163: cali4b88ce Install StarlingX Kubernetes on Virtual AIO-SX Install StarlingX Kubernetes on Virtual AIO-SX Install StarlingX Kubernetes on Virtual AIO-SX Install StarlingX Kubernetes on Virtual AIO-SX
Hi, Ezpeer
Below is the log of "system interface-datanetwork-list controller-0", any problem?
[sysadmin@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@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@gmail.com 发送时间:2019年11月1日(星期五) 10:10 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@lists.starlingx.io 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Dear QianJiang,
Your command is incorrect.
Example: [sysadmin@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@controller-0 ~(keystone_admin)]$
钱江 qianjiang@baicells.com 於 2019年10月31日 週四 下午7:23寫道:
Hi, Ezpeer
I checked and yes, [sysadmin@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@gmail.com 发送时间:2019年10月31日(星期四) 18:12 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@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@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@intel.com 发送时间:2019年10月31日(星期四) 16:42 收件人:钱江 qianjiang@baicells.com; starlingx-discuss starlingx-discuss@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@baicells.com Sent: Thursday, October 31, 2019 4:12 PM To: Sun, Austin austin.sun@intel.com; starlingx-discuss starlingx-discuss@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@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@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@intel.com 发送时间:2019年10月31日(星期四) 15:23 收件人:钱江 qianjiang@baicells.com; starlingx-discuss starlingx-discuss@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@baicells.com Sent: Thursday, October 31, 2019 2:42 PM To: starlingx-discuss starlingx-discuss@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", 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@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
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@baicells.com 於 2019年11月1日 週五 下午2:35寫道:
Hi, Ezpeer
Below is the log of "system interface-datanetwork-list controller-0", any problem?
[sysadmin@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@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@gmail.com 发送时间:2019年11月1日(星期五) 10:10 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@lists.starlingx.io> 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Dear QianJiang,
Your command is incorrect.
Example: [sysadmin@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@controller-0 ~(keystone_admin)]$
钱江 qianjiang@baicells.com 於 2019年10月31日 週四 下午7:23寫道: Hi, Ezpeer
I checked and yes,
[sysadmin@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@gmail.com 发送时间:2019年10月31日(星期四) 18:12 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@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@intel.com 发送时间:2019年10月31日(星期四) 16:42 收件人:钱江 qianjiang@baicells.com; starlingx-discuss < starlingx-discuss@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@baicells.com *Sent:* Thursday, October 31, 2019 4:12 PM *To:* Sun, Austin austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@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@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@intel.com
发送时间:2019年10月31日(星期四) 15:23
收件人:钱江 qianjiang@baicells.com; starlingx-discuss < starlingx-discuss@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@baicells.com *Sent:* Thursday, October 31, 2019 2:42 PM *To:* starlingx-discuss starlingx-discuss@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@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
You see, "eth1000" and "eth1001" are assigned to datanetwork. [sysadmin@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@gmail.com 发送时间:2019年11月1日(星期五) 14:46 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@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@baicells.com 於 2019年11月1日 週五 下午2:35寫道:
Hi, Ezpeer
Below is the log of "system interface-datanetwork-list controller-0", any problem?
[sysadmin@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@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@gmail.com 发送时间:2019年11月1日(星期五) 10:10 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@lists.starlingx.io 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Dear QianJiang,
Your command is incorrect.
Example: [sysadmin@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@controller-0 ~(keystone_admin)]$
钱江 qianjiang@baicells.com 於 2019年10月31日 週四 下午7:23寫道: Hi, Ezpeer
I checked and yes, [sysadmin@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@gmail.com 发送时间:2019年10月31日(星期四) 18:12 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@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@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@intel.com 发送时间:2019年10月31日(星期四) 16:42 收件人:钱江 qianjiang@baicells.com; starlingx-discuss starlingx-discuss@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@baicells.com Sent: Thursday, October 31, 2019 4:12 PM To: Sun, Austin austin.sun@intel.com; starlingx-discuss starlingx-discuss@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@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@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@intel.com 发送时间:2019年10月31日(星期四) 15:23 收件人:钱江 qianjiang@baicells.com; starlingx-discuss starlingx-discuss@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@baicells.com Sent: Thursday, October 31, 2019 2:42 PM To: starlingx-discuss starlingx-discuss@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", 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@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
Your data0 and data1 are vlan type datanetwork.
This is your configuration.
system datanetwork-add ${PHYSNET0} vlan system datanetwork-add ${PHYSNET1} vlan
钱江 qianjiang@baicells.com 於 2019年11月1日 週五 下午3:17寫道:
You see, "eth1000" and "eth1001" are assigned to datanetwork.
[sysadmin@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@gmail.com 发送时间:2019年11月1日(星期五) 14:46 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@baicells.com 於 2019年11月1日 週五 下午2:35寫道: Hi, Ezpeer
Below is the log of "system interface-datanetwork-list controller-0", any problem?
[sysadmin@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@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@gmail.com 发送时间:2019年11月1日(星期五) 10:10 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@lists.starlingx.io> 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Dear QianJiang,
Your command is incorrect.
Example: [sysadmin@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@controller-0 ~(keystone_admin)]$
钱江 qianjiang@baicells.com 於 2019年10月31日 週四 下午7:23寫道: Hi, Ezpeer
I checked and yes,
[sysadmin@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@gmail.com 发送时间:2019年10月31日(星期四) 18:12 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@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@intel.com 发送时间:2019年10月31日(星期四) 16:42 收件人:钱江 qianjiang@baicells.com; starlingx-discuss < starlingx-discuss@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@baicells.com *Sent:* Thursday, October 31, 2019 4:12 PM *To:* Sun, Austin austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@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@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@intel.com
发送时间:2019年10月31日(星期四) 15:23
收件人:钱江 qianjiang@baicells.com; starlingx-discuss < starlingx-discuss@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@baicells.com *Sent:* Thursday, October 31, 2019 2:42 PM *To:* starlingx-discuss starlingx-discuss@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@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
But, still failure use type vlan 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.
------------------------------------------------------------------ 发件人:Ezpeer Chen ezpeerchen@gmail.com 发送时间:2019年11月1日(星期五) 15:27 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@lists.starlingx.io 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Your data0 and data1 are vlan type datanetwork.
This is your configuration.
system datanetwork-add ${PHYSNET0} vlan system datanetwork-add ${PHYSNET1} vlan
钱江 qianjiang@baicells.com 於 2019年11月1日 週五 下午3:17寫道:
You see, "eth1000" and "eth1001" are assigned to datanetwork. [sysadmin@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@gmail.com 发送时间:2019年11月1日(星期五) 14:46 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@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@baicells.com 於 2019年11月1日 週五 下午2:35寫道: Hi, Ezpeer
Below is the log of "system interface-datanetwork-list controller-0", any problem?
[sysadmin@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@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@gmail.com 发送时间:2019年11月1日(星期五) 10:10 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@lists.starlingx.io 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Dear QianJiang,
Your command is incorrect.
Example: [sysadmin@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@controller-0 ~(keystone_admin)]$
钱江 qianjiang@baicells.com 於 2019年10月31日 週四 下午7:23寫道: Hi, Ezpeer
I checked and yes, [sysadmin@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@gmail.com 发送时间:2019年10月31日(星期四) 18:12 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@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@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@intel.com 发送时间:2019年10月31日(星期四) 16:42 收件人:钱江 qianjiang@baicells.com; starlingx-discuss starlingx-discuss@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@baicells.com Sent: Thursday, October 31, 2019 4:12 PM To: Sun, Austin austin.sun@intel.com; starlingx-discuss starlingx-discuss@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@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@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@intel.com 发送时间:2019年10月31日(星期四) 15:23 收件人:钱江 qianjiang@baicells.com; starlingx-discuss starlingx-discuss@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@baicells.com Sent: Thursday, October 31, 2019 2:42 PM To: starlingx-discuss starlingx-discuss@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", 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@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
Please follow the document's example. https://wiki.openstack.org/wiki/StarlingX/Networking
- Configure the flat network.
钱江 qianjiang@baicells.com 於 2019年11月1日 週五 下午3:36寫道:
But, still failure use type vlan 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.
发件人:Ezpeer Chen ezpeerchen@gmail.com 发送时间:2019年11月1日(星期五) 15:27 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@lists.starlingx.io> 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Your data0 and data1 are vlan type datanetwork.
This is your configuration.
system datanetwork-add ${PHYSNET0} vlan system datanetwork-add ${PHYSNET1} vlan
钱江 qianjiang@baicells.com 於 2019年11月1日 週五 下午3:17寫道: You see, "eth1000" and "eth1001" are assigned to datanetwork. [sysadmin@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@gmail.com 发送时间:2019年11月1日(星期五) 14:46 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@baicells.com 於 2019年11月1日 週五 下午2:35寫道: Hi, Ezpeer
Below is the log of "system interface-datanetwork-list controller-0", any problem?
[sysadmin@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@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@gmail.com 发送时间:2019年11月1日(星期五) 10:10 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@lists.starlingx.io> 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Dear QianJiang,
Your command is incorrect.
Example: [sysadmin@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@controller-0 ~(keystone_admin)]$
钱江 qianjiang@baicells.com 於 2019年10月31日 週四 下午7:23寫道: Hi, Ezpeer
I checked and yes,
[sysadmin@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@gmail.com 发送时间:2019年10月31日(星期四) 18:12 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@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@intel.com 发送时间:2019年10月31日(星期四) 16:42 收件人:钱江 qianjiang@baicells.com; starlingx-discuss < starlingx-discuss@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@baicells.com *Sent:* Thursday, October 31, 2019 4:12 PM *To:* Sun, Austin austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@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@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@intel.com
发送时间:2019年10月31日(星期四) 15:23
收件人:钱江 qianjiang@baicells.com; starlingx-discuss < starlingx-discuss@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@baicells.com *Sent:* Thursday, October 31, 2019 2:42 PM *To:* starlingx-discuss starlingx-discuss@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@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
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.
* --provider-physical-network provider * = > incorrect
You don't have the physical network named as "provider".
Please follow the document's example. https://wiki.openstack.org/wiki/StarlingX/Networking
Ezpeer Chen ezpeerchen@gmail.com 於 2019年11月1日 週五 下午3:50寫道:
Please follow the document's example. https://wiki.openstack.org/wiki/StarlingX/Networking
- Configure the flat network.
钱江 qianjiang@baicells.com 於 2019年11月1日 週五 下午3:36寫道:
But, still failure use type vlan 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.
发件人:Ezpeer Chen ezpeerchen@gmail.com 发送时间:2019年11月1日(星期五) 15:27 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@lists.starlingx.io> 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Your data0 and data1 are vlan type datanetwork.
This is your configuration.
system datanetwork-add ${PHYSNET0} vlan system datanetwork-add ${PHYSNET1} vlan
钱江 qianjiang@baicells.com 於 2019年11月1日 週五 下午3:17寫道: You see, "eth1000" and "eth1001" are assigned to datanetwork. [sysadmin@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@gmail.com 发送时间:2019年11月1日(星期五) 14:46 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@baicells.com 於 2019年11月1日 週五 下午2:35寫道: Hi, Ezpeer
Below is the log of "system interface-datanetwork-list controller-0", any problem?
[sysadmin@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@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@gmail.com 发送时间:2019年11月1日(星期五) 10:10 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@lists.starlingx.io> 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Dear QianJiang,
Your command is incorrect.
Example: [sysadmin@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@controller-0 ~(keystone_admin)]$
钱江 qianjiang@baicells.com 於 2019年10月31日 週四 下午7:23寫道: Hi, Ezpeer
I checked and yes,
[sysadmin@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@gmail.com 发送时间:2019年10月31日(星期四) 18:12 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@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@intel.com 发送时间:2019年10月31日(星期四) 16:42 收件人:钱江 qianjiang@baicells.com; starlingx-discuss < starlingx-discuss@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@baicells.com *Sent:* Thursday, October 31, 2019 4:12 PM *To:* Sun, Austin austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@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@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@intel.com
发送时间:2019年10月31日(星期四) 15:23
收件人:钱江 qianjiang@baicells.com; starlingx-discuss < starlingx-discuss@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@baicells.com *Sent:* Thursday, October 31, 2019 2:42 PM *To:* starlingx-discuss starlingx-discuss@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@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
Hi, Ezpeer Just follow https://wiki.openstack.org/wiki/StarlingX/Networking --- Configure the flat network.
controller-0:~$ export OS_CLOUD=openstack_helm controller-0:~$ ADMINID=`openstack project list | grep admin | awk '{print $2}'` controller-0:~$ echo $ADMINID 95794c0fbfe9427b908eedb823aba318 controller-0:~$ openstack network create --project ${ADMINID} --provider-network-type=flat --provider-physical-network=phy-flat netflat Error while executing command: BadRequestException: 400, Invalid input for operation: physical_network 'phy-flat' unknown for flat provider network. controller-0:~$
and, [sysadmin@controller-0 ~(keystone_admin)]$ system datanetwork-list +--------------------------------------+----------+--------------+------+ | uuid | name | network_type | mtu | +--------------------------------------+----------+--------------+------+ | 7b999f8b-05fe-4c44-9742-907e4551d9b7 | enp2s1 | flat | 1500 | | 5c8391a3-be90-48dd-8df5-2c1118af979a | phy-flat | flat | 1500 | | 15eeb861-6910-4254-bb79-847bcbd88ed7 | physnet0 | vlan | 1500 | | ad22c935-51a9-4823-9b55-f18df57e5982 | physnet1 | vlan | 1500 | +--------------------------------------+----------+--------------+------+
Please Best Regard
------------------------------------------------------------------ 发件人:Ezpeer Chen ezpeerchen@gmail.com 发送时间:2019年11月1日(星期五) 16:31 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@lists.starlingx.io 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
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.
--provider-physical-network provider = > incorrect
You don't have the physical network named as "provider".
Please follow the document's example. https://wiki.openstack.org/wiki/StarlingX/Networking Ezpeer Chen ezpeerchen@gmail.com 於 2019年11月1日 週五 下午3:50寫道:
Please follow the document's example. https://wiki.openstack.org/wiki/StarlingX/Networking
Configure the flat network. 钱江 qianjiang@baicells.com 於 2019年11月1日 週五 下午3:36寫道: But, still failure use type vlan 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.
------------------------------------------------------------------ 发件人:Ezpeer Chen ezpeerchen@gmail.com 发送时间:2019年11月1日(星期五) 15:27 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@lists.starlingx.io 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Your data0 and data1 are vlan type datanetwork.
This is your configuration.
system datanetwork-add ${PHYSNET0} vlan system datanetwork-add ${PHYSNET1} vlan
钱江 qianjiang@baicells.com 於 2019年11月1日 週五 下午3:17寫道: You see, "eth1000" and "eth1001" are assigned to datanetwork. [sysadmin@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@gmail.com 发送时间:2019年11月1日(星期五) 14:46 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@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@baicells.com 於 2019年11月1日 週五 下午2:35寫道: Hi, Ezpeer
Below is the log of "system interface-datanetwork-list controller-0", any problem?
[sysadmin@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@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@gmail.com 发送时间:2019年11月1日(星期五) 10:10 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@lists.starlingx.io 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Dear QianJiang,
Your command is incorrect.
Example: [sysadmin@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@controller-0 ~(keystone_admin)]$
钱江 qianjiang@baicells.com 於 2019年10月31日 週四 下午7:23寫道: Hi, Ezpeer
I checked and yes, [sysadmin@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@gmail.com 发送时间:2019年10月31日(星期四) 18:12 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@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@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@intel.com 发送时间:2019年10月31日(星期四) 16:42 收件人:钱江 qianjiang@baicells.com; starlingx-discuss starlingx-discuss@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@baicells.com Sent: Thursday, October 31, 2019 4:12 PM To: Sun, Austin austin.sun@intel.com; starlingx-discuss starlingx-discuss@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@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@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@intel.com 发送时间:2019年10月31日(星期四) 15:23 收件人:钱江 qianjiang@baicells.com; starlingx-discuss starlingx-discuss@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@baicells.com Sent: Thursday, October 31, 2019 2:42 PM To: starlingx-discuss starlingx-discuss@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", 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@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
Dear Qianjiang,
From document:
#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 system host-unlock ${COMPUTE}
Do you do interface-datanetwork-assign for phy-flat?
Check interface-datanetwork-list first.
Example: [sysadmin@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@controller-0 ~(keystone_admin)]$
钱江 qianjiang@baicells.com 於 2019年11月1日 週五 下午5:31寫道:
Hi, Ezpeer Just follow https://wiki.openstack.org/wiki/StarlingX/Networking
--- Configure the flat network.
controller-0:~$ export OS_CLOUD=openstack_helm controller-0:~$ ADMINID=`openstack project list | grep admin | awk '{print $2}'` controller-0:~$ echo $ADMINID 95794c0fbfe9427b908eedb823aba318 controller-0:~$ openstack network create --project ${ADMINID} --provider-network-type=flat --provider-physical-network=phy-flat netflat Error while executing command: BadRequestException: 400, Invalid input for operation: physical_network 'phy-flat' unknown for flat provider network. controller-0:~$
and,
[sysadmin@controller-0 ~(keystone_admin)]$ system datanetwork-list +--------------------------------------+----------+--------------+------+ | uuid | name | network_type | mtu | +--------------------------------------+----------+--------------+------+ | 7b999f8b-05fe-4c44-9742-907e4551d9b7 | enp2s1 | flat | 1500 | | 5c8391a3-be90-48dd-8df5-2c1118af979a | phy-flat | flat | 1500 | | 15eeb861-6910-4254-bb79-847bcbd88ed7 | physnet0 | vlan | 1500 | | ad22c935-51a9-4823-9b55-f18df57e5982 | physnet1 | vlan | 1500 | +--------------------------------------+----------+--------------+------+
Please Best Regard
发件人:Ezpeer Chen ezpeerchen@gmail.com 发送时间:2019年11月1日(星期五) 16:31 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@lists.starlingx.io> 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
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.
- --provider-physical-network provider * = > incorrect
You don't have the physical network named as "provider".
Please follow the document's example. https://wiki.openstack.org/wiki/StarlingX/Networking
Ezpeer Chen ezpeerchen@gmail.com 於 2019年11月1日 週五 下午3:50寫道: Please follow the document's example. https://wiki.openstack.org/wiki/StarlingX/Networking
- Configure the flat network.
钱江 qianjiang@baicells.com 於 2019年11月1日 週五 下午3:36寫道: But, still failure use type vlan 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.
发件人:Ezpeer Chen ezpeerchen@gmail.com 发送时间:2019年11月1日(星期五) 15:27 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@lists.starlingx.io> 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Your data0 and data1 are vlan type datanetwork.
This is your configuration.
system datanetwork-add ${PHYSNET0} vlan system datanetwork-add ${PHYSNET1} vlan
钱江 qianjiang@baicells.com 於 2019年11月1日 週五 下午3:17寫道: You see, "eth1000" and "eth1001" are assigned to datanetwork. [sysadmin@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@gmail.com 发送时间:2019年11月1日(星期五) 14:46 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@baicells.com 於 2019年11月1日 週五 下午2:35寫道: Hi, Ezpeer
Below is the log of "system interface-datanetwork-list controller-0", any problem?
[sysadmin@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@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@gmail.com 发送时间:2019年11月1日(星期五) 10:10 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@lists.starlingx.io> 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Dear QianJiang,
Your command is incorrect.
Example: [sysadmin@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@controller-0 ~(keystone_admin)]$
钱江 qianjiang@baicells.com 於 2019年10月31日 週四 下午7:23寫道: Hi, Ezpeer
I checked and yes,
[sysadmin@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@gmail.com 发送时间:2019年10月31日(星期四) 18:12 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@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@intel.com 发送时间:2019年10月31日(星期四) 16:42 收件人:钱江 qianjiang@baicells.com; starlingx-discuss < starlingx-discuss@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@baicells.com *Sent:* Thursday, October 31, 2019 4:12 PM *To:* Sun, Austin austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@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@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@intel.com
发送时间:2019年10月31日(星期四) 15:23
收件人:钱江 qianjiang@baicells.com; starlingx-discuss < starlingx-discuss@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@baicells.com *Sent:* Thursday, October 31, 2019 2:42 PM *To:* starlingx-discuss starlingx-discuss@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@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
Hi, Ezpeer
Sure, did interface-datanetwork-assign for phy-flat, see,
[sysadmin@controller-0 ~(keystone_admin)]$ system interface-datanetwork-list controller-0 +--------------+--------------------------------------+--------+------------------+ | hostname | uuid | ifname | datanetwork_name | +--------------+--------------------------------------+--------+------------------+ | controller-0 | 37e7595c-3d52-4fe0-bb26-12297155b87d | data0 | phy-flat | | controller-0 | 5a6763ae-0720-44b4-aa30-645974d9daa8 | data1 | physnet1 | +--------------+--------------------------------------+--------+------------------+
[sysadmin@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@gmail.com 发送时间:2019年11月4日(星期一) 10:23 收件人:钱江 qianjiang@baicells.com 抄 送:starlingx-discuss starlingx-discuss@lists.starlingx.io 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Dear Qianjiang,
From document: #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 system host-unlock ${COMPUTE}
Do you do interface-datanetwork-assign for phy-flat?
Check interface-datanetwork-list first.
Example: [sysadmin@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@controller-0 ~(keystone_admin)]$
钱江 qianjiang@baicells.com 於 2019年11月1日 週五 下午5:31寫道:
Hi, Ezpeer Just follow https://wiki.openstack.org/wiki/StarlingX/Networking --- Configure the flat network.
controller-0:~$ export OS_CLOUD=openstack_helm controller-0:~$ ADMINID=`openstack project list | grep admin | awk '{print $2}'` controller-0:~$ echo $ADMINID 95794c0fbfe9427b908eedb823aba318 controller-0:~$ openstack network create --project ${ADMINID} --provider-network-type=flat --provider-physical-network=phy-flat netflat Error while executing command: BadRequestException: 400, Invalid input for operation: physical_network 'phy-flat' unknown for flat provider network. controller-0:~$
and, [sysadmin@controller-0 ~(keystone_admin)]$ system datanetwork-list +--------------------------------------+----------+--------------+------+ | uuid | name | network_type | mtu | +--------------------------------------+----------+--------------+------+ | 7b999f8b-05fe-4c44-9742-907e4551d9b7 | enp2s1 | flat | 1500 | | 5c8391a3-be90-48dd-8df5-2c1118af979a | phy-flat | flat | 1500 | | 15eeb861-6910-4254-bb79-847bcbd88ed7 | physnet0 | vlan | 1500 | | ad22c935-51a9-4823-9b55-f18df57e5982 | physnet1 | vlan | 1500 | +--------------------------------------+----------+--------------+------+
Please Best Regard
------------------------------------------------------------------ 发件人:Ezpeer Chen ezpeerchen@gmail.com 发送时间:2019年11月1日(星期五) 16:31 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@lists.starlingx.io 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
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.
--provider-physical-network provider = > incorrect
You don't have the physical network named as "provider".
Please follow the document's example. https://wiki.openstack.org/wiki/StarlingX/Networking Ezpeer Chen ezpeerchen@gmail.com 於 2019年11月1日 週五 下午3:50寫道: Please follow the document's example. https://wiki.openstack.org/wiki/StarlingX/Networking
Configure the flat network. 钱江 qianjiang@baicells.com 於 2019年11月1日 週五 下午3:36寫道: But, still failure use type vlan 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.
------------------------------------------------------------------ 发件人:Ezpeer Chen ezpeerchen@gmail.com 发送时间:2019年11月1日(星期五) 15:27 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@lists.starlingx.io 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Your data0 and data1 are vlan type datanetwork.
This is your configuration.
system datanetwork-add ${PHYSNET0} vlan system datanetwork-add ${PHYSNET1} vlan
钱江 qianjiang@baicells.com 於 2019年11月1日 週五 下午3:17寫道: You see, "eth1000" and "eth1001" are assigned to datanetwork. [sysadmin@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@gmail.com 发送时间:2019年11月1日(星期五) 14:46 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@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@baicells.com 於 2019年11月1日 週五 下午2:35寫道: Hi, Ezpeer
Below is the log of "system interface-datanetwork-list controller-0", any problem?
[sysadmin@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@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@gmail.com 发送时间:2019年11月1日(星期五) 10:10 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@lists.starlingx.io 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Dear QianJiang,
Your command is incorrect.
Example: [sysadmin@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@controller-0 ~(keystone_admin)]$
钱江 qianjiang@baicells.com 於 2019年10月31日 週四 下午7:23寫道: Hi, Ezpeer
I checked and yes, [sysadmin@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@gmail.com 发送时间:2019年10月31日(星期四) 18:12 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss starlingx-discuss@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@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@intel.com 发送时间:2019年10月31日(星期四) 16:42 收件人:钱江 qianjiang@baicells.com; starlingx-discuss starlingx-discuss@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@baicells.com Sent: Thursday, October 31, 2019 4:12 PM To: Sun, Austin austin.sun@intel.com; starlingx-discuss starlingx-discuss@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@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@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@intel.com 发送时间:2019年10月31日(星期四) 15:23 收件人:钱江 qianjiang@baicells.com; starlingx-discuss starlingx-discuss@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@baicells.com Sent: Thursday, October 31, 2019 2:42 PM To: starlingx-discuss starlingx-discuss@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", 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@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
Dear Qianjiang,
My Example:
[sysadmin@controller-0 ~(keystone_admin)]$ system host-if-list controller-0 +--------------------------------------+-----------+-----------------+----------+------+----------------+------+------+-----------------------+ | uuid | name | class | type | vlan | ports | uses | used | attributes | | | | | | id | | i/f | by | | | | | | | | | | i/f | | +--------------------------------------+-----------+-----------------+----------+------+----------------+------+------+-----------------------+ | 5e6ab3c1-ff01-4ca9-b8c3-98984c9ab403 | lo | platform | virtual | None | [] | [] | [] | MTU=1500 | | a68ceee4-77d7-4ec1-a5f1-bf667b7fa7f7 | enp2s0 | platform | ethernet | None | [u'enp2s0'] | [] | [] | MTU=1500 | | e0b545f0-dc0d-4c6c-9327-0008191cf3e6 | enp3s0 | data | ethernet | None | [u'enp3s0'] | [] | [] | MTU=1500,accelerated= | | | | | | | | | | True | | | | | | | | | | | | fe0be665-6e66-4113-99b3-164374e40b17 | enp98s0f1 | pci-passthrough | ethernet | None | [u'enp98s0f1'] | [] | [] | MTU=1500 | | ffb39ada-ef0a-4a19-87df-9998c5a23e11 | enp98s0f0 | pci-sriov | ethernet | None | [u'enp98s0f0'] | [] | [] | MTU=1500 | +--------------------------------------+-----------+-----------------+----------+------+----------------+------+------+-----------------------+ [sysadmin@controller-0 ~(keystone_admin)]$
[sysadmin@controller-0 ~(keystone_admin)]$ system datanetwork-list +--------------------------------------+---------------+--------------+------+ | uuid | name | network_type | mtu | +--------------------------------------+---------------+--------------+------+ | b42f45d1-a474-47cc-b603-8c3b4e50189b | phy-flat | flat | 1500 | | a772f2ee-4f45-4593-9aa2-e9d007b3ebb0 | physnet-pci | flat | 1500 | | 322d1ff6-7446-48b3-810f-47cdde3d8b4a | physnet-sriov | flat | 1500 | +--------------------------------------+---------------+--------------+------+
[sysadmin@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 | +--------------+--------------------------------------+-----------+------------------+
=============================================================================
controller-0:~$ export OS_CLOUD=openstack_helm controller-0:~$ ADMINID=`openstack project list | grep admin | awk '{print $2}'` controller-0:~$ openstack network create --project ${ADMINID} --provider-network-type=flat --provider-physical-network=phy-flat netflat +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Field | Value
| +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | admin_state_up | UP
| | availability_zone_hints |
| | availability_zones |
| | created_at | 2019-11-04T03:22:36Z
| | description |
| | dns_domain | None
| | id | 4916450b-f018-4065-ac7a-bfd1475afe17
| | ipv4_address_scope | None
| | ipv6_address_scope | None
| | is_default | False
| | is_vlan_transparent | False
| | location | Munch({'project': Munch({'domain_name': 'default', 'domain_id': None, 'name': 'admin', 'id': u'9be757c8e5464416b41cd1bcdaca990e'}), 'cloud': 'openstack_helm', 'region_name': 'RegionOne', 'zone': None}) | | mtu | 1500
| | name | netflat
| | port_security_enabled | True
| | project_id | 9be757c8e5464416b41cd1bcdaca990e
| | provider:network_type | flat
| | provider:physical_network | phy-flat
| | provider:segmentation_id | None
| | qos_policy_id | None
| | revision_number | 1
| | router:external | Internal
| | segments | None
| | shared | False
| | status | ACTIVE
| | subnets |
| | tags |
| | updated_at | 2019-11-04T03:22:36Z
| +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ controller-0:~$
钱江 qianjiang@baicells.com 於 2019年11月4日 週一 上午11:04寫道:
Hi, Ezpeer Sure, did interface-datanetwork-assign for phy-flat, see,
[sysadmin@controller-0 ~(keystone_admin)]$ system interface-datanetwork-list controller-0
+--------------+--------------------------------------+--------+------------------+ | hostname | uuid | ifname | datanetwork_name |
+--------------+--------------------------------------+--------+------------------+ | controller-0 | 37e7595c-3d52-4fe0-bb26-12297155b87d | data0 | phy-flat | | controller-0 | 5a6763ae-0720-44b4-aa30-645974d9daa8 | data1 | physnet1 |
+--------------+--------------------------------------+--------+------------------+
[sysadmin@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@gmail.com 发送时间:2019年11月4日(星期一) 10:23 收件人:钱江 qianjiang@baicells.com 抄 送:starlingx-discuss starlingx-discuss@lists.starlingx.io 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Dear Qianjiang,
From document:
#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 system host-unlock ${COMPUTE}
Do you do interface-datanetwork-assign for phy-flat?
Check interface-datanetwork-list first.
Example: [sysadmin@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@controller-0 ~(keystone_admin)]$
钱江 qianjiang@baicells.com 於 2019年11月1日 週五 下午5:31寫道: Hi, Ezpeer Just follow https://wiki.openstack.org/wiki/StarlingX/Networking --- Configure the flat network.
controller-0:~$ export OS_CLOUD=openstack_helm controller-0:~$ ADMINID=`openstack project list | grep admin | awk '{print $2}'` controller-0:~$ echo $ADMINID 95794c0fbfe9427b908eedb823aba318 controller-0:~$ openstack network create --project ${ADMINID} --provider-network-type=flat --provider-physical-network=phy-flat netflat Error while executing command: BadRequestException: 400, Invalid input for operation: physical_network 'phy-flat' unknown for flat provider network. controller-0:~$
and,
[sysadmin@controller-0 ~(keystone_admin)]$ system datanetwork-list +--------------------------------------+----------+--------------+------+ | uuid | name | network_type | mtu | +--------------------------------------+----------+--------------+------+ | 7b999f8b-05fe-4c44-9742-907e4551d9b7 | enp2s1 | flat | 1500 | | 5c8391a3-be90-48dd-8df5-2c1118af979a | phy-flat | flat | 1500 | | 15eeb861-6910-4254-bb79-847bcbd88ed7 | physnet0 | vlan | 1500 | | ad22c935-51a9-4823-9b55-f18df57e5982 | physnet1 | vlan | 1500 | +--------------------------------------+----------+--------------+------+
Please Best Regard
发件人:Ezpeer Chen ezpeerchen@gmail.com 发送时间:2019年11月1日(星期五) 16:31 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@lists.starlingx.io> 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
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.
- --provider-physical-network provider * = > incorrect
You don't have the physical network named as "provider".
Please follow the document's example. https://wiki.openstack.org/wiki/StarlingX/Networking
Ezpeer Chen ezpeerchen@gmail.com 於 2019年11月1日 週五 下午3:50寫道: Please follow the document's example. https://wiki.openstack.org/wiki/StarlingX/Networking
- Configure the flat network.
钱江 qianjiang@baicells.com 於 2019年11月1日 週五 下午3:36寫道: But, still failure use type vlan 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.
发件人:Ezpeer Chen ezpeerchen@gmail.com 发送时间:2019年11月1日(星期五) 15:27 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@lists.starlingx.io> 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Your data0 and data1 are vlan type datanetwork.
This is your configuration.
system datanetwork-add ${PHYSNET0} vlan system datanetwork-add ${PHYSNET1} vlan
钱江 qianjiang@baicells.com 於 2019年11月1日 週五 下午3:17寫道: You see, "eth1000" and "eth1001" are assigned to datanetwork. [sysadmin@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@gmail.com 发送时间:2019年11月1日(星期五) 14:46 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@baicells.com 於 2019年11月1日 週五 下午2:35寫道: Hi, Ezpeer
Below is the log of "system interface-datanetwork-list controller-0", any problem?
[sysadmin@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@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@gmail.com 发送时间:2019年11月1日(星期五) 10:10 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@lists.starlingx.io> 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Dear QianJiang,
Your command is incorrect.
Example: [sysadmin@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@controller-0 ~(keystone_admin)]$
钱江 qianjiang@baicells.com 於 2019年10月31日 週四 下午7:23寫道: Hi, Ezpeer
I checked and yes,
[sysadmin@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@gmail.com 发送时间:2019年10月31日(星期四) 18:12 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@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@intel.com 发送时间:2019年10月31日(星期四) 16:42 收件人:钱江 qianjiang@baicells.com; starlingx-discuss < starlingx-discuss@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@baicells.com *Sent:* Thursday, October 31, 2019 4:12 PM *To:* Sun, Austin austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@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@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@intel.com
发送时间:2019年10月31日(星期四) 15:23
收件人:钱江 qianjiang@baicells.com; starlingx-discuss < starlingx-discuss@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@baicells.com *Sent:* Thursday, October 31, 2019 2:42 PM *To:* starlingx-discuss starlingx-discuss@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@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
Dear Qianjiang,
*system host-lock ${COMPUTE}
#If the interface has been bound to other datanetwork, need to remove the binding. system interface-datanetwork-list ${COMPUTE} system interface-datanetwork-remove ${PHYSNETDATA0UUID}*
#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 system host-unlock ${COMPUTE}
Ezpeer Chen ezpeerchen@gmail.com 於 2019年11月4日 週一 上午11:31寫道:
Dear Qianjiang,
My Example:
[sysadmin@controller-0 ~(keystone_admin)]$ system host-if-list controller-0
+--------------------------------------+-----------+-----------------+----------+------+----------------+------+------+-----------------------+ | uuid | name | class | type | vlan | ports | uses | used | attributes | | | | | | id | | i/f | by | | | | | | | | | | i/f | |
+--------------------------------------+-----------+-----------------+----------+------+----------------+------+------+-----------------------+ | 5e6ab3c1-ff01-4ca9-b8c3-98984c9ab403 | lo | platform | virtual | None | [] | [] | [] | MTU=1500 | | a68ceee4-77d7-4ec1-a5f1-bf667b7fa7f7 | enp2s0 | platform | ethernet | None | [u'enp2s0'] | [] | [] | MTU=1500 | | e0b545f0-dc0d-4c6c-9327-0008191cf3e6 | enp3s0 | data | ethernet | None | [u'enp3s0'] | [] | [] | MTU=1500,accelerated= | | | | | | | | | | True | | | | | | | | | | | | fe0be665-6e66-4113-99b3-164374e40b17 | enp98s0f1 | pci-passthrough | ethernet | None | [u'enp98s0f1'] | [] | [] | MTU=1500 | | ffb39ada-ef0a-4a19-87df-9998c5a23e11 | enp98s0f0 | pci-sriov | ethernet | None | [u'enp98s0f0'] | [] | [] | MTU=1500 |
+--------------------------------------+-----------+-----------------+----------+------+----------------+------+------+-----------------------+ [sysadmin@controller-0 ~(keystone_admin)]$
[sysadmin@controller-0 ~(keystone_admin)]$ system datanetwork-list
+--------------------------------------+---------------+--------------+------+ | uuid | name | network_type | mtu |
+--------------------------------------+---------------+--------------+------+ | b42f45d1-a474-47cc-b603-8c3b4e50189b | phy-flat | flat | 1500 | | a772f2ee-4f45-4593-9aa2-e9d007b3ebb0 | physnet-pci | flat | 1500 | | 322d1ff6-7446-48b3-810f-47cdde3d8b4a | physnet-sriov | flat | 1500 |
+--------------------------------------+---------------+--------------+------+
[sysadmin@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 |
+--------------+--------------------------------------+-----------+------------------+
=============================================================================
controller-0:~$ export OS_CLOUD=openstack_helm controller-0:~$ ADMINID=`openstack project list | grep admin | awk '{print $2}'` controller-0:~$ openstack network create --project ${ADMINID} --provider-network-type=flat --provider-physical-network=phy-flat netflat
+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Field | Value
|
+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | admin_state_up | UP
|
| availability_zone_hints |
|
| availability_zones |
|
| created_at | 2019-11-04T03:22:36Z
|
| description |
|
| dns_domain | None
|
| id | 4916450b-f018-4065-ac7a-bfd1475afe17
|
| ipv4_address_scope | None
|
| ipv6_address_scope | None
|
| is_default | False
|
| is_vlan_transparent | False
|
| location | Munch({'project': Munch({'domain_name': 'default', 'domain_id': None, 'name': 'admin', 'id': u'9be757c8e5464416b41cd1bcdaca990e'}), 'cloud': 'openstack_helm', 'region_name': 'RegionOne', 'zone': None}) | | mtu | 1500
|
| name | netflat
|
| port_security_enabled | True
|
| project_id | 9be757c8e5464416b41cd1bcdaca990e
|
| provider:network_type | flat
|
| provider:physical_network | phy-flat
|
| provider:segmentation_id | None
|
| qos_policy_id | None
|
| revision_number | 1
|
| router:external | Internal
|
| segments | None
|
| shared | False
|
| status | ACTIVE
|
| subnets |
|
| tags |
|
| updated_at | 2019-11-04T03:22:36Z
|
+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ controller-0:~$
钱江 qianjiang@baicells.com 於 2019年11月4日 週一 上午11:04寫道:
Hi, Ezpeer Sure, did interface-datanetwork-assign for phy-flat, see,
[sysadmin@controller-0 ~(keystone_admin)]$ system interface-datanetwork-list controller-0
+--------------+--------------------------------------+--------+------------------+ | hostname | uuid | ifname | datanetwork_name |
+--------------+--------------------------------------+--------+------------------+ | controller-0 | 37e7595c-3d52-4fe0-bb26-12297155b87d | data0 | phy-flat | | controller-0 | 5a6763ae-0720-44b4-aa30-645974d9daa8 | data1 | physnet1 |
+--------------+--------------------------------------+--------+------------------+
[sysadmin@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@gmail.com 发送时间:2019年11月4日(星期一) 10:23 收件人:钱江 qianjiang@baicells.com 抄 送:starlingx-discuss starlingx-discuss@lists.starlingx.io 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Dear Qianjiang,
From document:
#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 system host-unlock ${COMPUTE}
Do you do interface-datanetwork-assign for phy-flat?
Check interface-datanetwork-list first.
Example: [sysadmin@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@controller-0 ~(keystone_admin)]$
钱江 qianjiang@baicells.com 於 2019年11月1日 週五 下午5:31寫道: Hi, Ezpeer Just follow https://wiki.openstack.org/wiki/StarlingX/Networking --- Configure the flat network.
controller-0:~$ export OS_CLOUD=openstack_helm controller-0:~$ ADMINID=`openstack project list | grep admin | awk '{print $2}'` controller-0:~$ echo $ADMINID 95794c0fbfe9427b908eedb823aba318 controller-0:~$ openstack network create --project ${ADMINID} --provider-network-type=flat --provider-physical-network=phy-flat netflat Error while executing command: BadRequestException: 400, Invalid input for operation: physical_network 'phy-flat' unknown for flat provider network. controller-0:~$
and,
[sysadmin@controller-0 ~(keystone_admin)]$ system datanetwork-list +--------------------------------------+----------+--------------+------+ | uuid | name | network_type | mtu | +--------------------------------------+----------+--------------+------+ | 7b999f8b-05fe-4c44-9742-907e4551d9b7 | enp2s1 | flat | 1500 | | 5c8391a3-be90-48dd-8df5-2c1118af979a | phy-flat | flat | 1500 | | 15eeb861-6910-4254-bb79-847bcbd88ed7 | physnet0 | vlan | 1500 | | ad22c935-51a9-4823-9b55-f18df57e5982 | physnet1 | vlan | 1500 | +--------------------------------------+----------+--------------+------+
Please Best Regard
发件人:Ezpeer Chen ezpeerchen@gmail.com 发送时间:2019年11月1日(星期五) 16:31 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@lists.starlingx.io> 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
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.
- --provider-physical-network provider * = > incorrect
You don't have the physical network named as "provider".
Please follow the document's example. https://wiki.openstack.org/wiki/StarlingX/Networking
Ezpeer Chen ezpeerchen@gmail.com 於 2019年11月1日 週五 下午3:50寫道: Please follow the document's example. https://wiki.openstack.org/wiki/StarlingX/Networking
- Configure the flat network.
钱江 qianjiang@baicells.com 於 2019年11月1日 週五 下午3:36寫道: But, still failure use type vlan 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.
发件人:Ezpeer Chen ezpeerchen@gmail.com 发送时间:2019年11月1日(星期五) 15:27 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@lists.starlingx.io> 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Your data0 and data1 are vlan type datanetwork.
This is your configuration.
system datanetwork-add ${PHYSNET0} vlan system datanetwork-add ${PHYSNET1} vlan
钱江 qianjiang@baicells.com 於 2019年11月1日 週五 下午3:17寫道: You see, "eth1000" and "eth1001" are assigned to datanetwork. [sysadmin@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@gmail.com 发送时间:2019年11月1日(星期五) 14:46 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@baicells.com 於 2019年11月1日 週五 下午2:35寫道: Hi, Ezpeer
Below is the log of "system interface-datanetwork-list controller-0", any problem?
[sysadmin@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@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@gmail.com 发送时间:2019年11月1日(星期五) 10:10 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@lists.starlingx.io> 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Dear QianJiang,
Your command is incorrect.
Example: [sysadmin@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@controller-0 ~(keystone_admin)]$
钱江 qianjiang@baicells.com 於 2019年10月31日 週四 下午7:23寫道: Hi, Ezpeer
I checked and yes,
[sysadmin@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@gmail.com 发送时间:2019年10月31日(星期四) 18:12 收件人:钱江 qianjiang@baicells.com 抄 送:"Sun, Austin" austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@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@intel.com 发送时间:2019年10月31日(星期四) 16:42 收件人:钱江 qianjiang@baicells.com; starlingx-discuss < starlingx-discuss@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@baicells.com *Sent:* Thursday, October 31, 2019 4:12 PM *To:* Sun, Austin austin.sun@intel.com; starlingx-discuss < starlingx-discuss@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@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@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@intel.com
发送时间:2019年10月31日(星期四) 15:23
收件人:钱江 qianjiang@baicells.com; starlingx-discuss < starlingx-discuss@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@baicells.com *Sent:* Thursday, October 31, 2019 2:42 PM *To:* starlingx-discuss starlingx-discuss@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@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
Dear Qianjiang,
*system host-lock ${COMPUTE}
#If the interface has been bound to other datanetwork, need to remove the binding. system interface-datanetwork-list ${COMPUTE} system interface-datanetwork-remove ${PHYSNETDATA0UUID}*
#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 system host-unlock ${COMPUTE}
My Example:
[sysadmin@controller-0 ~(keystone_admin)]$ system host-if-list controller-0 +--------------------------------------+-----------+-----------------+----------+------+----------------+------+------+-----------------------+ | uuid | name | class | type | vlan | ports | uses | used | attributes | | | | | | id | | i/f | by | | | | | | | | | | i/f | | +--------------------------------------+-----------+-----------------+----------+------+----------------+------+------+-----------------------+ | 5e6ab3c1-ff01-4ca9-b8c3-98984c9ab403 | lo | platform | virtual | None | [] | [] | [] | MTU=1500 | | a68ceee4-77d7-4ec1-a5f1-bf667b7fa7f7 | enp2s0 | platform | ethernet | None | [u'enp2s0'] | [] | [] | MTU=1500 | | e0b545f0-dc0d-4c6c-9327-0008191cf3e6 | enp3s0 | data | ethernet | None | [u'enp3s0'] | [] | [] | MTU=1500,accelerated= | | | | | | | | | | True | | | | | | | | | | | | fe0be665-6e66-4113-99b3-164374e40b17 | enp98s0f1 | pci-passthrough | ethernet | None | [u'enp98s0f1'] | [] | [] | MTU=1500 | | ffb39ada-ef0a-4a19-87df-9998c5a23e11 | enp98s0f0 | pci-sriov | ethernet | None | [u'enp98s0f0'] | [] | [] | MTU=1500 | +--------------------------------------+-----------+-----------------+----------+------+----------------+------+------+-----------------------+ [sysadmin@controller-0 ~(keystone_admin)]$
[sysadmin@controller-0 ~(keystone_admin)]$ system datanetwork-list +--------------------------------------+---------------+--------------+------+ | uuid | name | network_type | mtu | +--------------------------------------+---------------+--------------+------+ | b42f45d1-a474-47cc-b603-8c3b4e50189b | phy-flat | flat | 1500 | | a772f2ee-4f45-4593-9aa2-e9d007b3ebb0 | physnet-pci | flat | 1500 | | 322d1ff6-7446-48b3-810f-47cdde3d8b4a | physnet-sriov | flat | 1500 | +--------------------------------------+---------------+--------------+------+
[sysadmin@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 | +--------------+--------------------------------------+-----------+------------------+
=============================================================================
controller-0:~$ export OS_CLOUD=openstack_helm controller-0:~$ ADMINID=`openstack project list | grep admin | awk '{print $2}'` controller-0:~$ openstack network create --project ${ADMINID} --provider-network-type=flat --provider-physical-network=phy-flat netflat +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Field | Value
| +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | admin_state_up | UP
| | availability_zone_hints |
| | availability_zones |
| | created_at | 2019-11-04T03:22:36Z
| | description |
| | dns_domain | None
| | id | 4916450b-f018-4065-ac7a-bfd1475afe17
| | ipv4_address_scope | None
| | ipv6_address_scope | None
| | is_default | False
| | is_vlan_transparent | False
| | location | Munch({'project': Munch({'domain_name': 'default', 'domain_id': None, 'name': 'admin', 'id': u'9be757c8e5464416b41cd1bcdaca990e'}), 'cloud': 'openstack_helm', 'region_name': 'RegionOne', 'zone': None}) | | mtu | 1500
| | name | netflat
| | port_security_enabled | True
| | project_id | 9be757c8e5464416b41cd1bcdaca990e
| | provider:network_type | flat
| | provider:physical_network | phy-flat
| | provider:segmentation_id | None
| | qos_policy_id | None
| | revision_number | 1
| | router:external | Internal
| | segments | None
| | shared | False
| | status | ACTIVE
| | subnets |
| | tags |
| | updated_at | 2019-11-04T03:22:36Z
| +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ controller-0:~$
Ezpeer,
Thanks for your support such a long time. This morning, when I retry creating network just as what I did before, It works. Yes, It works!!! But I completely have no idea what I modified, even I suspect I changed nothing but it goes well now. I can not reproduce this issue, I just decided continue my starlingx trip. Anyway, thanks a lot.
Best Regard
------------------------------------------------------------------ 发件人:Ezpeer Chen ezpeerchen@gmail.com 发送时间:2019年11月4日(星期一) 16:15 收件人:钱江 qianjiang@baicells.com 抄 送:starlingx-discuss starlingx-discuss@lists.starlingx.io 主 题:Re: [Starlingx-discuss] 回复:回复: openstack network creation failure: Flat provider networks are disabled
Dear Qianjiang,
system host-lock ${COMPUTE}
#If the interface has been bound to other datanetwork, need to remove the binding. system interface-datanetwork-list ${COMPUTE} system interface-datanetwork-remove ${PHYSNETDATA0UUID}
#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 system host-unlock ${COMPUTE} My Example:
[sysadmin@controller-0 ~(keystone_admin)]$ system host-if-list controller-0 +--------------------------------------+-----------+-----------------+----------+------+----------------+------+------+-----------------------+ | uuid | name | class | type | vlan | ports | uses | used | attributes | | | | | | id | | i/f | by | | | | | | | | | | i/f | | +--------------------------------------+-----------+-----------------+----------+------+----------------+------+------+-----------------------+ | 5e6ab3c1-ff01-4ca9-b8c3-98984c9ab403 | lo | platform | virtual | None | [] | [] | [] | MTU=1500 | | a68ceee4-77d7-4ec1-a5f1-bf667b7fa7f7 | enp2s0 | platform | ethernet | None | [u'enp2s0'] | [] | [] | MTU=1500 | | e0b545f0-dc0d-4c6c-9327-0008191cf3e6 | enp3s0 | data | ethernet | None | [u'enp3s0'] | [] | [] | MTU=1500,accelerated= | | | | | | | | | | True | | | | | | | | | | | | fe0be665-6e66-4113-99b3-164374e40b17 | enp98s0f1 | pci-passthrough | ethernet | None | [u'enp98s0f1'] | [] | [] | MTU=1500 | | ffb39ada-ef0a-4a19-87df-9998c5a23e11 | enp98s0f0 | pci-sriov | ethernet | None | [u'enp98s0f0'] | [] | [] | MTU=1500 | +--------------------------------------+-----------+-----------------+----------+------+----------------+------+------+-----------------------+ [sysadmin@controller-0 ~(keystone_admin)]$
[sysadmin@controller-0 ~(keystone_admin)]$ system datanetwork-list +--------------------------------------+---------------+--------------+------+ | uuid | name | network_type | mtu | +--------------------------------------+---------------+--------------+------+ | b42f45d1-a474-47cc-b603-8c3b4e50189b | phy-flat | flat | 1500 | | a772f2ee-4f45-4593-9aa2-e9d007b3ebb0 | physnet-pci | flat | 1500 | | 322d1ff6-7446-48b3-810f-47cdde3d8b4a | physnet-sriov | flat | 1500 | +--------------------------------------+---------------+--------------+------+
[sysadmin@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 | +--------------+--------------------------------------+-----------+------------------+
=============================================================================
controller-0:~$ export OS_CLOUD=openstack_helm controller-0:~$ ADMINID=`openstack project list | grep admin | awk '{print $2}'` controller-0:~$ openstack network create --project ${ADMINID} --provider-network-type=flat --provider-physical-network=phy-flat netflat +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Field | Value | +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | admin_state_up | UP | | availability_zone_hints | | | availability_zones | | | created_at | 2019-11-04T03:22:36Z | | description | | | dns_domain | None | | id | 4916450b-f018-4065-ac7a-bfd1475afe17 | | ipv4_address_scope | None | | ipv6_address_scope | None | | is_default | False | | is_vlan_transparent | False | | location | Munch({'project': Munch({'domain_name': 'default', 'domain_id': None, 'name': 'admin', 'id': u'9be757c8e5464416b41cd1bcdaca990e'}), 'cloud': 'openstack_helm', 'region_name': 'RegionOne', 'zone': None}) | | mtu | 1500 | | name | netflat | | port_security_enabled | True | | project_id | 9be757c8e5464416b41cd1bcdaca990e | | provider:network_type | flat | | provider:physical_network | phy-flat | | provider:segmentation_id | None | | qos_policy_id | None | | revision_number | 1 | | router:external | Internal | | segments | None | | shared | False | | status | ACTIVE | | subnets | | | tags | | | updated_at | 2019-11-04T03:22:36Z | +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ controller-0:~$
participants (4)
-
Ezpeer Chen
-
Sun, Austin
-
Veldanda, Venkata
-
钱江