+++ date = "2015-09-30" draft = false weight = 1 title = "Lab 01 - Your OpenStack Environment" +++
The objective of this lab is to give students a basic introduction to administering an OpenStack cloud. Although you install each OpenStack service separately, the OpenStack services work together to meet your cloud needs: Identity, Compute, Image service, Block Storage, Networking (neutron), Object Storage, Orchestration, and Telemetry. These services may be distributed or local to one another, but in all instances, after you have authenticated yourself through Identity (keystone), you use OpenStack APIs to create and admin OpenStack cloud resources.
Using some basic CLI tools can help give you a sense of the shape of your OpenStack cloud; number of servers, the health of each server (Up / Down), and what services are running where.
-
SSH to your controller and log in as root
[root@controller]#
nova-manage service list | sort
-
Look at the output and ask yourself the following questions... (record your answers for now, we'll discuss them at the conclusion of the lab).
- How many compute servers are running?
- Where are the compute servers running?
- How many OpenStack cloud controllers are running?
- What is the current state of all of your services?
A State of :-) means the service is up and running, whereas XXX means the service is no longer available.
-
Source the
keystonerc_admin
file[root@controller]#
source keystonerc_admin
This command will be explained in lab coming up, for right now, just know it has to do with setting proper permissions within the bash shell; a shortcut that tells the OpenStack cloud that we are the user admin. Your CLI prompt will also change
-
Display the service catalog for the OpenStack admin
[root@controller ~(keystone_admin)]#
keystone catalog | less
For students who do not have much experience using the less command:
Press CTRL + F to go forward one window, and CTRL + B to go back one window Press CTRL + D to go forward one half window, and CTRL + U to go back one half window Press q to quit Less utility and return to the CLI If you have never used the less utility, you might find the following cheat sheet useful (http://sheet.shiar.nl/less)
- Answer the following questions:
- What is the adminURL of the following services?
- What IP address are these services being served from?
- Whose IP address is this?
- How are they different?
- How many services are there?
-
List the nova service endpoints, does this output look familiar?
[root@controller ~(keystone_admin)]#
nova service-list
-
Collect the various version releases of your OpenStack services by issuing the following commands. What will be displayed is the release date of each service.
[root@controller ~(keystone_admin)]#
keystone-manage --version
[root@controller ~(keystone_admin)]#
nova-manage --version
[root@controller ~(keystone_admin)]#
glance-manage --version
-
Let's correlate the release date to our version. Navigate in browser to: OpenStack Releases
-
Look over the chart and notice that the release date of Kilo is the same date that was being displayed each time you issued the
[$SERVICE]-manage --version command
.
- OpenStack is a project with ambition release dates. Take a minute to read over the notes concerning how the project is maintained.
- That's it for this lab! Hang tight until the other students finish up.