blob: d262789bcb921f4901f152cea22bd428db89d4d6 [file] [log] [blame]
Nikolay Pliashechnykov316823e2020-08-14 15:44:50 +01001#!/bin/sh
Alexe286dbd2020-10-16 12:47:54 -05002ctl01_mask="ctl01"
3cmp_mask="cmp"
4echo "Using node masks: Control node ${ctl01_mask}, Compute nodes ${cmp_mask}"
Nikolay Pliashechnykov316823e2020-08-14 15:44:50 +01005echo "Gathering the nova data, this may take a while"
Alexe286dbd2020-10-16 12:47:54 -05006sudo salt -C "${ctl01_mask}*" cmd.run ". /root/keystonercv3; nova --debug list --all --limit -1" > nova_vms
Nikolay Pliashechnykov316823e2020-08-14 15:44:50 +01007echo "Gathering the virsh data, this may take even longer"
Alexe286dbd2020-10-16 12:47:54 -05008sudo salt -t 10 -C "${cmp_mask}*" cmd.run 'bash -c "paste <(virsh list --all --uuid) <(virsh list --all | grep instance)"' > virsh_vms