glance/etc/schema-image.json
Brian Waldon ec1a9f8988 Add kernel/ramdisk_id, instance_uuid to v2 schema
Nova depends on a few properties to be able to interact with
images in Glance effectively. The three added in this patch
are kernel_id, ramdisk_id and instance_uuid. These properties
are just being added to the default v2 schema, so they can
be overwritten if a consumer decides they need to.

Fixes bug 1039818

Change-Id: I5cfd5f0b5c8d1d526d56d99de738f9271aa641c1
2012-08-29 09:31:38 -07:00

17 lines
694 B
JSON

{
"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": {
"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": {
"type": "string",
"description": "ID of instance used to create this image."
}
}