glance/releasenotes/notes/implement-lite-spec-db-sync-check-3e2e147aec0ae82b.yaml
Steve Lewis 08d1c7f930 Implementation of db check command
This patch adds a new "glance-manage db check" command
which will check the current state of the users upgrade
repos and relay info back to the user if the user has any
outstanding db upgrades left to run with appropriate exit code.

Co-Authored-By: Bhagyashri Shewale <bhagyashri.shewale@nttdata.com>

Implements: Ie1e2fec2361765ddf23da897abcf0e12e682612e
Change-Id: I1e0b02d615690f65a17b4ccfe4e4a72cc9e15ada
2018-02-08 17:32:33 +05:30

28 lines
1.0 KiB
YAML

---
features:
- |
Added a new command ``glance-manage db check``, the command will
allow a user to check the status of upgrades in the database.
upgrade:
- |
Using db check
In order to check the current state of your database upgrades, you may run the
command ``glance-manage db check``. This will inform you of any
outstanding actions you have left to take.
Here is a list of possible return codes:
- A return code of ``0`` means you are currently up to date with the latest
migration script version and all ``db`` upgrades are complete.
- A return code of ``3`` means that an upgrade from your current database
version is available and your first step is to run ``glance-manage db expand``.
- A return code of ``4`` means that the expansion stage is complete, and the
next step is to run ``glance-manage db migrate``.
- A return code of ``5`` means that the expansion and data migration stages are
complete, and the next step is to run ``glance-manage db contract``.