Commit Graph

7 Commits

Author SHA1 Message Date
Sean McGinnis 537bc74d55
Retire repo and note new content in openstack/osops
Change-Id: I8a36e470dfcf2e5db0a702d371b98cd94082bb4d
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-09-14 09:08:50 -05:00
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
Peter Jenkins 6c67ad007e Fix tons of bashate issues for bug 1534660
Fixing https://bugs.launchpad.net/osops/+bug/1534660. Some of these
fixes are not pretty and I've not been able to test the tools still
work.

I think the bashate rules should be relaxed for operations tools ... or
people shouldn't use bash for such tools. Sometimes it's pretty
difficult to shorten lines and still have readable code.

Co-Authored-By: Peter Jenkins <mail@peter-jenkins.com>
Co-Authored-By: Mike Dorman <mdorman@godaddy.com>
Change-Id: I70cfc2420cc9a2a4ec553ab7b7ca43a7fc38a9f0
2016-01-19 09:53:10 -07:00
Christian Berendt b9da55d0f8 Cleanup errors in shell scripts identified by bashate
Change-Id: Ib3c4d841e4282368343b81e5824a0319e9817b48
2015-12-16 15:58:34 -07:00
Joe Topjian d7911e8523 Updated documentation for instance_metrics.rb 2015-03-08 13:09:55 -04:00
Mike Dorman 92b369044f Adding collection of misc tools and scripts 2014-10-07 10:29:10 -06:00
Joe Topjian 634710542e Added instance_metrics.rb
Added a script to collect statistics of running instances on
libvirt-based compute nodes.
2014-08-28 14:22:42 -06:00