12 Commits

Author SHA1 Message Date
Cyril Roelandt
b190a39a28 Delete secret key on image deletion
We add two extra properties for images:
- cinder_encryption_key_id, which stores the encryption key id;
- cinder_encryption_key_deletion_policy, which states whether the secret
  key should be deleted on image deletion.

This feature uses the Castellan key manager, and will therefore work
with all its supported backends.

Implements: blueprint barbican-secret-deletion-support
DocImpact

Change-Id: Iacd0b3785ad4cdd06961e6d11967775806e009ff
2019-09-05 03:16:39 +02:00
zhangbailin
345b9e77fe Add description to common image properties
Add the 'description' attribute to common image properties to allow
users to record the purpose of the image in a human-readable format
in an interoperable way.

Co-authored-by: zhangbailin <zhangbailin@inspur.com>
Co-authored-by: Brian Rosmaita <rosmaita.fossdev@gmail.com>

Change-Id: Id0b148190cfa5fb9851ad2085a6b1ac1e0e7e352
Blueprint: add-description-field-to-image
2019-03-20 11:51:47 -04:00
Rui Yuan Dou
8886dcd114 Update invalid path and link for Image Properties
Change-Id: I67e84be3ceb4b6810f8b7c39d953b36c04641afb
2017-08-16 09:07:51 +08:00
Christian Berendt
a625e4e14b Fix broken link to the "Image service property keys" doc
Change-Id: I045d72ae2822717f7125c5116d804fdb66e1a097
2017-06-19 12:04:33 +02:00
kairat_kushaev
5814440bb9 Enhance description of instance-uuid option for image-create
Current description of instance-uuid may confuse users because
they may think that instance-uuid can serve as basis for image
but it just stores instance-uuid as image-metadata. So we need
to enhance the description in glanceclient.

Change-Id: I534709bdce588806178912fdd57fdf25bcca0449
Closes-Bug: #1496822
2016-01-18 15:14:15 +03:00
Jorge Niedbalski
82c63b1df4 Allow ramdisk_id, kernel_id to be null on schema
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.

APIImpact

Closes-Bug: #1447215
Related-Bug: #1447193

Change-Id: I645c797553ccaa84062f9ad28f2349ae738a0c96
Signed-off-by: Jorge Niedbalski <jorge.niedbalski@canonical.com>
2015-07-23 18:02:07 +00:00
Brian Rosmaita
e0aa3f8079 Removed controversial common image property 'os_libosinfo_shortid'
Change-Id: I3a0247b5547d5735aeb0bcbd3e9b4a74ea85208f
2013-02-26 20:55:58 +00:00
Brian Rosmaita
d706143781 Adding new common image properties
Revised schema and glance sphinx docs, renamed 'os_arch' to
'architecture' for backwards compatibility, renamed 'os_shortid'
to 'os_libosinfo_shortid'.

Partially implements blueprint glance-common-image-properties

Change-Id: I23d8ba82015f1f53bff65b4fa08463d905eeadd8
2013-02-20 17:36:34 +00:00
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
Brian Waldon
54cf135061 Use container_format and disk_format as-is in v2
Rather than force a painful migration to type and format, use
container_format and disk_format as they are in the v1 API for v2
since there isn't a clear path to an interoperable alternative.

Related to bp api-2

Change-Id: If8161390abf17961885e5c02e38d635b287aeca4
2012-08-10 14:09:49 -07:00
Dan Prince
88f802027c Correct format of schema-image.json.
Correct the JSON format of schema-image.json. Fixes issues where
glance-api won't start due to invalid JSON in this file.

Fixes LP Bug #1003470.

Change-Id: Ibacc49f2c45e233bd6ad25b3334e013acaae8339
2012-05-23 10:48:43 -04:00
Brian Waldon
eee5fecdf6 Support custom properties in schemas for v2 API
* Add glance schema API (glance.schema:API)
* Disallow custom properties that conflict with base properties
* Implements bp api-v2-schemas

Change-Id: Ibfa617cb5edf16627627debc30149669213d4b2d
2012-05-14 08:35:23 -07:00