Commit Graph

9 Commits

Author SHA1 Message Date
Sean McGinnis 126bd4af7f
Retire repo and note new content in openstack/osops
Change-Id: Ibf7eab00a55cda9423663feb2dc3feea8ac3778a
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-09-10 20:00:52 -05:00
Simon Leinen a7e8010598 Handle SHELVED_OFFLOADED and VERIFY_RESIZE states
This change adds support for the SHELVED_OFFLOADED and (partly)
VERIFY_RESIZE states.  Shelved-offloaded instances don't have a
hypervisor associated with them.  VERIFY_RESIZE instances should still
be running on their associated hypervisor.  They are also present, but
"shut off", on another hypervisor.  Even with this change, the code
still generates a warning about the instance being present on multiple
hypervisors.  Personally I find the warning quite useful, and I don't
really know what to do about it.  Maybe we should suppress the warning
if the instance hasn't been in this state for long.

Change-Id: I3a56500bd350a070c96f719e702a5334ec8c8558
2017-02-20 09:54:47 +01:00
Saverio Proto 24e0bff88c nova-libvirt-compare.py: compare Nova state to hypervisor state
Change-Id: I80fb1ea4896fb4ce539fd67da20e34ec658ecdf5
2017-01-05 11:04:49 +01:00
Xav Paice e4eb5582bb Add livemigration helper for hypervisor maint
Adds a very basic one-by-one livemigration tool to remove instances from
a host, but not quite as aggressively as the openstack CLI tool.

Change-Id: I54b03e7f7eb6eb0f4efc10de97dc208498f2a56b
2016-10-19 16:31:38 +13:00
Matt Jarvis f62f561c80 Fix incorrect output for json output case
Fix output of an empty list when using JSON output. Tidy up some line
lengths.

Change-Id: I3036271379fb703092d4b188911d6858c30a6894
2016-06-30 20:24:03 +01:00
Matt Jarvis 6eb896dee3 Add --all option to validate all defined server groups
Change-Id: Idcdde8f5b97c89163f4eb075a896b8f17ca95bcb
2016-06-29 16:39:59 +01:00
Matt Jarvis 651cd91f8e Add JSON output and re-factor
Add a JSON output flag to enable this tool to more easily be called by
other scripts and used in pipelines. Re-factor a bit, add a class and
remove some code duplication

Change-Id: If4586cf18a7e30580a00e6d9d1d7e166d4001aea
2016-06-28 15:44:32 +01:00
Nick Jones e3b5bc9634 Nova Server Group anti-affinity policy validation tool
This script checks a given Nova Server Group for any instances that fall
foul of invalid anti-affinity rules, i.e there are multiple instances
running on the same hypervisor in a Server Group where the anti-affinity
policy has been set.

Example usage:

./antiaffinitycheck.py --check c353197c-5fbb-410f-a7b3-843452a55276

Anti-affinity rules violated in Server Group: c353197c-5fbb-410f-a7b3-843452a55276
+--------------------------------------+-----------+--------------+
| Instance ID                          | Instance  | Hypervisor   |
+--------------------------------------+-----------+--------------+
| 4c38cf7f-2073-4d96-b377-d2bd29595d8a | app-db-12 | compute2.dev |
| 5c40b1e9-8b38-4978-98b2-391e53e65418 | app-db-11 | compute2.dev |
+--------------------------------------+-----------+--------------+

Change-Id: I2fee4c5eaa1aa0b511c6912f6d7cc35f736621a8
2016-04-09 18:21:22 +01:00
Matt Fischer 26df32d3d4 Add a nova-vms-on-host tool.
We had a host die last week and it's really annoying to iterate all the
VMs to get customer contact info. That inspired this tool. Given a
hypervisor, get all customer names and emails (pasteable) so that you
can let the customers know about a potential issue. Also useful for
maintenance.

Change-Id: I783a942755d9c61a33a5f32ded10391db56ba124
2015-12-14 23:12:33 -07:00