glance/etc/metadefs/glance-common-image-props.json
prithiv d8a108e7b3 Add CPU Mode Metadata Def
Creates Metadata def for CPU Mode. The allowed
modes are "none", "host-passthrough", "custom"
and "host-model".

Change-Id: Id7a01546334ddea952708143c5dfc7861353f2fc
Closes-Bug: 1636243
2022-05-18 18:04:59 +00:00

67 lines
3.4 KiB
JSON

{
"display_name": "Common Image Properties",
"namespace": "OS::Glance::CommonImageProperties",
"description": "When adding an image to Glance, you may specify some common image properties that may prove useful to consumers of your image.",
"protected": true,
"resource_type_associations" : [
],
"properties": {
"kernel_id": {
"title": "Kernel ID",
"type": "string",
"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$",
"description": "ID of image stored in Glance that should be used as the kernel when booting an AMI-style image."
},
"ramdisk_id": {
"title": "Ramdisk ID",
"type": "string",
"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$",
"description": "ID of image stored in Glance that should be used as the ramdisk when booting an AMI-style image."
},
"instance_uuid": {
"title": "Instance ID",
"type": "string",
"description": "Metadata which can be used to record which instance this image is associated with. (Informational only, does not create an instance snapshot.)"
},
"architecture": {
"title": "CPU Architecture",
"description": "The CPU architecture that must be supported by the hypervisor. For example, x86_64, arm, or ppc64. Run uname -m to get the architecture of a machine. We strongly recommend using the architecture data vocabulary defined by the libosinfo project for this purpose.",
"type": "string"
},
"os_distro": {
"title": "OS Distro",
"description": "The common name of the operating system distribution in lowercase (uses the same data vocabulary as the libosinfo project). Specify only a recognized value for this field. Deprecated values are listed to assist you in searching for the recognized value.",
"type": "string"
},
"hw_cpu_mode": {
"title": "CPU Mode",
"description": "This specifies the CPU Mode for the guest vm",
"type": "string"
},
"os_version": {
"title": "OS Version",
"description": "Operating system version as specified by the distributor. (for example, '11.10')",
"type": "string"
},
"description": {
"title": "Image description",
"description": "A human-readable string describing this image.",
"type": "string"
},
"cinder_encryption_key_id": {
"title": "Cinder Encryption Key ID",
"description": "Identifier in the OpenStack Key Management Service for the encryption key for the Block Storage Service to use when mounting a volume created from this image",
"type": "string"
},
"cinder_encryption_key_deletion_policy": {
"title": "Cinder Encryption Key Deletion Policy",
"description": "States the condition under which the Image Service will delete the object associated with the 'cinder_encryption_key_id' image property. If this property is missing, the Image Service will take no action",
"type": "string",
"enum": [
"on_image_deletion",
"do_not_delete"
]
}
}
}