MEM_ENCRYPTION_CONTEXT trait is missing from the compute RP even if AMD SEV is enabled on the compute node
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Balazs Gibizer | ||
Bug Description
Compute nodes with amd-sev enabled are reporting that support is available but MEM_ENCRYPTION_
# Domain capabilites report support
[heat-admin@
<features>
<gic supported='no'/>
<vmcoreinfo supported='yes'/>
<genid supported='yes'/>
<backingSto
<backup supported='yes'/>
<sev supported='yes'>
<
<
<
<
</sev>
</features>
</domainCapabil
# It is active as well in /sys/module/kvm_amd
[heat-admin@
Y
[heat-admin@
# I do not see any errors with sev during startup
[heat-admin@
[ 0.000000] Command line: BOOT_IMAGE=
[ 0.000000] Kernel command line: BOOT_IMAGE=
[ 0.000000] Any video related functionality will be severely degraded, and you may not even be able to suspend the system properly
[ 101.753478] ccp 0000:24:00.1: sev enabled
[ 101.769894] ccp 0000:24:00.1: SEV firmware update successful
[ 102.058746] ccp 0000:24:00.1: SEV API:0.24 build:14
[ 120.398153] systemd[1]: Hostname set to <computeamdsev-1>.
[ 149.487548] SEV supported: 509 ASIDs
# MEM_ENCRYPTION_
(overcloud) [stack@undercloud-0 ~]$ !21
openstack --os-placement-
/usr/lib/
warnings.
+------
| name |
+------
| COMPUTE_
| COMPUTE_
| COMPUTE_
| COMPUTE_
| COMPUTE_
| COMPUTE_
| COMPUTE_
| HW_CPU_X86_BMI2 |
| COMPUTE_
| HW_CPU_X86_SSE |
| COMPUTE_
| COMPUTE_
| COMPUTE_
| COMPUTE_
| HW_CPU_X86_SSE42 |
| HW_CPU_X86_SSSE3 |
| HW_CPU_X86_SSE2 |
| COMPUTE_
| COMPUTE_
| COMPUTE_
| COMPUTE_
| COMPUTE_
| COMPUTE_
| HW_CPU_X86_SSE4A |
| HW_CPU_X86_SSE41 |
| COMPUTE_
| COMPUTE_
| HW_CPU_X86_AVX2 |
| HW_CPU_X86_FMA3 |
| HW_CPU_X86_MMX |
| HW_CPU_
| COMPUTE_
| HW_CPU_X86_SVM |
| HW_CPU_X86_AVX |
| COMPUTE_
| HW_CPU_X86_CLMUL |
| HW_CPU_X86_ABM |
| COMPUTE_
| COMPUTE_
| HW_CPU_X86_AMD_SVM |
| COMPUTE_
| COMPUTE_
| COMPUTE_
| COMPUTE_
| COMPUTE_
| HW_CPU_X86_F16C |
| COMPUTE_
| COMPUTE_
| COMPUTE_NODE |
| COMPUTE_
| COMPUTE_
| HW_CPU_X86_SHA |
| HW_CPU_X86_AESNI |
| COMPUTE_RESCUE_BFV |
| COMPUTE_
| HW_CPU_X86_BMI |
+------
It is seen on stable/wallaby.
From the compute logs I see that:
2022-05-23 21:25:20.873 2 DEBUG nova.virt.
] _kernel_
2022-05-23 21:25:20.873 2 INFO nova.virt.
The nova code looks for the "1\n" [1] in the file but it contains "Y\n" instead
def _kernel_
if not os.path.
return False
with open(SEV_
return contents == "1\n"
So it seems like a valid bug in nova.
| Changed in nova: | |
| assignee: | nobody → Balazs Gibizer (balazs-gibizer) |

Fix proposed to branch: master /review. opendev. org/c/openstack /nova/+ /843254
Review: https:/