Nikolay Pliashechnykov | 316823e | 2020-08-14 15:44:50 +0100 | [diff] [blame] | 1 | VM tracking tool |
| 2 | |
| 3 | Q: What does it do? |
| 4 | A: Searches for VMs that are duplicated (VMs with same IDs on different hypervisors), VMs that are misplaced (running on a different hypervisor that what Nova expects), VMs that are lost (existing in libvirt not having an uuid) |
| 5 | |
| 6 | Q: How does it work? |
| 7 | A: By comparing the output of Nova (nova list --all) and virsh (virsh list --all, virsh list --uuid) |
| 8 | |
| 9 | Q: How do I use it? |
| 10 | A: run "collect_data.sh" to gather the data from Nova and libvirt, then run "analyze.py" to get the results. |
| 11 | |
| 12 | Q: What does it need to run? |
| 13 | A: Salt access, bash on the compute node, and a correct hypervisor name pattern set in the analyze.py (check comments in the source before running it). |