Ask Your Question
0

devstack installation error on CentOs 7

asked 2014-07-16 08:12:37 -0500

Vysakhv90 gravatar image

updated 2014-07-16 08:13:03 -0500

I am novice to Openstack and was trying to install Devstack for my own test purpose. I tried installing Devstack after cloning the repository, as stack user (since root can't install devstack). but continously I recieve an error as shown below:

[root@localhost ~]# cd /root/devstack/
[root@localhost devstack]# su stack
[stack@localhost devstack]$ ./stack.sh
./stack.sh: line 41: /root/devstack/functions: Permission denied
./stack.sh: line 44: /root/devstack/lib/config: Permission denied
./stack.sh: line 49: GetDistro: command not found
 rm: cannot remove '/root/devstack/.localrc.auto': Permission denied
./stack.sh: line 98: log_error: command not found
./stack.sh: line 100: /root/devstack/stackrc: Permission denied
./stack.sh: line 107: export_proxy_variables: command not found
./stack.sh: line 125: log_error: command not found
./stack.sh: line 131: log_error: command not found
./stack.sh: line 135: /root/devstack/lib/database: Permission denied
./stack.sh: line 136: /root/devstack/lib/rpc_backend: Permission denied
./stack.sh: line 141: disable_negated_services: command not found
WARNING: this script has not been tested on
./stack.sh: line 148: die: command not found
./stack.sh: line 162: check_rpc_backend: command not found
./stack.sh: line 174: trueorfalse: command not found
./stack.sh: line 194: is_package_installed: command not found
./stack.sh: line 194: install_package: command not found
sudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 1 <<<
sudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 2 <<<
sudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 3 <<<
sudo: parse error in /etc/sudoers.d/50_stack_sh near line 1
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
sudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 1 <<<
sudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 2 <<<
sudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 3 <<<
sudo: parse error in /etc/sudoers.d/50_stack_sh near line 1
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
sudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 1 <<<
sudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 2 <<<
sudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 3 <<<
sudo: parse error in /etc/sudoers.d/50_stack_sh near line 1
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
sudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 1 <<<
sudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 2 <<<
sudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 3 <<<
sudo: parse error in /etc/sudoers.d/50_stack_sh near line 1
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
./stack.sh: line 215: is_ubuntu: command not found
sudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 1 <<<
sudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 2 <<<
sudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 3 <<<
sudo: parse error in /etc/sudoers.d/50_stack_sh near line 1
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
./stack.sh: line 269: safe_chown: command not found
./stack.sh: line 270 ...
(more)
edit retag flag offensive close merge delete

Comments

This link can help you

BrunoGraz gravatar imageBrunoGraz ( 2014-07-16 08:33:27 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-07-16 15:27:04 -0500

lyarwood gravatar image

Simply because you have checked the repo out as root and are now trying to run devstack as the stack user.

Checkout the repo again as the stack user within it's own home directory and try again.

edit flag offensive delete link more
0

answered 2015-03-30 07:58:03 -0500

anky gravatar image

updated 2015-03-30 07:58:58 -0500

come back to stack user then
[stack]$ git clone <url>
[stack]$ cd devstack
[stack]$ git checkout stable/juno
[stack]$ ./stack.sh
[stack]$ iptables --flush

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-07-16 08:12:37 -0500

Seen: 3,074 times

Last updated: Mar 30 '15