Nova Server Group anti-affinity policy validation tool
Nova Server Group anti-affinity policy validation tool

This script checks a given Nova Server Group for any instances that fall
foul of invalid anti-affinity rules, i.e there are multiple instances
running on the same hypervisor in a Server Group where the anti-affinity
policy has been set.

Example usage:

./antiaffinitycheck.py --check c353197c-5fbb-410f-a7b3-843452a55276

Anti-affinity rules violated in Server Group: c353197c-5fbb-410f-a7b3-843452a55276
+--------------------------------------+-----------+--------------+
| Instance ID                          | Instance  | Hypervisor   |
+--------------------------------------+-----------+--------------+
| 4c38cf7f-2073-4d96-b377-d2bd29595d8a | app-db-12 | compute2.dev |
| 5c40b1e9-8b38-4978-98b2-391e53e65418 | app-db-11 | compute2.dev |
+--------------------------------------+-----------+--------------+

Change-Id: I2fee4c5eaa1aa0b511c6912f6d7cc35f736621a8

openstack/osops-tools-contrib,openstack/osops-tools-contrib,openstack/osops-tools-contrib,openstack/osops-tools-contrib