无法在openstack上创建mgmt网络。
尝试按照链接中的给定指令在openstack(OCATA版本)上创建“mgmt”网络 (替换为ocata版本命令关键字)
我得到了以下回复,没有太多关于错误的信息
stack@kanine-openstack:~/devstack/accrc/admin$ openstack network create --provider-network-type VLAN --provider-physical-network physnet_enp0s8 --provider-segment 7777 --share mgmt
Ignoring domain related config project_domain_id because identity API version is 2.0
Ignoring domain related config user_domain_id because identity API version is 2.0
Ignoring domain related config project_domain_id because identity API version is 2.0
Ignoring domain related config user_domain_id because identity API version is 2.0
Ignoring domain related config project_domain_id because identity API version is 2.0
Ignoring domain related config user_domain_id because identity API version is 2.0
Ignoring domain related config project_domain_id because identity API version is 2.0
Ignoring domain related config user_domain_id because identity API version is 2.0
Error while executing command: Bad Request
我在虚拟盒子上安装了ubuntu,请找到界面
~$ ifconfig
br-ex Link encap:Ethernet HWaddr 26:f9:df:8b:bb:49
inet addr:172.24.4.1 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: 2001:db8::2/64 Scope:Global
inet6 addr: fe80::24f9:dfff:fe8b:bb49/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22 errors:0 dropped:0 overruns:0 frame:0
TX packets:79 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:972 (972.0 B) TX bytes:10796 (10.7 KB)
enp0s3 Link encap:Ethernet HWaddr 08:00:27:76:8f:15
inet addr:10.0.15.112 Bcast:10.0.15.255 Mask:255.255.255.0
inet6 addr: fe80::5bf2:65ab:b422:817b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:48615 errors:0 dropped:1 overruns:0 frame:0
TX packets:43919 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6642829 (6.6 MB) TX bytes:10149498 (10.1 MB)
enp0s8 Link encap:Ethernet HWaddr 08:00:27:f4:3d:0f
inet addr:10.0.10.5 Bcast:10.0.10.255 Mask:255.255.255.0
inet6 addr: fe80::2a7:9404:baf9:ea12/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23780 errors:0 dropped:0 overruns:0 frame:0
TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2539893 (2.5 MB) TX bytes:10510 (10.5 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:320077 errors:0 dropped:0 overruns:0 frame:0
TX packets:320077 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:164795161 (164.7 MB) TX bytes:164795161 (164.7 MB)
virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
请帮我创建mgmt网络。
答案 0 :(得分:0)
此错误消息导致keystone上的不同API版本。 如果你的API版本是2?它不正确,域功能从版本3开始。
因此您可以按如下方式更改身份验证网址
export OS_AUTH_URL=http://YOUR_KEYSTONE_IP:5000/v3
并且中子网络不作为以太网设备出现。 您将当前网络列表检查为以下命令,
$ openstack network list
共享类型网络是必需的管理员授权。