我已按照此链接在我的虚拟机上部署 devstack。当我在 VM 中执行 ./stack.sh 脚本时,一段时间后出现以下错误:
keystone endpoint-create: error: argument --service-id/--service_id: expected one argument
++ failed
++ local r=2
+++ jobs -p
++ kill
++ set +o xtrace
脚本终止时不提供任何信息,例如访问 Horizon 的主机和运行脚本所用的时间。我使用 NAT 作为我的虚拟机网络配置,因为我无法使用桥接模式连接到我的网络。
尝试从 Web 浏览器访问 Horizon 时没有收到任何响应。当我尝试执行 stack.sh(前面没有 ./unstack.sh)时,我得到堆栈已经在运行的错误。请注意,我在代理服务器后面,这分别是我在主机和来宾机器上的网络配置:
主机:
eth0 Link encap:Ethernet HWaddr d4:be:d9:7f:b3:6f
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)
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:16436 Metric:1
RX packets:110688 errors:0 dropped:0 overruns:0 frame:0
TX packets:110688 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6738439 (6.7 MB) TX bytes:6738439 (6.7 MB)
vmnet1 Link encap:Ethernet HWaddr 00:50:56:c0:00:01
inet addr:172.16.85.1 Bcast:172.16.85.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:83 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
vmnet8 Link encap:Ethernet HWaddr 00:50:56:c0:00:08
inet addr:172.16.145.1 Bcast:172.16.145.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:602 errors:0 dropped:0 overruns:0 frame:0
TX packets:82 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr 60:36:dd:3e:99:e6
inet addr:10.99.19.21 Bcast:10.99.19.255 Mask:255.255.252.0
inet6 addr: fe80::6236:ddff:fe3e:99e6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:215802 errors:0 dropped:0 overruns:0 frame:0
TX packets:222520 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:245659430 (245.6 MB) TX bytes:30196677 (30.1 MB)
客机(桥):
eth0 Link encap:Ethernet HWaddr 00:0c:29:8a:c9:d4
inet addr:172.16.145.128 Bcast:172.16.145.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe8a:c9d4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1965 errors:0 dropped:0 overruns:0 frame:0
TX packets:1508 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2229981 (2.2 MB) TX bytes:160543 (160.5 KB)
Interrupt:19 Base address:0x2024
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:16436 Metric:1
RX packets:485 errors:0 dropped:0 overruns:0 frame:0
TX packets:485 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:36153 (36.1 KB) TX bytes:36153 (36.1 KB)
virbr0 Link encap:Ethernet HWaddr 2e:32:9b:c3:f4:12
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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
我的 localrc 文件配置如下:
FLOATING_RANGE=192.168.1.224/27
FIXED_RANGE=10.11.12.0/24
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=eth0
ADMIN_PASSWORD=password
MYSQL_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=tokentoken
请注意,我在代理服务器后面。谷歌搜索这个错误返回了一些页面,这些页面表明可以通过使用 devstack 机器的主 IP 地址设置“no_proxy”变量来解决这个问题。
页面链接:
https://bugs.launchpad.net/devstack/+bug/1015705 https://answers.launchpad.net/devstack/+question/219539
我不知道在哪里添加这些设置或如何解决整个梯形失真错误。非常感谢任何帮助。提前致谢。