我正在尝试以非root用户身份安装Devstack,但会收到错误。
日志目录仅包含损坏的符号链接stack.sh.log和stack.sh.log.summary(指向不存在的文件)。
我使用了示例local.conf - 唯一的变化就是我定义了$ DEST。
操作系统:RHEL 6.6
STDOUT / ERR:
/home/john/scripts/openstack/devstack/functions-common: line 68: conditional binary operator expected
/home/john/scripts/openstack/devstack/functions-common: line 68: syntax error near `"$1"'
/home/john/scripts/openstack/devstack/functions-common: line 68: ` [[ -v "$1" ]]'
./stack.sh: line 119: GetDistro: command not found
/home/john/scripts/openstack/devstack/functions-common: line 68: conditional binary operator expected
/home/john/scripts/openstack/devstack/functions-common: line 68: syntax error near `"$1"'
/home/john/scripts/openstack/devstack/functions-common: line 68: ` [[ -v "$1" ]]'
/home/john/scripts/openstack/devstack/stackrc: line 48: isset: command not found
/home/john/scripts/openstack/devstack/.localrc.auto: line 84: enable_service: command not found
/home/john/scripts/openstack/devstack/stackrc: line 498: is_package_installed: command not found
/home/john/scripts/openstack/devstack/stackrc: line 666: get_default_host_ip: command not found
/home/john/scripts/openstack/devstack/stackrc: line 668: die: command not found
WARNING: this script has not been tested on
./stack.sh: line 179: die: command not found
./stack.sh: line 197: export_proxy_variables: command not found
./stack.sh: line 202: disable_negated_services: command not found
./stack.sh: line 209: is_package_installed: command not found
./stack.sh: line 209: install_package: command not found
[sudo] password for john:
./stack.sh: line 231: is_ubuntu: command not found
./stack.sh: line 238: is_fedora: command not found
./stack.sh: line 301: safe_chown: command not found
./stack.sh: line 302: safe_chmod: command not found
./stack.sh: line 310: safe_chown: command not found
Traceback (most recent call last):
File "/home/john/scripts/openstack/devstack/tools/outfilter.py", line 24, in <module>
import argparse
ImportError: No module named argparse
答案 0 :(得分:0)
首先,使用yum修复缺少的模块: yum install python-argparse.noarch
此外,您还需要运行./unstack.sh来清除日志。
我还是遇到了这个问题,所以当安装了python-zaqarclient和python-openstackclient时,进一步的调试会让我遇到问题。作为一个快速解决方案,我删除了python-zaqarclient:
sudo pip uninstall python-zaqarclient
然后 - apt-get升级 - apt-get dist-upgrade - ./stack.sh
希望这有帮助!