07bbcc7014
Since is possible to create images with no ramdisk_id, kernel_id parameters on glance v1, then the schema-image.json needs to be modified to allow null, string values for both attributes and prevent LP #1447193 to happen with a glance v2 client. Change-Id: I1319a1f6bdb69db90f9be7cf34df62cbd8538969 Closes-Bug: #1516330 Related-Bug: #1447193
29 lines
1.2 KiB
Django/Jinja
29 lines
1.2 KiB
Django/Jinja
{
|
|
"kernel_id": {
|
|
"type": ["null", "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": ["null", "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."
|
|
},
|
|
"architecture": {
|
|
"description": "Operating system architecture as specified in http://docs.openstack.org/trunk/openstack-compute/admin/content/adding-images.html",
|
|
"type": "string"
|
|
},
|
|
"os_distro": {
|
|
"description": "Common name of operating system distribution as specified in http://docs.openstack.org/trunk/openstack-compute/admin/content/adding-images.html",
|
|
"type": "string"
|
|
},
|
|
"os_version": {
|
|
"description": "Operating system version as specified by the distributor",
|
|
"type": "string"
|
|
}
|
|
}
|