Files
nova/releasenotes/notes/validate-machine-type-0d5f3dbd1e2ace31.yaml
Amit Uniyal 7b9312ef8e Adds validation for hw machine type in host caps
Added function '_check_machine_type' which accept host
capabilities (caps) and machine type as param and look
for machine type in host caps object, if machine type
is not found raises exception InvalidMachineType

Closes-Bug: #1933097
Change-Id: I59d22c0342d6b0f3c0398ce62ec177dae39b5677
2022-06-27 11:37:56 +00:00

10 lines
388 B
YAML

---
fixes:
- |
Added validation for image machine type property. Different APIs which
uses machine type for server creation, resize or rebuild will raise
InvalidMachineType exception with message "provided machine type is not
supported by host" and suggest possible/valid machine types in compute logs.
.. _bug 1933097: https://bugs.launchpad.net/nova/+bug/1933097