我运行./stack.sh
在控制器节点(虚拟机ubuntu 14.04 lts)上安装devstack
以进行多节点实验室设置。脚本失败,相同的日志如下:
2017-02-16 09:50:14.632 | +[3242m./stack.sh:main:1349 (B[m [[ -x /home/stack/devstack/local.sh ]]
2017-02-16 09:50:14.647 | +[3242m./stack.sh:main:1350 (B[m echo 'Running user script /home/stack/devstack/local.sh'
2017-02-16 09:50:14.647 | Running user script /home/stack/devstack/local.sh
2017-02-16 09:50:14.661 | +[3242m./stack.sh:main:1351 (B[m /home/stack/devstack/local.sh
2017-02-16 09:50:14.666 | /home/stack/devstack/local.sh: line 11: /opt/stack/nova/bin/nova-manage: No such file or directory
2017-02-16 09:50:14.667 | /home/stack/devstack/local.sh: line 11: /opt/stack/nova/bin/nova-manage: No such file or directory
2017-02-16 09:50:14.667 | /home/stack/devstack/local.sh: line 11: /opt/stack/nova/bin/nova-manage: No such file or directory
2017-02-16 09:50:14.668 | /home/stack/devstack/local.sh: line 11: /opt/stack/nova/bin/nova-manage: No such file or directory
2017-02-16 09:50:14.669 | /home/stack/devstack/local.sh: line 11: /opt/stack/nova/bin/nova-manage: No such file or directory
2017-02-16 09:50:14.672 | /home/stack/devstack/local.sh: line 11: /opt/stack/nova/bin/nova-manage: No such file or directory
2017-02-16 09:50:14.672 | /home/stack/devstack/local.sh: line 11: /opt/stack/nova/bin/nova-manage: No such file or directory
2017-02-16 09:50:14.673 | /home/stack/devstack/local.sh: line 11: /opt/stack/nova/bin/nova-manage: No such file or directory
2017-02-16 09:50:14.674 | /home/stack/devstack/local.sh: line 11: /opt/stack/nova/bin/nova-manage: No such file or directory
2017-02-16 09:50:15.057 | WARNING: setting legacy OS_TENANT_NAME to support cli tools.
2017-02-16 09:50:15.067 | WARNING: setting legacy OS_TENANT_NAME to support cli tools.
2017-02-16 09:50:28.646 | +----------------------------+----------+
2017-02-16 09:50:28.646 | | Field | Value |
2017-02-16 09:50:28.646 | +----------------------------+----------+
2017-02-16 09:50:28.646 | | OS-FLV-DISABLED:disabled | False |
2017-02-16 09:50:28.646 | | OS-FLV-EXT-DATA:ephemeral | 0 |
2017-02-16 09:50:28.647 | | disk | 0 |
2017-02-16 09:50:28.647 | | id | 6 |
2017-02-16 09:50:28.647 | | name | m1.micro |
2017-02-16 09:50:28.647 | | os-flavor-access:is_public | True |
2017-02-16 09:50:28.647 | | properties | |
2017-02-16 09:50:28.647 | | ram | 128 |
2017-02-16 09:50:28.647 | | rxtx_factor | 1.0 |
2017-02-16 09:50:28.647 | | swap | |
2017-02-16 09:50:28.647 | | vcpus | 1 |
2017-02-16 09:50:28.647 | +----------------------------+----------+
2017-02-16 09:50:34.052 | More than one SecurityGroup exists with the name 'default'.
2017-02-16 09:50:36.188 | More than one SecurityGroup exists with the name 'default'.
2017-02-16 09:50:36.285 | ++[3242m./stack.sh:main:1351 (B[m err_trap
2017-02-16 09:50:36.328 | ++[3242m./stack.sh:err_trap:517 (B[m local r=1
2017-02-16 09:50:36.405 | stack.sh failed: full log in /opt/stack/logs/stack.sh.log.2017-02-16-150336
2017-02-16 09:50:36.408 | Error on exit
名称为default的多个安全组存在,但在运行nova secgroup-list时,我得到以下内容:
stack@user-VirtualBox:~/devstack$ nova secgroup-list
/usr/local/lib/python2.7/dist-packages/novaclient/client.py:278: UserWarning: The 'tenant_id' argument is deprecated in Ocata and its use may result in errors in future releases. As 'project_id' is provided, the 'tenant_id' argument will be ignored.
warnings.warn(msg)
WARNING: Command secgroup-list is deprecated and will be removed after Nova 15.0.0 is released. Use python-neutronclient or openstackclient instead.
+--------------------------------------+---------+------------------------+
| Id | Name | Description |
+--------------------------------------+---------+------------------------+
| de21f869-215e-46c0-9e36-28da003c2d7a | default | Default security group |
+--------------------------------------+---------+------------------------+
我需要在此vm的控制器设置中安装devstack
,此错误导致./stack.sh
失败。
答案 0 :(得分:0)
问题已经解决了。当./stack.sh调用local.sh为默认安全组创建规则时,会发生此错误。由于每个租户都存在默认安全组,因此发生此错误。 解决方案是在local.sh中注释掉处理这些规则创建的部分,然后通过提及安全组的id而不是名称来明确地创建它们以避免任何冲突。