Open Stack Installation On Ubuntu 14.04? [duplicate]

Can any one provide step by step installation of Open stack installation on Ubuntu 14.04?

Or

Is there any script like http://openstack.redhat.com/Quickstart for auto installation. I have tried devstack on Ubuntu but it didn't work ( Credentials Not Working ).

Dumidu answer did work (Installation) but there is no username or password for the installation, so there is nothing to check its working or not.

Is there any way to install Openstack on Ubuntu?


You can use devstack to deploy openstack on your machine. devstack is used for development and is probably the fastest and easiest way to deploy openstack. We first setup the environment to deploy openstack and then install openstack using devstack.

Preparing the environment:

  1. Deploy a virtual machine with ubuntu 14.04 as the guest OS on your ubuntu 14.04. You can use various hypervisors for deploying the virtual machine, I have used VMware Player. For instructions on how to deploy a virtual machine using VMware Player, refer to this tutorial:

    • VMware Player- Installing and deploying virtual machines on ubuntu
  2. Next, after you have deployed the virtual machine and it is ready to use, you need to clone the devstack script from the github repositories, so first install git using the terminal(press Ctrl+Alt+t together) and type:

    sudo apt-get install git
    

    and enter your password and wait for the installation to complete. Now get the devstack script using the command below:

    git clone https://github.com/openstack-dev/devstack.git
    

    This will take sometime depending upon your connection speed.

Installing openstack:

  1. If the script and other files downloaded successfully, you will get a directory devstack in the folder you executed this command. Go into the directory and type:

    cd devstack
    

    and then execute the script that fetches and install packages required by openstack using:

    ./stack.sh
    
  2. You will be asked to set the password for administration and a few packages like mysql, rabbitmq, etc(six times in all); you could keep the passwords short and simple and may be even same if you don't wish to remember a different one for all. This will take roughly 2 hours to complete, again depending upon your connection speed (I assume it is around 200kbps). You can read about the script here. The script will download and install and start various services and packages.

  3. The output of the execution explains what scripts are being downloaded and other installation output; this will be useful to troubleshoot if you end up with an unsuccessful installation. If the script completes execution successfully, you will the output ending with the following lines:

    Horizon is now available at http://10.1.119.60/
    Keystone is serving at http://10.1.119.60:5000/v2.0/
    Examples on using novaclient command line is in exercise.sh
    The default users are: admin and demo
    The password: password
    This is your host ip: 10.1.119.60
    stack.sh completed in 257 seconds.
    

    If you don't get this, the script encountered some errors and they need to be sorted out first.*

  4. If the installation is successful, you can open a browser and type the URL as given in the output message:

    This is your host ip: xxx.xxx.xxx.xxx

    as shown above. **

  5. You will get a page asking you the username and password. The username is admin and the password is what you entered when you installed openstack(the first of the six passwords). If you don't remember, open your localrc file in your devstack folder and check (It either be named localrc, or .localrc or local.conf).

  6. If you ever happen to restart your machine or the virtual machine or even log off, you may need to restart openstack services since all of them are not started when the machine is booted. To restart the services, executed the following command on a terminal when you are in the devstack folder:

    ./rejoin-stack.sh
    

    and if completed successfully, all openstack services will be started and you should be able to access using the same username and password.

  7. The installation above does not install neutron(the networking component), to install neutron, add the following to the end of your localrc file:

    disable_service n-net
    enable_service q-svc
    enable_service q-agt
    enable_service q-dhcp
    enable_service q-l3
    enable_service q-meta
    enable_service neutron
    #Optional, to enable tempest configuration as part of devstack
    enable_service tempest
    

    and then again execute ./stack.sh.

Notes:

  • Though you can install openstack on a bare-machine(not a virtual machine), it is recommended to install it on a virtual machine for security and for ease of use. The devstack installation removes your administrative password(rather does not ask for a password even for privileged commands). Also, you can create clones of your installtion and then even if you mess up your installation, you can discard the messed up one and then revert back to the latest working image of the virtual machine.

  • It is better to install openstack on a new, clean virtual machine having an LTS OS on it, since support and testing is usually done on LTS, you will find more response on channels and forums if it is on an LTS version. Also the new virtual machine ensures there are no package version conflicts and helps in easing out the installation.

  • If you are behind a proxy, you may need to add them in the virtual machine as environment variables in your /etc/environment file if you want to add it globally or in your ~/.bashrc file if you want it locally and also in /etc/apt/apt.conf. You may also need to tweak the script a little if git is not able to fetch packages even after adding http and https proxies.

*It is difficult to give a canonical solution to all those errors since a lot of ground needs to be covered and is nearly impossible to state them in one solution. After you have resolved the error that caused the script to fail, you need to restart the script using ./stack.sh when you are in devstack folder.

**The reason you were getting the error when you logged in was because the installation was not successful or because you restarted, you need to restart openstack services if you restarted, if the installation failed, you need to troubleshoot the errors first and then restart the script.


I am not sure, I never try it but see if this work for you

# apt-get install python-software-properties
# add-apt-repository cloud-archive:icehouse
# apt-get update
# apt-get dist-upgrade
# apt-get install linux-image-generic-lts-saucy linux-headers-generic-lts-saucy
# reboot

Reference: http://docs.openstack.org/trunk/install-guide/install/apt/content/basics-packages.html