nova-status: Add hw_machine_type check for libvirt instances

This change introduces a new nova-status check to ensure a machine type
has been recorded for each instance within an environment.

nova-status will fail with a warning when instances are found, directing
the operator to use the previously added nova-manage list_unset and
update commands to set a machine type for these instances. The logic for
this check comes entirely from the list_unset command.

It is noted in the warning output that this can be ignored if no libvirt
or HyperV based computes are present in the environment as
hw_machine_type is only used by these two virt drivers at present.

blueprint: libvirt-default-machine-type
Change-Id: Ic3ae48c57e61c4e45883fbae1328a448be025953
This commit is contained in:
Lee Yarwood
2021-01-13 15:28:30 +00:00
parent 9a5b07d9fc
commit 8cddd243bf
4 changed files with 54 additions and 1 deletions
+1
View File
@@ -146,6 +146,7 @@ Upgrade
**23.0.0 (Wallaby)**
* Checks for computes older than the previous major release
* Checks for any instances without ``hw_machine_type`` set.
See Also
========