ps
and grep
to determine if nova, glance, and
keystone are currently running:openrc
file, then runs some basic
glance, nova, and openstack commands. If the commands work as expected,
you can be confident that those services are in working
condition:nova live-migration
command. First,
get a list of instances that need to be moved:--block-migrate
option:nova-compute
service has nova-compute
service is always running, you can
temporarily move the nova-compute
service by undoing the previous commands:nova-compute
service:nova-compute
service is running:fsck
on the root partition. If this happens, the user can
use the dashboard VNC console to fix this.virsh list
never shows the instance as even attempting to boot, do the following on
the compute node:nova reboot
command again. You
should see an error message about why the instance was not able to
boot/etc/libvirt/qemu/instance-xxxxxxxx.xml
) that no
longer exists. You can enforce re-creation of the XML file as well as
rebooting the instance by running the following command:/mnt
, which
correspond to the first partition of the instance's disk./var/lib/nova/instances
./var/lib/nova/instances
contains two types of
directories._base
directory. This contains all
the cached base images from glance for each unique image that has been
launched on that compute node. Files ending in _20
(or a
different number) are the ephemeral base images.instance-xxxxxxxx
.
These directories correspond to instances running on that compute node.
The files inside are related to one of the files in the
_base
directory. They're essentially differential-based
files containing only the changes made from the original
_base
directory./var/lib/nova/instances
are uniquely named. The files in _base are uniquely titled for the
glance image that they are based on, and the directory names
instance-xxxxxxxx
are uniquely titled for that particular
instance. For example, if you copy all data from
/var/lib/nova/instances
on one compute node to another, you
do not overwrite any files or cause any damage to images that have the
same unique name, because they are essentially the same file.swift-ring-builder
heavily depends on the original
options used when you originally created your cluster. Please refer back
to those commands./dev/sdb
has failed./dev/sdb
.Priority | Services |
---|---|
sql_connection
or simply connection
. The
following command uses grep
to display the SQL connection
string for nova, glance, cinder, and keystone:nova-api
, glance-api
,
glance-registry
, keystone, and potentially
swift-proxy
. As a result, it is sometimes difficult to
determine exactly where problems lie. Assisting in this is the purpose of
this section.nova list
is failing,
try tailing a nova log file and running the command again:glance-api
service refuses to start and stay running, try
launching the daemon from the command line:libvirtd
daemon was run on the command
line. Finally a helpful error message: it could not connect to d-bus.
As ridiculous as it sounds, libvirt, and thus
nova-compute
, relies on d-bus and somehow d-bus crashed.
Simply starting d-bus set the entire chain back on track, and soon
everything was back up and running.