Troubleshoot the OpenStack services

Troubleshoot the OpenStack services

Depending on your needs, inspect the OpenStack services logging information:

  • On the OpenStack controller nodes:

    tail -fn0 /var/log/{nova,cinder,glance,keystone,neutron,contrail,cassandra,rabbitmq}/*.log \
    | egrep 'ERROR|WARNING|REFUSED|EXCEPTION|TRACE|error'
    
  • On the OpenStack compute nodes:

    tail -fn0 /var/log/{nova,contrail}/*.log | \
    egrep 'ERROR|TRACE|WARNING|REFUSED|EXCEPTION|error|SHUTDOWN'
    

To ensure that an OpenStack service is up and running, verify the service status on every controller node. Some OpenStack services require additional verification on the OpenStack non-controller nodes.

Before you can proceed with troubleshooting, export all credentials from keystonerc file on each controller node to be able to manage your OpenStack environment:

Verifying the OpenStack services status
Service name Verification procedure
Glance Use the glance image-list command. The output should contain the table with the images list. The images status should be active.
Nova Use the nova service-list. The output should contain the table with the Nova services list. The services status should be enabled, their state should be up.
Cinder Use the cinder-manage service list. The output should contain the table with the Cinder services list. The services status should be enabled.