support structured data(list and dict) in glance metadata
Support structure data in glance metadata
The the moment glance metadata is simple key value pair. Thus structured data
(list and dict)
Why structure data is wanted?
For boot-from-volume support in nova, the information about block device
mapping is stored in image metadata which is stored as metadata of glance.
That is, which device of guest device is which nova volume/ephemeral devices.
So it's a list of dict.
Example of metadata
metadata = {'name': 'fake public image',
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Not
- Drafter:
- Isaku Yamahata
- Direction:
- Needs approval
- Assignee:
- Isaku Yamahata
- Definition:
- Obsolete
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
- Brian Waldon
Whiteboard
The solution is to encode the data as a string (probably JSON) and store that as the value of your metadata.