5369e86e8d
Sometime during Kilo, the unique constraints on metadef_namespaces (namespace) metadef_objects(namespace_id, name) metadef_properties(namespace_id, name) metadef_tags(namespace_id, name) metadef_resource_types(name) were replaced with non-unique indices. I believe this was done erroneously to make the migrate_repo/versions/scripts match the db/sqlalchemy/models_metadef.py definitions. Unfortunately, the schema scripts were correct with the unique constraints and what should have changed was models_metadef.py. This bug, puts one more migrate script in place which will rename any duplicate records it finds to make them unique and then re-establishes the unique constraints while dropping the non-unique indices. It also, fixes models_metadef.py and adds in tests to attempt to create duplicates which should result in an HTTPConflict. Change-Id: Idf3569a27d64abea3ed6ec92fb77b36a4d6d5fd5 Closes-Bug: 1468946 |
||
---|---|---|
doc/source | ||
etc | ||
glance | ||
rally-jobs | ||
tools | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.testr.conf | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
MANIFEST.in | ||
README.rst | ||
babel.cfg | ||
openstack-common.conf | ||
pylintrc | ||
requirements.txt | ||
run_tests.sh | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
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: