21d431013f
This change proposes the use of Alembic to manage Glance migrations. * Introduce new directory ``alembic_migrations`` under ``glance/db/sqlalchemy``. This directory is the home for all glance migrations henceforth. All the migration scripts reside under ``versions`` directory. * All the migrations up to Liberty are consolidated into one migration called ``liberty_initial`` as those migrations are not supported any more. Mitaka migrations are retained but under a different naming convention. * All the glance manage db commands are changed appropriately. They now use alembic to perform operations such as ``version``, ``upgrade``, ``sync`` and ``version_control``. * The database versions are not numerical any more. They are the revision ID of the last migration applied on the database. Since we don't support migrations before Mitaka, the Liberty version ``42`` will now appear as ``liberty``. Migration ``43`` and ``44`` in Mitaka appear as ``mitaka01`` and ``mitaka02`` respectively. * When one performs a ``sync`` or ``upgrade`` command, the database is first stamped with an equivalent alembic version before upgrading. * The older migration scripts are retained so that users can correlate with the new migrations. Also, it is probably safe to retain them until the alembic migrations become stable. Similarly, the ``migrate_version`` table is not removed yet. Partially-Implements: blueprint alembic-migrations Change-Id: Ie8594ff339a13bf190aefa308f54e97ee20ecfa2 Co-Authored-By: Alexander Bashmakov <alexander.bashmakov@intel.com> Depends-On: I1596499529af249bc48dfe859bbd31e90c48a5e0 |
||
---|---|---|
api-ref/source | ||
doc/source | ||
etc | ||
glance | ||
rally-jobs | ||
releasenotes | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.testr.conf | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
MANIFEST.in | ||
README.rst | ||
babel.cfg | ||
bandit.yaml | ||
pylintrc | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
README.rst
Team and repository tags
Glance
Glance is a project that provides services and associated libraries to store, browse, share, distribute and manage bootable disk images, other data closely associated with initializing compute resources, and metadata definitions.
Use the following resources to learn more:
API
To learn how to use Glance's API, consult the documentation available online at:
Developers
For information on how to contribute to Glance, please see the contents of the CONTRIBUTING.rst in this repository.
Any new code must follow the development guidelines detailed in the HACKING.rst file, and pass all unit tests.
Further developer focused documentation is available at:
Operators
To learn how to deploy and configure OpenStack Glance, consult the documentation available online at:
In the unfortunate event that bugs are discovered, they should be reported to the appropriate bug tracker. You can raise bugs here:
Other Information
During each design summit, we agree on what the whole community wants to focus on for the upcoming release. You can see image service plans:
For more information about the Glance project please see: