openstack - stack.sh fails on syntax errors -


i trying install devstack non-root user, getting errors.

the log directory contains broken symbolic links stack.sh.log , stack.sh.log.summary (pointing nonexistent files).

i've used sample local.conf - change defined $dest.

os: 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: 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 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 

first, fix missing module using yum: yum install python-argparse.noarch

also need run ./unstack.sh clear logs.

i had still faced issue, further debugging lead me issue when both python-zaqarclient , python-openstackclient installed. quick solution removed python-zaqarclient:

sudo pip uninstall python-zaqarclient

then - apt-get upgrade - apt-get dist-upgrade - ./stack.sh

hope helps!


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -