OpenStack Havana All-in-One Lab: Using the Horizon Dashboard

image_pdfimage_print

We’ve come a long way already with our OpenStack Havana All-in-One lab, but we need to get to the customer facing side to really see what OpenStack will look like as we deploy and manage it. This is where we get to the OpenStack Dashboard tool which is known as Horizon.

In our first post (OpenStack Havana All-in-One Lab on VMware Workstation) we deployed the lab VM which gives us a minimally sized testing environment for OpenStack Havana feature testing. The lab is still fairly basic, but we will grow it along the way with some additional scripts as we append the other OpenStack projects into our build.

Following that post, we used the OpenStack Havana All-in-One: Booting your first Nova Instance post to launch a Nova instance from the console to illustrate how we create running guest instances on our Nova KVM hypervisor.

Time for the next steps.

Not just for the command line enthusiasts

Admittedly, I spend a significant amount of my day-to-day administration in shell scripts and command line even in Windows and vSphere environments. That being said, I am working on different tasks to create orchestration features for others so that they can use GUI tools to do their day-to-day administrative work.

Is this what you do when you hear it is command line only?

Is this what you do when you hear it is command line only?

Have no fear! There is a slick web UI that has been developed as a part of the OpenStack ecosystem. This is Horizon:

01-horizon-login

And the magical thing we have achieved is that it is already deployed inside your lab! Make sure that your OpenStack Havana All-in-One VM is online and you can access the Horizon interface by using the IP address as follows:

http://youripaddress/horizon

In my case, this was http://192.168.79.50/horizon

At the log in screen, you have two different accounts that you can use to log in that have already been created for you. The first is our admin account:

User Name: admin

Password: openstack

When you log in with the admin account, you will see quite a few options and tabs available to you:

02-admin-panel

If you click on the Project tab in the left hand pane, you will see a nice view of the Usage Summary for your admin project. The pie charts are noticeably empty because we have no running instances.

03-project-panel

Let’s launch an instance using Horizon to see what the user experience will be like. Remember how our command line process worked, and you will see why we had the parameters we used involved in the launch at the console.

Make sure you are in the Project tab in the left hand pane. Click on the Instances menu option and you will then see the Launch Instance button at the top right of your screen:

04-launch-instance

On the Details tab there are a few fields that we need to fill in to prepare our instance. Fill in the name as you’d like, which I’ve chosen as the ever original myinstance. Next, choose our flavor, which I’ve left as m1.tiny which will be a 1 GB boot volume and only uses 512 MB of RAM.

For the Instance Boot Source choose Boot from image as the option:

05-instance-details

Once your boot source has been selected, you will use the Image Name drop down list to pick the Cirros 0.3.1 image that was uploaded during the all-in-one script process:

05-2-boot-image

On the Access & Security tab, you have to select the Keypair to use. We will use the mykey Keypair we uploaded from the console prompt in the first post.

You can choose the Admin password, but in this case we won’t bother because we can just accept the default. This is meant to show us the deployment process more than anything.

Also, make sure that the Security Groups checkbox is checked for default:

06-instance-access

We have all the information we need to proceed, so click the Launch button and watch what happens:

07-instance-launch

I see something happening!

08-launching

Now you can see some activity in your Instances panel!

joaquin-frightened

It worked!!

Yup, it worked! There are some options that you’ll see if you click on the right hand side in the More drop-list. There will be an error if you use the Associate Floating IP option because we haven’t created our floating IP pool yet. Don’t worry, we will get to that in our networking post.

09-instance-options

You can choose what you’d like to do with your instance. It is important to understand the difference between Shut Off and Terminate though before you click. Shut Off means that the instance is shut down. For VMware admins, this is the same as the Shutdown Guest OS option.

Terminating the instance is, well, a little more aggressive.

Your instance is terminated

Your instance is terminated

What about the User Experience?

This is great for administrators, but one of the maxims of a cloud environment is a self-service interface for the customer. Not a problem! Log out of the Horizon dashboard using the Sign Out button at the top right.

At the login screen, you will use the customer credentials that we have created:

User Name: demo

Password: openstack

When you login with the demo account, the view is a little more stripped back because this is the consumer version of your OpenStack cloud.

You’ll notice that in the left hand pane that there is only a Project tab. This gives the consumer of our OpenStack cloud the ability to manage their own services within their tenant environment. As we enable more services, the control tabs will show up as more options are installed.

10-demo-login

 As a “user” in the service, we can launch instances, create snapshots, manage security (tenant-only) and we can see the usage summary with the ability to export usage statistics to CSV.

What’s Next?

The next thing we will do is to dial it back a bit and go over some terminology. Don’t worry, we will be doing some more technical steps again soon after.

Take some time to navigate around the Horizon interface and become familiar with both the admin, and the customer experience. It will be important as we delve into more use cases with further posts.

Feel free to let me know if you have any comments or questions, and most of all, be sure to share this wherever you can to help bring more folks up to speed on how to get started with OpenStack Havana! 🙂

DiscoPosse

People, Process, and Technology. Powered by Community!

You might also like

34 Comments

  • Kamrul Hasan
    January 31, 2014 at 6:07 am

    It is very nice effort for OpenStack Installation in one node. Could you please provide the OpenStack installation on two nodes with CentOS operating system.

    Thanks.

    • DiscoPosse
      Eric
      January 31, 2014 at 7:11 am

      Hi Kamrul,

      I’m hoping to put together a CentOS series at some point also. Definitely a lot of questions coming in about how to use that as the base.

      Thanks for your feedback!

  • Stephen
    February 1, 2014 at 5:44 pm

    I just wanted to say THANK YOU! I am new to learning openstack and have used this to create a lab using vmware workstation 10 on my ubuntu 13 desktop. +++

    • DiscoPosse
      Eric
      February 1, 2014 at 7:06 pm

      Thanks for the feedback Stephen! I’m glad to be able to help 🙂

  • Stephen
    February 1, 2014 at 8:33 pm

    Looking Forward to you next post!

  • Dusty Countryman
    February 2, 2014 at 12:02 am

    I managed to get it working under fusion as well…very nice….cant wait for the article
    next in the series…

    • DiscoPosse
      Eric
      February 2, 2014 at 9:32 am

      Great to hear Dusty!

  • Rajkumar
    March 13, 2014 at 10:11 am

    Hello Eric

    Thanks for replying, I have successfully installed Openstack now and it’s running. But currently facing a problem, after I have created myinstance and running it. When I try to use ciros it says “server refused the connection.”

    Please help me with this.

    Regards

    • DiscoPosse
      Eric
      March 13, 2014 at 10:22 am

      Hi Rajkumar,

      Is this in the Horizon interface, or in the SSH console at the shell?

  • Rajkumar
    March 13, 2014 at 10:31 am

    it’s showing in the horizon, an in vm workstation it shows vpc0 unhandled

    • DiscoPosse
      Eric
      March 13, 2014 at 8:31 pm

      I’ll spin up my lab and give it a try. I did find an issue with the Horizon and VNC so there may be an adjustment to the script.

  • Rajkumar
    March 14, 2014 at 11:36 am

    Ok, thank you please let me know as soon as possible, I require it for my project.

    Thank you.

    • DiscoPosse
      Eric
      March 15, 2014 at 9:53 pm

      Hi Rajkumar,

      Sorry for the delay. I found the missing line that belongs in the /etc/nova/nova.conf file. I’ve updated the build script, and here is what the content of your nova.com should look like (excerpt only)

      flat_network_bridge=br100
      flat_interface=eth1
      public_interface=eth0
      novncproxy_base_url=http://${INTERNAL_IP}:6080/vnc_auto.html

      [database]
      mysql://nova:openstack@127.0.0.1/nova

      The bolded line is the one that was needed. Once you do that you can restart the Nova services or reboot the system and that should get things back up and running for the console access.

      Thanks…Eric

      • DiscoPosse
        Eric
        March 15, 2014 at 9:57 pm

        If that doesn’t work for some reason, you can also specifically code your IP address. My example for that (using 192.168.79.50) is as follows:

        novncproxy_base_url=http://192.168.79.50:6080/vnc_auto.html

  • Rajkumar
    March 16, 2014 at 3:04 am

    Thank you 🙂 it worked like a charm 🙂

    • DiscoPosse
      Eric
      March 16, 2014 at 7:17 am

      Awesome! Great to hear. Thanks for spotting the issue for me 🙂

  • Rajkumar
    March 16, 2014 at 11:51 am

    My pleasure and Thank you 🙂

  • Filippo
    March 17, 2014 at 12:54 pm

    Hi Eric,
    thank you so much for your effort, this guide was really helpful.
    I would like to ask you, as Kamrul if you can explain how to add a host to this setup. I guess it should be possible. thank you!

    • DiscoPosse
      Eric
      March 17, 2014 at 10:19 pm

      Hi Filippo,

      I’m crafting up a second node process for the lab. It is one of the most commonly requested features for sure!

      Hope to have it all set within a short time for everyone.

      Thanks!

  • Rajkumar
    March 19, 2014 at 7:16 am

    hi Eric

    Is there any way to access “myinstance” from another terminal like the VM terminal or putty and log in to cirros which I have used to create the instance.

    Thanks

  • DragoMlakar
    March 26, 2014 at 7:56 pm

    Hi,
    Really nice tutorial.
    You state that instructions how to setup cinder are coming soon?
    Can you just change all-in-one.sh and put on some gist before you make article?
    It looks that cinder stuff is commented out and apt-get installs missing? Or even something more?

    • DiscoPosse
      Eric
      March 27, 2014 at 7:30 pm

      Thanks for the great feedback! I am definitely overdue for my Cinder addition. Life got a little fast paced in the last month and I fell behind on things.

      I’ve got a plan to update things for Cinder first in the next few days and then the follow up post will be the second compute node. Thanks for the reminder 🙂

  • DragoMlakar
    March 28, 2014 at 5:20 am

    Great!
    Thank you very much. It’s the piece that is stopping me now.
    I’m trying to use then environment with juju and cloudfoundry.
    And probably they will need to make some volumes.
    Probably will go something like this then?
    http://www.discoposse.com/index.php/2013/02/26/openstack-lab-on-vmware-workstation-adding-cinder-volume-features/

    Maybe one more observation.
    At the beginning of article NAT adapter has dhcp on.
    But with prepare.sh you push fixed settings?
    This somehow broke my network settings so I changed back to

    auto eth0
    iface eth0 inet dhcp

  • tioman
    April 17, 2014 at 4:36 am

    Thanks Eric for your great job!
    In your lab, how to start the Horizon (dashboard), I noticed there is not instance running by default.

    Found the Horizon in /usr/share/openstack-dashboard directly.

    then run the horizon by command:
    /usr/share/openstack-dashboard# python manage.py runserver xx.xx.xx.xx:8000

    is it right?

    • DiscoPosse
      Eric
      April 17, 2014 at 9:33 am

      Hi there,

      The Horizon should have started automatically, but it may require a restart sometimes depending on the order of installation and service startup.

      Hopefully you should have the Horizon visible on http://yourcontrollerIP/horizon on port 80.

  • imgiant
    April 19, 2014 at 7:29 am

    Hi ,
    Eric.
    I remove my vmware machine into a vmware that installed in macbook pro which uses i7 for CPU.
    and I move my customized ubuntu into this vmware and guess what happened!
    It works!
    Thank you so much!!!!!!!!! I love you!!!!!!!

    • DiscoPosse
      Eric
      April 19, 2014 at 7:40 am

      That’s awesome!! Thanks so much for the kind words 🙂

  • Edwin
    June 30, 2014 at 5:03 pm

    Hi Eric,
    Thank you for the fantastic walk-through, I now have a running OP All-in-One for testing.

    • DiscoPosse
      Eric
      June 30, 2014 at 6:03 pm

      Glad to hear you got things up and running Edwin!

  • Genevieve
    July 2, 2014 at 4:01 pm

    Wow Eric thank you so much !! This is amazing and it works : ) You saved me so much time trying to figure out what was wrong with my previous installation

  • Genevieve
    July 2, 2014 at 5:16 pm

    Thank you so much Eric 🙂 ! This worked perfectly

    • DiscoPosse
      Eric
      July 3, 2014 at 12:42 pm

      Yay! Thanks for the kind feedback Genevieve 🙂

  • Ani
    September 13, 2015 at 2:09 am

    you’re the best teacher i’ve ever seen!
    plz. keep on,
    would you plz. write about Neutron installation?

LEAVE A COMMENT

Proudly Sponsored By

GC On-Demand

Subscribe to the Blog

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Upcoming events:

Archives