OpenStack Image Management (Glance)
Go to file
Flavio Percoco ccea7b6856 Return empty str for permissive, none, properties
In Kilo, a patch landed to allow glance for returning None values. While
this was not an issue for the base and registered properties in the
`schema-image.json` file, it did break backwards compatibility for the
custom images created in V1 that have a vulue equal to None.

In order to restore compatibility, this changes returns empty strings
for those custom properties that exist in the database but that are not
part of the V2 schema. This strategy will help migrating such properties
when updates to the image data happens and it'll be a noop for just
reads.

We can't use a schema migration because we don't know off hand which of
the properties in the database are the ones that would need to be
migrated.

While we could skip this properties entirely, this patch prefers to send
the empty string back as a way to create awareness on the fact that
there's an empty property in the database. Since we didn't use to return
these properties, we can assume they weren't being used.

Closes-bug: #1419823
Change-Id: I59bb27a892fe9485fc98a612ca0148a84123f5a2
2015-06-09 13:17:55 +02:00
doc/source Fix typo in documentation 2015-05-15 13:48:13 +00:00
etc Merge "Taskflow engine mode should be parallel in sample conf" 2015-05-25 14:03:57 +00:00
glance Return empty str for permissive, none, properties 2015-06-09 13:17:55 +02:00
rally-jobs Changes in rally-jobs/README.rst 2015-06-04 17:45:04 +03:00
tools Leverage dict comprehension in PEP-0274 2015-05-28 01:46:02 +00:00
.coveragerc Update .coveragerc 2013-02-06 16:47:06 +02:00
.gitignore Git ignore covhtml directory 2015-02-26 12:50:23 +01:00
.gitreview Add .gitreview config file for gerrit. 2011-10-24 11:02:16 -04:00
.mailmap Add a mailmap entry for myself 2014-02-11 12:00:44 +08:00
.testr.conf Switch to testrepository for running tests 2014-01-29 08:30:55 +08:00
CONTRIBUTING.rst Workflow documentation is now in infra-manual 2014-12-05 03:30:36 +00:00
HACKING.rst Leverage dict comprehension in PEP-0274 2015-05-28 01:46:02 +00:00
LICENSE Add a LICENSE file. 2012-01-03 10:14:01 -05:00
MANIFEST.in Update version code from oslo. 2013-01-13 14:27:48 -08:00
README.rst Fix rendering of readme document 2015-01-07 11:07:06 +00:00
babel.cfg Added first step of babel-based translations. 2012-02-28 02:00:37 -08:00
openstack-common.conf Use graduated oslo.policy 2015-03-17 23:50:02 -05:00
pylintrc Typo in pylintrc file 2015-03-25 11:21:16 +01:00
requirements.txt Updated from global requirements 2015-05-08 11:08:35 +02:00
run_tests.sh Provide a quick way to run flake8 2014-12-29 02:15:36 -05:00
setup.cfg Merge "Remove unneeded setup hook from setup.cfg" 2015-05-01 17:06:42 +00:00
setup.py Updated from global requirements 2014-06-19 13:54:45 -04:00
test-requirements.txt Updated from global requirements 2015-05-08 11:08:35 +02:00
tox.ini Bug : tox -egenconfig failure (no glance-search.conf) 2015-05-25 05:41:40 +02:00

README.rst

Glance

Glance is a project that defines services for discovering, registering, retrieving and storing virtual machine images.

Use the following resources to learn more: