Ask Your Question

Help me install devstack in linux 16.04

asked 2016-09-17 10:55:32 -0500

karuna gravatar image

Here are my steps:-

  1. add new user named stack – This stack user is the adminstrator of the openstack services.

    To add new user – run the command as root user.

    adduser stack
  2. Logout the system and login as stack user

  3. Run the command (this installs git repo package)

    sudo apt-get install git
  4. Run the command (This clones updatesd version of dev-stack (which is binary auto-installer package of Openstack)

    git clone
    ls (this shows a folder named devstack)
    cd devstack (enter into the folder)
  5. create a file called local.conf. To do this run the command, nano local.conf

  6. In the file, make the following entry

  7. Save this file

  8. Run the command (This installs Opentack)


When I ran "./", I get the following error:-

+functions-common:git_clone:541 [[ False = \T\r\u\e ]] +functions-common:git_clone:567 cd /opt/stack/neutron +functions-common:git_clone:568 git show --oneline +functions-common:git_clone:568 head -1 fatal: your current branch 'master' does not have any commits yet +functions-common:git_clone:569 cd /home/stack/openstack/devstack +lib/neutron-legacy:install_mutnauq:408 setup_develop /opt/stack/neutron +inc/python:setup_develop:271 local project_dir=/opt/stack/neutron +inc/python:setup_develop:272 local extras= +inc/python:setup_develop:273 _setup_package_with_constraints_edit /opt/stack/neutron -e +inc/python:_setup_package_with_constraints_edit:303 local project_dir=/opt/stack/neutron +inc/python:_setup_package_with_constraints_edit:304 local flags=-e +inc/python:_setup_package_with_constraints_edit:305 local extras= ++inc/python:_setup_package_with_constraints_edit:312 cd /opt/stack/neutron ++inc/python:_setup_package_with_constraints_edit:312 pwd +inc/python:_setup_package_with_constraints_edit:312 project_dir=/opt/stack/neutron +inc/python:_setup_package_with_constraints_edit:314 '[' -n /opt/stack/requirements ']' +inc/python:_setup_package_with_constraints_edit:316 local name ++inc/python:_setup_package_with_constraints_edit:317 awk '/^name.*=/ {print $3}' /opt/stack/neutron/setup.cfg awk: fatal: cannot open file `/opt/stack/neutron/setup.cfg' for reading (No such file or directory) +inc/python:_setup_package_with_constraints_edit:317 name= +inc/python:_setup_package_with_constraints_edit:1 exit_trap +./ local r=2 ++./ jobs -p +./ jobs= +./ [[ -n '' ]] +./ kill_spinner +./ '[' '!' -z '' ']' +./ [[ 2 -ne 0 ]] +./ echo 'Error on exit' Error on exit +./ generate-subunit 1474126342 140 fail +./ [[ -z /opt/stack/logs ]] +./ /home/stack/openstack/devstack/tools/ -d /opt/stack/logs World dumping... see /opt/stack/logs/worlddump-2016-09-17-153442.txt for details +./ exit 2

Following are my queries/clarifications:-

  • Currently I am using master branchon ( Is it correct ? or any issues in master branch ?
  • Do I need to any other branch or tag for success installation ?

If you anyone got success in installing openstack recently. Kindly provide me step by step procedure or any recorded videos ?

edit retag flag offensive close merge delete


why not use the steps here ?

darragh-oreilly gravatar imagedarragh-oreilly ( 2016-09-18 02:16:06 -0500 )edit

I still get same error after following your step in the above link.

karuna gravatar imagekaruna ( 2016-09-18 03:04:44 -0500 )edit

1 answer

Sort by » oldest newest most voted

answered 2016-09-18 06:57:09 -0500

CloudEnthusiast gravatar image


Follow below steps :

sudo su - 
adduser stack 
echo "stack ALL=(ALL) NOPASSWD: ALL"  >> /etc/sudoers 

Reboot your VM

su stack 
sudo apt-get install git -y 
git clone 
cd devstack

create your local.conf and run

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-09-17 10:55:32 -0500

Seen: 3,093 times

Last updated: Sep 18 '16