Blog

Checking OpenStack Compute services

Now that we have OpenStack Compute installed, we need to assure that, what we have configured is what we expect. OpenStack Compute provides tools to check various parts of our environment. We’ll also have system commands check whether the other underlying services that support our OpenStack Compute environment are running as expected or not.

Getting started

Log in to the OpenStack Controller node. If you used Vagrant to create this node, log into this using the following command:

vagrant ssh controller

How to achieve it…

To check that the OpenStack Compute services are running, we invoke the nova-manage tool and ask to it various questions about the environment as follows:
1. To check the OpenStack Compute hosts are running OK:
 sudo nova-manage service list

You will see the following output. The  icons are an indication that everything is fine.

2. If Nova has a problem:

If you see XXX where the  icon should be, then you have a problem.

Troubleshooting is covered at the end of the book, but if you do see XXX then the answer will be in the logs at /var/log/nova/.

Tip

If you get intermittent XXX and  icons for a service, first check if the clocks are in sync.

1. Checking Glance:
Glance doesn’t have a tool to check, so we can use some system commands instead:

ps -ef | grep glance
netstat -ant | grep 9292.*LISTEN

These should return process information for Glance to show it is running and 9292 is the default port that should be open in the LISTEN mode on your server ready for use.

2. Other services that you should check:
rabbitmq:
 sudo rabbitmqctl status
The following is an example output from rabbitmqctl, when everything is running OK:

Troubleshooting is covered at the end of the book, but if you do see XXX then the answer will be in the logs at /var/log/nova/.

Tip

If you get intermittent XXX and :-) icons for a service, first check if the clocks are in sync.
Checking Glance:
Glance doesn’t have a tool to check, so we can use some system commands instead:

ps -ef | grep glance
netstat -ant | grep 9292.*LISTEN

These should return process information for Glance to show it is running and 9292 is the default port that should be open in the LISTEN mode on your server which is ready for use.
Other services that you should check:
rabbitmq:

sudo rabbitmqctl status

The following is an example output from rabbitmqctl, when everything is running OK:

MySQL Database Server:

MYSQL_ROOT_PASS=openstackmysqladmin -uroot –p$MYSQL_ROOT_PASS status

This will return some statistics about MySQL if it is running:

How it works…

We have used some basic commands that communicate with OpenStack Compute and other services to show that they are running. This elementary level of troubleshooting ensures you have the system running as expected.

Related Pages:
Openstack Training
Openstack Tutorial

Sample Resume:
Openstack Sample Resumes

Interview Questions:
Openstack Interview Questions


RELATED COURSES

Get Updates on Tech posts, Interview & Certification questions and training schedules