How to Verify an OpenStack Installation and Check Storage Usage

Suraj PokhrelSuraj Pokhrel
3 min read

How to Verify an OpenStack Installation and Check Storage Usage

OpenStack is a powerful cloud computing platform, but verifying its installation and checking storage usage is essential for smooth operations. This guide walks you through the steps to confirm that OpenStack services are running correctly and to analyze storage utilization.


1. Check OpenStack Services

To ensure that OpenStack services are installed and running, use the following command:

openstack service list

This command will display core services such as:

  • Keystone (Identity)

  • Nova (Compute)

  • Glance (Image Service)

  • Cinder (Block Storage)

  • Neutron (Networking)

  • Swift (Object Storage, if installed)

  • Horizon (Dashboard)

To check the available service endpoints:

openstack endpoint list

To verify running services on the controller node:

systemctl list-units --type=service | grep openstack

Or check the status of all OpenStack services:

systemctl status openstack-*

2. Verify OpenStack Nodes

To list all available nodes, including controllers, compute, and storage nodes:

openstack hypervisor list

For an overview of compute node resources:

openstack hypervisor stats show

3. Verify Authentication

To confirm that OpenStack authentication is working:

openstack token issue

If authentication fails, ensure that your credentials are loaded:

source openrc.sh  # or source admin-openrc.sh

4. Check Storage Usage

A. Block Storage (Cinder)

To list all Cinder storage backends:

openstack volume service list

To check available storage pools:

cinder get-pools --detail

To list all existing volumes:

openstack volume list

To check storage quotas for a specific project:

openstack quota show <project_id>

B. Object Storage (Swift)

If Swift is installed, check its status:

swift stat

To list all object storage containers:

swift list

C. Image Storage (Glance)

To verify available images and storage usage:

openstack image list

To check the backend storage used for images:

grep -i 'stores' /etc/glance/glance-api.conf

D. Local Storage (Ephemeral for Nova)

To check disk usage for Nova instances:

df -h /var/lib/nova/instances/

To list attached storage devices on compute nodes:

lsblk

E. Ceph Storage (If Used)

If OpenStack is using Ceph for storage, verify the status:

ceph -s

Check Ceph storage utilization:

ceph df

5. Check Networking (Neutron)

To verify network services:

openstack network agent list

To list all available networks:

openstack network list

To list configured routers:

openstack router list

To check floating IP addresses:

openstack floating ip list

6. Verify OpenStack Logs

If a service is not functioning properly, check its logs:

  • Keystone logs (Identity Service)

      journalctl -u openstack-keystone --no-pager
    
  • Nova logs (Compute Service)

      journalctl -u openstack-nova-api --no-pager
    
  • Neutron logs (Networking Service)

      journalctl -u openstack-neutron-server --no-pager
    
  • Cinder logs (Block Storage)

      journalctl -u openstack-cinder-volume --no-pager
    

7. Verify Horizon (Dashboard)

To check if the OpenStack Dashboard (Horizon) is running:

  • For Ubuntu/Debian:

      systemctl status apache2
    
  • For CentOS/RHEL:

      systemctl status httpd
    

Try accessing the Horizon Dashboard in a web browser:

http://<controller-ip>/dashboard

Final Thoughts

Verifying an OpenStack installation is crucial for ensuring that all components are functioning properly. By following these steps, you can confirm service availability, check authentication, analyze storage usage, and troubleshoot potential issues. If you encounter errors, always check the logs for more details.

Need further help? Leave a comment below or reach out to the OpenStack community! ๐Ÿš€

0
Subscribe to my newsletter

Read articles from Suraj Pokhrel directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Suraj Pokhrel
Suraj Pokhrel