# How-To Check Consul Cluster Status

## Problem

You have enabled VMHA in an availability zone and want to verify the cluster status.

## Environment

* Platform9 Managed OpenStack - v3.6.0 and higher
* VMHA

## Procedure

1. Log in to one of the hosts in the availability zone that has VMHA enabled.
2. Run the following command to check the members in the consul. The list should contain all the hosts in the availability zone.

{% tabs %}
{% tab title="None" %}

```none
[test_host]$ consul members listNode                                   Address             Status  Type     Build  Protocol DC  Segment51e98668-7920-4831-b2b8-601c0db51a33   10.85.148.22:8301   alive   server   1.0.7  2        2   [all]9782f9c7-7ec7-4ed4-baa9-95ec1524f44e   10.85.148.21:8301   alive   server   1.0.7  2        2   [all]af01da10-954f-41d6-b352-89b1242b8984   10.85.148.24:8301   alive   server   1.0.7  2        2   [all]f98b8941-d426-4f24-bb3f-65ad8b0f3f6e   10.85.148.23:8301   alive   server   1.0.7  2        2   [all]
```

{% endtab %}
{% endtabs %}

3. Verify that the consul cluster has an active leader.

{% tabs %}
{% tab title="None" %}

```none
[test_host]$ consul operator raft list-peersNode                                   ID                                     Address             State      Voter  RaftProtocol9782f9c7-7ec7-4ed4-baa9-95ec1524f44e   9f238bd6-d1e1-abe3-0ae0-c9877c086a72   10.85.148.21:8300   leader     true   351e98668-7920-4831-b2b8-601c0db51a33   ca1e7d86-00a2-7323-a77f-a6fafb408af1   10.85.148.22:8300   follower   true   3f98b8941-d426-4f24-bb3f-65ad8b0f3f6e   cf929a44-0dee-5df1-d814-c373fc17aa29   10.85.148.23:8300   follower   true   3af01da10-954f-41d6-b352-89b1242b8984   238ead4d-f0a4-c413-7766-4d78736d53f7   10.85.148.24:8300   follower   true   3
```

{% endtab %}
{% endtabs %}

## Additional Information

For information on enabling VMHA please visit the following page

<https://docs.platform9.com/openstack/infrastructure/ha-zones/>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://platform9.com/kb/pmo/how-to/how-to-check-consul-cluster-status.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
