
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
10 lines
388 B
YAML
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
|