Ambigous error when trying to boot SEV based instances from volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Alexey Stupnikov |
Bug Description
More image_meta.name use in hardware.py causing failures when presented with an empty ImageMeta object:
$ openstack flavor show m1.sev_med
+------
| Field | Value |
+------
| OS-FLV-
| OS-FLV-
| access_project_ids | None |
| description | None |
| disk | 2 |
| extra_specs | {'hw:mem_
| id | 3952db4d-
| name | m1.sev_med |
| os-flavor-
| properties | hw:mem_
| ram | 2048 |
| rxtx_factor | 1.0 |
| swap | 0 |
| vcpus | 4 |
+------
$ openstack volume create --bootable --size 1 blank
$ openstack server create --volume blank --flavor m1.sev_med --network private test
Unexpected API Error. Please report this at http://
<class 'NotImplemented
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
2021-06-03 12:29:28.207 12 ERROR nova.api.
This problem is rather cosmetic: memory encryption is only supported for instances with ephemeral root disks created from images:
Documentation: https:/ /docs.openstack .org/nova/ latest/ admin/sev. html
Quote:
In all cases, SEV instances can only be booted from images which have the hw_firmware_type property set to uefi, and only when the machine type is set to q35. This can be set per image by setting the image property hw_machine_ type=q35, or per compute node by the operator via libvirt. hw_machine_ type as explained above.
As a result, we are talking about flavor/image check not being able to handle cinder volume-based image objects.