Cannot install devstack

asked 2016-12-15 23:52:34 -0500

BattleX100 gravatar image

updated 2016-12-18 08:31:44 -0500

Trying out openstack for the first time. The first step seems to be setting up devstack and I am not able to get through this. I have tried multiple guides and Linux distros but keep getting problems. On CentOS 6.8 here is the problem. Does anyone have any idea why is this happening?

[@prabal devstack]$ ./stack.sh
+ unset GREP_OPTIONS
+ unset LANG
+ unset LANGUAGE
+ LC_ALL=C
+ export LC_ALL
+ umask 022
+ PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/prabal/bin:/usr/local/sbin:/usr/sbin:/sbin
+++ dirname ./stack.sh
++ cd .
++ pwd
+ TOP_DIR=/devstack
+ NOUNSET=
+ [[ -n '' ]]
++ date +%s
+ DEVSTACK_START_TIME=1481867827
+ [[ -r /devstack/.stackenv ]]
+ FILES=/devstack/files
+ '[' '!' -d /devstack/files ']'
+ '[' '!' -d /devstack/inc ']'
+ '[' '!' -d /devstack/lib ']'
+ [[ '' == \y ]]
+ [[ 500 -eq 0 ]]
+ [[ -n '' ]]
+ [[ -e /home/prabal/.no-devstack ]]
+ LAST_SPINNER_PID=
+ source /devstack/functions
++ [[ -z '' ]]
++ declare -r _DEVSTACK_FUNCTIONS=1
++++ dirname /devstack/functions
+++ cd /devstack
+++ pwd
++ FUNC_DIR=/devstack
++ source /devstack/functions-common
++++ set +o
++++ grep xtrace
+++ _XTRACE_FUNCTIONS_COMMON='set -o xtrace'
+++ set +o xtrace
/devstack/functions-common: line 162: conditional binary operator expected
/devstack/functions-common: line 162: syntax error near `"$1"'
/devstack/functions-common: line 162: `    [[ -v "$1" ]]'
./stack.sh: line 150: GetDistro: command not found
/devstack/stackrc: line 52: isset: command not found
/devstack/stackrc: line 560: is_package_installed: command not found
/devstack/stackrc: line 760: get_default_host_ip: command not found
/devstack/stackrc: line 762: die: command not found
/devstack/stackrc: line 765: get_default_host_ip: command not found
WARNING: this script has not been tested on 
./stack.sh: line 198: die: command not found
./stack.sh: line 216: export_proxy_variables: command not found
./stack.sh: line 221: disable_negated_services: command not found
./stack.sh: line 228: is_package_installed: command not found
./stack.sh: line 228: install_package: command not found
./stack.sh: line 259: is_ubuntu: command not found
./stack.sh: line 319: safe_chown: command not found
./stack.sh: line 320: safe_chmod: command not found
mkdir: cannot create directory `/opt/stack/logs': Permission denied
./stack.sh: line 330: safe_chown: command not found
./stack.sh: line 352: is_fedora: command not found
./stack.sh: line 359: is_package_installed: command not found
./stack.sh: line 359: install_package: command not found
Linux prabal.guavus 2.6.32-642.11.1.el6.x86_64 #1 SMP Fri Nov 18 19:25:05 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
/devstack/lib/databases/mysql: line 20: is_fedora: command not found
/devstack/lib/database: line 46: is_service_enabled: command not found
/devstack/lib/database: line 46: is_service_enabled: command not found
./stack.sh: line 544: is_service_enabled: command not found
./stack.sh: line 552: fetch_plugins: command not found
stack.sh failed
Error on exit
./stack.sh: line 501: /opt/stack/devstack.subunit: Permission denied
[prabal@prabal devstack]$
edit retag flag offensive close merge delete

Comments

devstack is emphatically notthe first step of setting up OpenStack. There are many ways of deploying OpenStack; as the name implies, devstack is for developers, namely to develop and test their OpenStack software. See http://www.openstack.org/software/start/ for installation options.

Bernd Bausch gravatar imageBernd Bausch ( 2016-12-18 08:37:05 -0500 )edit

Regarding your problem, recent versions of devstack are not tested on Centos 6. Use 7. Also, it would be helpful to see your local.conf.

Bernd Bausch gravatar imageBernd Bausch ( 2016-12-18 08:38:52 -0500 )edit