[Tooling update] health_checks
* Added:
- rabbitmq queue listing for a node
- CEPH health status check
- Ability to execute arbitrary ceph commands
- Retrieve docker registry repos recursively
- Retrieve GlusterFS pool list
- Retrieve FlusterFS volumes status
- Check GlusterFS pool health and size
- Check GlusterFS volumes bricks health and size
Related-Prod: PROD-29236
Change-Id: I1b12fe39d2d4f190db3cc68a6fe18f919f044eda
diff --git a/README.rst b/README.rst
index 8a31001..9ef87d1 100644
--- a/README.rst
+++ b/README.rst
@@ -705,6 +705,13 @@
salt-call health_checks.rabbitmq_cmd list_hashes
salt-call health_checks.rabbitmq_cmd list_ciphers
+Get rabbitmq json dict of queues on the node (vhost '/' by default)
+
+.. code-block:: bash
+
+ salt -C 's-msg01*' health_checks.rabbitmq_list_queues
+ salt -C 's-msg01*' health_checks.rabbitmq_list_queues /openstack
+
Verify haproxy upstream status:
.. code-block:: bash
@@ -754,6 +761,52 @@
salt-call health_checks.mem_check
salt-call health_checks.mem_check used_limit=50
+Verify ceph health status:
+
+.. code-block:: bash
+
+ salt-call health_checks.ceph_health_check
+ salt-call health_checks.ceph_health_check target=s-mon01* target_type=glob debug=True
+
+Execute arbitrary ceph command and get JSON output:
+
+.. code-block:: bash
+
+ salt -C 'cmn01*' health_checks.ceph_cmd 'osd tree'
+
+Retrieve docker registry recursively:
+
+.. code-block:: bash
+
+ salt-call health_checks.docker_registry_list s-apt01:5000
+ salt-call health_checks.docker_registry_list http://127.0.0.1:5000
+
+Retrieve glusterfs pool list:
+
+.. code-block:: bash
+
+ salt -C 'I@glusterfs:server and *02*' health_checks.gluster_pool_list
+
+Retrieve glusterfs volumes status:
+
+.. code-block:: bash
+
+ salt -C 'I@glusterfs:server and *02*' health_checks.gluster_volume_status
+
+Check glusterfs pool health and size:
+
+.. code-block:: bash
+
+ salt-call health_checks.gluster_pool_check
+ salt-call health_checks.gluster_pool_check expected_size=5
+
+Check glusterfs volumes bricks health and size:
+
+.. code-block:: bash
+
+ salt-call health_checks.gluster_volumes_check
+ salt-call health_checks.gluster_volumes_check expected_size=1 ignore_volumes=['/srv/volumes/aptly']
+
Encrypted pillars
~~~~~~~~~~~~~~~~~