Mindmajix

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:

  • 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.

Openstack

  • If Nova has a problem:

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

Openstack

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 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:

Openstack

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:

Openstack

MySQL Database Server:

MYSQL_ROOT_PASS=openstackmysqladmin -uroot –p$MYSQL_ROOT_PASS status

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

Openstack

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.

 

Enroll for Instructor Led Live OpenStack Training

0 Responses on Checking OpenStack Compute services"

Leave a Message

Your email address will not be published. Required fields are marked *

Copy Rights Reserved © Mindmajix.com All rights reserved. Disclaimer.
Course Adviser

Fill your details, course adviser will reach you.