Ask Your Question
1

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 https://git.openstack.org/openstack-dev/devstack
    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

           [[local|localrc]]
         FLOATING_RANGE=192.168.1.224/27
         FIXED_RANGE=10.11.11.0/24
         FIXED_NETWORK_SIZE=256
         FLAT_INTERFACE=eth0
         ADMIN_PASSWORD=root
         DATABASE_PASSWORD=root
         RABBIT_PASSWORD=root
         SERVICE_PASSWORD=root
         SERVICE_TOCKEN=root
    
  7. Save this file

  8. Run the command (This installs Opentack)

     ./stack.sh
    

When I ran "./stack.sh", 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 +./stack.sh:exit_trap:487 local r=2 ++./stack.sh:exit_trap:488 jobs -p +./stack.sh:exit_trap:488 jobs= +./stack.sh:exit_trap:491 [[ -n '' ]] +./stack.sh:exit_trap:497 kill_spinner +./stack.sh:kill_spinner:383 '[' '!' -z '' ']' +./stack.sh:exit_trap:499 [[ 2 -ne 0 ]] +./stack.sh:exit_trap:500 echo 'Error on exit' Error on exit +./stack.sh:exit_trap:501 generate-subunit 1474126342 140 fail +./stack.sh:exit_trap:502 [[ -z /opt/stack/logs ]] +./stack.sh:exit_trap:505 /home/stack/openstack/devstack/tools/worlddump.py -d /opt/stack/logs World dumping... see /opt/stack/logs/worlddump-2016-09-17-153442.txt for details +./stack.sh:exit_trap:511 exit 2

Following are my queries/clarifications:-

  • Currently I am using master branchon https://git.openstack.org/openstack-dev/devstack (https://git.openstack.org/openstack-d...). 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

Comments

why not use the steps here http://docs.openstack.org/developer/d... ?

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
1

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

CloudEnthusiast gravatar image

Hi,

Follow below steps :

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

Reboot your VM

su stack 
sudo apt-get install git -y 
git clone https://github.com/openstack-dev/devstack.git 
cd devstack

create your local.conf and run stack.sh

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: 2016-09-17 10:55:32 -0500

Seen: 2,174 times

Last updated: Sep 18 '16