Merge lp://qastaging/~yamahata/glance/lp802893 into lp://qastaging/~hudson-openstack/glance/trunk
Status: | Rejected | ||||
---|---|---|---|---|---|
Rejected by: | Jay Pipes | ||||
Proposed branch: | lp://qastaging/~yamahata/glance/lp802893 | ||||
Merge into: | lp://qastaging/~hudson-openstack/glance/trunk | ||||
Diff against target: |
459 lines (+330/-34) 3 files modified
glance/registry/server.py (+16/-3) glance/utils.py (+232/-31) tests/unit/test_utils.py (+82/-0) |
||||
To merge this branch: | bzr merge lp://qastaging/~yamahata/glance/lp802893 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Glance Core security contacts | Pending | ||
Review via email: mp+66096@code.qastaging.launchpad.net |
Commit message
Glance doesn't allow structured metadata
boot-from-volume patch series needs to store the informations about
block-device-
It has structured data as following. That is, its value can be
a dictionary or a list. And its child value also can be...
local image service (which was deleted) and fakeimage service can
properly store such metadata as they just use json.dumps/loads.
However, glance image service doesn't so that block-device-
informations can't be stored properly.
This patch teaches structured metadata to glance api/registry daemons.
metadata = {'name': 'fake public image',
{'virtual': 'ami', 'device': 'sda1'},
Description of the change
boot-from-volume patch series needs to store the informations about
block-device-
It has structured data as following. That is, its value can be
a dictionary or a list. And its child value also can be...
local image service (which was deleted) and fakeimage service can
properly store such metadata as they just use json.dumps/loads.
However, glance image service doesn't so that block-device-
informations can't be stored properly.
This patch teaches structured metadata to glance api/registry daemons.
metadata = {'name': 'fake public image',
{'virtual': 'ami', 'device': 'sda1'},
Unmerged revisions
- 147. By Isaku Yamahata
-
test_utils: added unit tests for new meta data (de)serializer.
- 146. By Isaku Yamahata
-
utils, glance/registry: meta data serializer/
deserialize allow dict/list value This patch teaches registry sever structured json format.
So far glance-registry accepts only simple key value pair. It doesn't
accept python dict/list as value. On the other hand nova local image
service which was deleted/fake image service do.On the other hand image meta data needs to have dict/list as value
for boot-from-volume. So this patch makes it possible.
This is an interesting idea, but I'm a little hesitant to call this a bug. Keeping metadata simple was an explicit design design. I think this should probably be filed as a blueprint targeted at diablo-3, assuming this is something we want. Thoughts, Jay?
I would also like to see a lot more testing around this. I would want to guarantee this will work at every level, not just the utils function that does the mapping.