Nikolay Pliashechnykov | 316823e | 2020-08-14 15:44:50 +0100 | [diff] [blame] | 1 | #!/bin/sh |
Alex | e286dbd | 2020-10-16 12:47:54 -0500 | [diff] [blame] | 2 | ctl01_mask="ctl01" |
| 3 | cmp_mask="cmp" |
| 4 | echo "Using node masks: Control node ${ctl01_mask}, Compute nodes ${cmp_mask}" |
Nikolay Pliashechnykov | 316823e | 2020-08-14 15:44:50 +0100 | [diff] [blame] | 5 | echo "Gathering the nova data, this may take a while" |
Alex | e286dbd | 2020-10-16 12:47:54 -0500 | [diff] [blame] | 6 | sudo salt -C "${ctl01_mask}*" cmd.run ". /root/keystonercv3; nova --debug list --all --limit -1" > nova_vms |
Nikolay Pliashechnykov | 316823e | 2020-08-14 15:44:50 +0100 | [diff] [blame] | 7 | echo "Gathering the virsh data, this may take even longer" |
Alex | e286dbd | 2020-10-16 12:47:54 -0500 | [diff] [blame] | 8 | sudo salt -t 10 -C "${cmp_mask}*" cmd.run 'bash -c "paste <(virsh list --all --uuid) <(virsh list --all | grep instance)"' > virsh_vms |