Issue link: https://read.uberflip.com/i/1334488
Troubleshooting 276 How it works... 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. Understanding logging Logging is important in all computer systems, but the more complex the system, the more you rely on being able to spot problems to cut down on troubleshooting time. Understanding logging in OpenStack is important to ensure your environment is healthy and is able to submit relevant log entries back to the community to help fix bugs. Getting ready Log in as the root user onto the appropriate servers where the OpenStack services are installed. How to do it... OpenStack produces a large number of logs that help troubleshoot our OpenStack installations. The following details outline where these services write their logs. OpenStack Compute Services Logs Logs for the OpenStack Compute services are written to /var/log/nova/, which is owned by the nova user, by default. To read these, log in as the root user. The following is a list of services and their corresponding logs: f nova-compute: /var/log/nova/nova-compute.log Log entries regarding the spinning up and running of the instances f nova-network: /var/log/nova/nova-network.log Log entries regarding network state, assignment, routing, and security groups f nova-manage: /var/log/nova/nova-manage.log Log entries produced when running the nova-manage command f nova-scheduler: /var/log/nova/nova-scheduler.log Log entries pertaining to the scheduler, its assignment of tasks to nodes, and messages from the queue www.it-ebooks.info

