Home OpenStack-Ansible Installation Guide
Verify the database cluster and Kibana web interface operation.
Procedure 7.1. Verifying the database cluster
Determine the Galera container name:
# lxc-ls | grep galera
infra1_galera_container-4ed0d84a
Access the Galera container:
# lxc-attach -n infra1_galera_container-4ed0d84a
Run the MariaDB client, show cluster status, and exit the client:
# mysql -u root -p
MariaDB> show status like 'wsrep_cluster%';
+--------------------------+--------------------------------------+
| Variable_name | Value |
+--------------------------+--------------------------------------+
| wsrep_cluster_conf_id | 3 |
| wsrep_cluster_size | 3 |
| wsrep_cluster_state_uuid | bbe3f0f6-3a88-11e4-bd8f-f7c9e138dd07 |
| wsrep_cluster_status | Primary |
+--------------------------+--------------------------------------+
MariaDB> exit
The wsrep_cluster_size field should indicate the number of nodes in the cluster and the wsrep_cluster_status field should indicate primary.