Reviewing the console logs
Console logs are critical for troubleshooting the startup process of an instance. These logs are produced at boot time, before the console becomes available. Typically, when working with cloud hosted instances, accessing these can be difficult. OpenStack Compute provides a mechanism for accessing the console logs.
Getting ready
To access the console logs of an instance, the following information is required:
- The
openstack
command-line client - The
openrc
file containing appropriate credentials - The name or ID of the instance
For this example, we will view the last five lines of the cookbook.test
instance.
How to do it…
To show the console logs of an instance, use the following command:
openstack console log show --lines 5 cookbook.test ...
Get OpenStack Cloud Computing Cookbook - Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.