Now that we have OpenStack Compute installed, we need to ensure what we have configured is what we expect. OpenStack Compute provides tools to check various parts of our environment. We’ll also use common system commands to check whether the other underlying services that support our OpenStack Compute environment are running as expected.
Log in to the OpenStack controller
node. If you used Vagrant to create this node, log in to it using the following command:
vagrant ssh controller
To check whether the OpenStack Compute services are running, we invoke the nova-manage
tool and ask it various questions of the environment as follows:
sudo nova-manage service list
You will see the following output:
The :-) icons are indicative that everything is fine.
XXX
where the :-)
icon should be, then you have a problem.If you do see XXX, then the answer will be in the logs at /var/log/nova/
.
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.
rabbitmq
with the following command:sudo rabbitmqctl status
rabbitmqctl
when everything is running OK:ntpq -p
MYSQL_ROOT_PASS=openstack mysqladmin –uroot –p{$MYSQL_ROOT_PASS} status
We have used some basic commands that communicate with OpenStack Compute and other services to show they are running. This elementary level of troubleshooting ensures you have the system running as expected:
sudo nova-manage service list
: This lists Nova services and their respective statusesps -ef | grep glance
: This lists the running Glance servicesnetstat -ant | grep 9292.*LISTEN
: This allows you to check whether the glance daemon is listening on the networksudo rabbitmqctl status
: This allows you to validate that the rabbitMQ services are runningntpq -p
: This confirms whether NTP is functional and connecting to the configured remote serversmysqladmin -uroot -p{$MYSQL_ROOT_PASS} status
: This returns basic information about the MySQL process