osops-tools-generic/libvirt
Davide Panarese e2275cbf6d Review uuid verification method
Previous method verify if line that contain "source file"
exists into dumpxml of every virtual machine to extract
uuid of virtual machines running on hypervisor but this
line exists only when a disk file is present on the host
and boot from volumes for example has not "source file" line
into dumpxml and this script will kill them.
To avoid theese case it should be possible to use
'virsh list --uuid --all' to list directly the virtual machine
uuids of nova instances.
This changes avoid to shut running customer virtual machines.

This also fixes handling of --noop by correcting the condition checking
for arguments.

Change-Id: Ib9ec04a37bfe69e323f14f6bf4cb72b0fa818803
Closes-Bug: #1816434
Signed-off-by: Davide Panarese <dpanarese@enter.it>
2019-03-06 09:27:20 -06:00
..
cleanup-orphaned-vms.sh Review uuid verification method 2019-03-06 09:27:20 -06:00
instance_metrics.rb Updated documentation for instance_metrics.rb 2015-03-08 13:09:55 -04:00
remove-deleted-orphans.sh Fix tons of bashate issues for bug 1534660 2016-01-19 09:53:10 -07:00