Fix vTPM metadefs.

According to the Nova documentation[1], valid tpm_model properties
are: tpm-tis and tpm-crb, not TIS and CRB. This patch fixes the
misalignment and also adds missing tpm_version property.

[1]https://docs.openstack.org/nova/latest/admin/emulated-tpm.html

Closes-Bug: #2106223
Change-Id: I698dbd2946555c0a6455b1be17a6bf4a8d407ee7
This commit is contained in:
Franciszek Przewozny
2025-04-04 14:36:36 +02:00
parent 7dbb31949e
commit df5f2b3c86
2 changed files with 15 additions and 5 deletions

View File

@@ -17,14 +17,24 @@
"properties": {
"tpm_model": {
"title": "TPM model",
"description": "TPM model to use. Option CRB is only valid for TPM version 2.0. Defaults to TIS.",
"description": "TPM model to use. Option tpm-crb is only valid for TPM version 2.0. Defaults to tpm-tis.",
"operators": ["<or>"],
"type": "string",
"enum": [
"TIS",
"CRB"
"tpm-tis",
"tpm-crb"
],
"default": "TIS"
"default": "tpm-tis"
},
"tpm_version": {
"title": "TPM version",
"description": "TPM version to use. Required if requesting a vTPM. Model tpm-tis supports both, tpm-crb supports only 2.0.",
"operators": ["<or>"],
"type": "string",
"enum": [
"1.2",
"2.0"
]
}
},
"objects": []

View File

@@ -791,7 +791,7 @@ class MetadefLoadUnloadTests:
'OS::Glance::CommonImageProperties': 10,
'OS::Compute::GuestShutdownBehavior': 1,
'OS::Compute::VMwareFlavor': 2,
'OS::Compute::TPM': 1,
'OS::Compute::TPM': 2,
'OS::Compute::GuestMemoryBacking': 1,
'OS::Compute::LibvirtImage': 17,
'OS::Compute::VMware': 6,