| date | 2016-05-09 |
|---|---|
| draft | false |
| weight | 1 |
| title | Lab 01 - Your OpenStack Environment |
| Mon | Mon | Mon | Mon | Tue | Tue | Tue | Tue | Wed | Wed | Wed | Thur | Thur | Thur | Thur |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 00 | ![]() |
02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 | 13 | 14 |
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, log in as root (this was covered in lab 00), and then issue the following command.
[root@controller]#nova-manage service list | sort -
Look at the output and ask yourself the following questions... (answers are listed below the questions, but feel free to ask the instructor for clairification if they are not clear)
- Q1 How many compute servers are running?
- Q2 Where are the compute servers running?
- Q3 How many OpenStack cloud controllers are running?
- Q4 What is the current state of all of your services?
A1 Two compute servers running
A2 compute1.localdomain and compute2.localdomain
A3 One cloud controller
A4 State of :-) means the service is up and running, whereas XXX means the service is no longer available.
-
Return to your home directory, and then source the
keystonerc_adminfile. We will discuss what this file does in subsequent lessons. For right now, understand that it is a way to set what user is interacting with OpenStack at the CLI.[root@controller]#cd[root@controller]#source keystonerc_adminThis 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 | lessFor 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:
- Q1 What IP address are these services being served from?
- Q2 Whose IP address is this?
- Q3 How are they different?
- Q4 What are the names of the services currently in operation?
A1 192.168.0.10 /n A2 The controller node A3 Each has a unique port, which represents the API endpoint of a unique service A4 Compute, network, Volume(v2), Compute(v3), s3, image, metering, volume, ec2, object store, identiy
-
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 version of Kilo is the same version that was being displayed each time you issued the
[$SERVICE]-manage --versioncommand.
- OpenStack is a project with ambitious release dates. Take a minute to read over the notes concerning how the project is maintained.
- That's it for this lab!

