monasca-api/monasca_api
Johannes Grassler 0250f81cdc Add monasca_db command line tool
This commit adds a schema management tool for the Monasca
configuration database. Apart from the usual OpenStack schema
management tool subcommands (stamp, upgrade, version) it has
two extra subcommands:

* fingerprint: for computing a SHA1 fingerprint of the
               currently currently active database schema.
* detect-revision: for identifiying the Alembic revision
                   (if any) corresponding to a database
                   schema that was created with one of the
                   legacy SQL scripts.

The data provided by the detect-revision subcommand can be
used for stamping the database with Alembic version metadata
when transitioning an existing Monasca configuration database
to Alembic based database migrations.

Story: 2001654
Task: 14341

Change-Id: Ibdd877a23ab5d6d1bbf8d83515c0197554098526
2018-08-01 11:10:14 +00:00
..
api Merge "Enable uWSGI support in devstack" 2018-06-15 09:26:56 +00:00
cmd Add monasca_db command line tool 2018-08-01 11:10:14 +00:00
common Merge "Python 3.5: Fix alarms repository" 2018-07-03 13:05:59 +00:00
conf Using oslo.policy for monasca-api 2018-06-05 12:25:07 +00:00
db Add monasca_db command line tool 2018-08-01 11:10:14 +00:00
expression_parser Remove xrange for run both Python 2 and Python 3 2017-05-31 08:51:43 +02:00
hacking Remove xrange for run both Python 2 and Python 3 2017-05-31 08:51:43 +02:00
healthcheck metrics_db_check: move check methods to each metrics drivers 2017-10-23 17:14:15 +09:00
policies Move roles initialization to individual modules 2018-06-14 10:06:07 +02:00
tests Python3: Fix NotificationMethodRepoDB tests 2018-07-05 10:51:59 +02:00
v2 Merge "Using oslo.policy for monasca-api" 2018-06-07 10:52:26 +00:00
__init__.py Updated for Falcon 0.2 and clean-up 2015-06-06 21:47:03 -06:00
config.py Add monasca_db command line tool 2018-08-01 11:10:14 +00:00
healthchecks.py Using oslo.policy for monasca-api 2018-06-05 12:25:07 +00:00
version.py Prepare foundation for doc migration 2017-07-31 10:43:49 +00:00