Ability to add metadata to an image through horizon
When creating an image through horizon, the user can specify some properties for the image. For example, the user can specify the size, image name, etc. Often, images need to be created with metadata, so that the virt driver can spawn images correctly. For example, whether the vm's controller is an ide or scsi, the virt driver must be notified. Glance enables this type of behavior by letting the user specify extra image properties in the form of key=value, a user can specify multiple sets of key=value pairs, which will be the images metadata. Horizon doesn't expose this basic functionality.
This blueprint will implement this functionality by adding an extra text field in the create image form. The user will be able to add metadata by inputting a key=value pairs on each line. For example:
Key1=val1
Key2=val2
This will be passed to glance as --property key1=val1 and --property key2=val2
Examples of image metadata:
http://
Glance’s support for image metadata:
The [--property <key=value>]flag enables the addition of metadata key=value pairs
http://
Blueprint information
- Status:
- Complete
- Approver:
- David Lyle
- Priority:
- Low
- Drafter:
- Maithem
- Direction:
- Approved
- Assignee:
- Maithem
- Definition:
- Superseded
- Series goal:
- None
- Implementation:
- Needs Code Review
- Milestone target:
- None
- Started by
- Maithem
- Completed by
- David Lyle
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Allow metadata addition for image creation
Why is this marked as superseded? Superseded by what, the review is still in-progress?
[david-lyle | 2014.10.14] This work is superseded by https:/
The new method reduces the risk of typos, etc and is a fuller implementation of adding metadata.