Bash script to install openstack-Mitaka in ubuntu 14.04LTS

yri3usjo0rhu5trwafx0 (1)

 

OpenStack-mitaka (All-in-one node using single NIC) for Ubuntu 14.04LTS

Download the script using the below command:
git clone https://github.com/vinothkumarselvaraj/openstack-mitaka.git

cd openstack-mitaka/

Script Usage: bash install.bash –ip_address [Your server Ip] –interface_name [interface name]

Example: bash install.bash –ip_address 192.168.1.172 –interface_name eth0

IMPORTANT:
– Use this script in the fresh ubuntu 14.04LTS machine.
– Must have static IP configured.
– This script used the same NIC/IP for Management/External/VM Datapath networks.
– Make sure that the IP you have given must have internet connectivity.
– The interface name must be the NIC name of above-mentioned IP.

P.S: For new Compute node addition, visit my GitHub repo,

https://github.com/vinothkumarselvaraj/mitaka_compute_node_addition

Author: Vinoth Kumar Selvaraj
> E-Mail: [email protected]
> website: www.cloudenablers.com
> Date: 20-april-2016

32 Comments

  • Gil Spolidoro says:

    Wow, great script! Saved me a ton of time. Went really smooth. Really great job, thank you for sharing it!

    Do you know what is the login credentials for Horizon after install (domain, user, pass)?

    Thank you,
    Gil

    • Hi Gil,
      Thanks 🙂
      After the successful install, You could find the admin-openrc file in openstack-mitaka folder. You can see the login details in it.

      export OS_PROJECT_DOMAIN_NAME=default
      export OS_USER_DOMAIN_NAME=default
      export OS_PROJECT_NAME=admin
      export OS_USERNAME=admin
      export OS_PASSWORD=admin
      export OS_AUTH_URL=http://controller:35357/v3
      export OS_IDENTITY_API_VERSION=3
      export OS_IMAGE_API_VERSION=2

  • Doug Brown says:

    Great script. How can I remove the references to hellovinoth.com and the horizon logo?

  • Doug Brown says:

    Also, can you provide the steps to install the Heat service.. Trying to do this manually I am getting heat database communication errors.

  • Pandiyan M says:

    Hi,

    How policy,json is calling in your script ?

  • Hello Kumar,

    Awesome work, I am just now getting in to the OpenStack cloud realm, this did make my journey a little easier I have installed and re-installed with several other tutorials but this was very nice. I have a question is it possible to add compute nodes to this if so how do I go about doing that. Thanks Again for your tremendous effort and work.

    Michael Cooper

  • Hello Kumar,

    Sorry I just saw that this morning, I am going to give it a try today, THis is an awesome script, I am really looking forward to it.

    Thanks,

  • Hello,

    Why am I getting a db error in this script?

    Writing extended state information…
    * Stopping MariaDB database server mysqld
    ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)
    …done.
    * Starting MariaDB database server mysqld
    …done.
    * Checking for corrupt, not cleanly closed and upgrade needing tables.
    update-rc.d: warning: start runlevel arguments (none) do not match mysql Default-Start values (2 3 4 5)
    update-rc.d: warning: stop runlevel arguments (none) do not match mysql Default-Stop values (0 1 6)
    Enabling system startup links for /etc/init.d/mysql …
    Removing any system startup links for /etc/init.d/mysql …

    Then I saw this as well:
    dbinstall.bash: line 81: /etc/init.d/iptables-persistent: No such file or directory
    dbinstall.bash: line 187: /etc/openstack-control-script-config/db-installed: No such file or directory

    So I am just wondering if I have something wrong or is this a bug in the script? It also removed ntp from the install as well, why?

  • Hello Vinoth,

    I noticed that I don’t have the app catalog and the Volume/Storage manager, do you know to enable those or do you know where i can get step by step instruction to install/enable them?

    Thank you very much for this it worked great I now have the controller and 2 compute nodes.

    Thanks again
    Michael

  • Prajeesh says:

    Great work Vinoth . I was able to execute scripts. However the dashboard is not loading . I guess the context path is set to / . so I just need to invoke the IP via browser rt ?
    Also , after host restart , i’m not able to execute nova commands such as nova list
    Do I need to restart individual services seperately ? Please let me know

    • Prajeesh,
      Thanks!
      Please make sure you gave IP address that can be accessed from your browser and its NIC name during the scrip execution.
      No need to restart the individual service since rebooting will do so.

      Thanks,
      Vinoth

      • PRAJEESH MURUKAN says:

        Thanks Vinoth – Dashboard still not working . However , I downloaded horizon srouce and able to connect to keystone That essentially means that the all-in-one setup is working ,with the exception of horizon .. I can use CLI instead of horizon .
        On a different note – in your script mitaka_package_install.bash , you are doing apt-get and installing each services seperately . By any chance , you have a script which downloads , for eg : nova , neutron and keystone source from git , then builds the system ?
        Please let me know..

  • jap says:

    Hello,

    After I did the install it was working but I rebooted the vm and now I can open the main login webpage, please can you confirm the full path?

    thanks.

  • MAYANK GUPTA says:

    I am getting during installation of openstack in ubuntu 14.04 using script
    MySQL bash install: command not found
    Glance bash install: command not found
    Etc…

    Sql connection failed. 10 attempts left
    Sql connection failed. 9 attempts left

  • MAYANK GUPTA says:

    I am getting during installation of openstack in ubuntu 14.04 using script
    MySQL bash install: command not found
    Glance bash install: command not found
    Etc…

    Sql connection failed. 10 attempts left
    Sql connection failed. 9 attempts left
    Please help me in resolving this issue.

  • kstagner says:

    There doesn’t seem to be any way to add/create a Volume in the web UI.
    Is there a way to enable this?

  • JP says:

    Hello,

    How can I add swift and heat to this install?

    thanks

  • Harish N J says:

    Hey Vinoth,
    You are doing a great job !, I have referred multiple sites but i haven’t get any concrete answer for this.
    What is the minimal hardware requirement to experiment with openstack ?
    I wanted to install devstack in my laptop i3 6GB, if i use linux continers to host will there be any performance improvement.

    Thanks in Advance
    Harish N J

  • vineet says:

    Thanks a lot

  • George Lukacs says:

    Great Script. Saved me a ton of time and frustration. Thank you!

  • Hello Everyone,

    Has anyone figured out how to add the App Catalog or the Volume/Storage manager yet if so could you please share the steps you used to accomplish this?

    Thanks,

  • Hey Guys,

    I am giving this shot again, Has anyone figured out what the interface url is so I can login to this? I would really love to try this out but the steps to get logged in and management is lacking….

    Thanks Still a great script Vinoth good job.

  • Hey Guys,

    I am back and I have finally got this installed. However when I try to create and instance I get an error, where is the log located so I can see why this is happening?

    Thanks,
    Michael

  • Jap says:

    Hello I did the install and I get this error
    Something went wrong!

    An unexpected error has occurred. Try refreshing the page. If that doesn’t help, contact your local administrator.

  • max says:

    You should mention if you are referring to the server or the desktop version. There is no Horizon so I do not want graphical interface and I tried the server version 14.04.5LTS which does not work

  • Cloud Learner says:

    will this create dpdk virtio / or native virtio instances?

Leave a Reply to Michael Cooper Cancel reply