2011-02-02 06:53:05 +00:00
|
|
|
=============
|
|
|
|
glance-manage
|
|
|
|
=============
|
|
|
|
|
|
|
|
-------------------------
|
|
|
|
Glance Management Utility
|
|
|
|
-------------------------
|
|
|
|
|
|
|
|
:Author: glance@lists.launchpad.net
|
2014-01-16 22:03:58 -07:00
|
|
|
:Date: 2014-01-16
|
2011-02-02 06:53:05 +00:00
|
|
|
:Copyright: OpenStack LLC
|
2014-01-16 22:03:58 -07:00
|
|
|
:Version: 2014.1
|
2011-02-02 06:53:05 +00:00
|
|
|
:Manual section: 1
|
|
|
|
:Manual group: cloud computing
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
========
|
|
|
|
|
|
|
|
glance-manage [options]
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
===========
|
|
|
|
|
|
|
|
glance-manage is a utility for managing and configuring a Glance installation.
|
|
|
|
One important use of glance-manage is to setup the database. To do this run::
|
|
|
|
|
2014-01-16 22:03:58 -07:00
|
|
|
glance-manage db_sync
|
|
|
|
|
|
|
|
Note: glance-manage commands can be run either like this::
|
|
|
|
|
2013-09-18 18:52:47 +05:30
|
|
|
glance-manage db sync
|
2011-02-02 06:53:05 +00:00
|
|
|
|
2014-01-16 22:03:58 -07:00
|
|
|
or with the db commands concatenated, like this::
|
2011-02-02 06:53:05 +00:00
|
|
|
|
2014-01-16 22:03:58 -07:00
|
|
|
glance-manage db_sync
|
2011-02-02 06:53:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2014-01-16 22:03:58 -07:00
|
|
|
COMMANDS
|
|
|
|
========
|
|
|
|
|
|
|
|
**db**
|
|
|
|
This is the prefix for the commands below when used with a space
|
|
|
|
rather than a _. For example "db version".
|
|
|
|
|
|
|
|
**db_version**
|
|
|
|
This will print the current migration level of a glance database.
|
2011-02-02 06:53:05 +00:00
|
|
|
|
2014-01-16 22:03:58 -07:00
|
|
|
**db_upgrade <VERSION>**
|
|
|
|
This will take an existing database and upgrade it to the
|
|
|
|
specified VERSION.
|
2011-02-02 06:53:05 +00:00
|
|
|
|
2014-01-16 22:03:58 -07:00
|
|
|
**db_downgrade <VERSION>**
|
|
|
|
This will take an existing database and downgrade it to the
|
|
|
|
specified VERSION.
|
|
|
|
|
|
|
|
**db_version_control**
|
|
|
|
Place the database untder migration control.
|
|
|
|
|
|
|
|
**db_sync <VERSION> <CURRENT_VERSION>**
|
|
|
|
Place a database under migration control and upgrade, creating
|
|
|
|
it first if necessary.
|
|
|
|
|
|
|
|
OPTIONS
|
2011-02-02 06:53:05 +00:00
|
|
|
========
|
|
|
|
|
2014-01-16 22:03:58 -07:00
|
|
|
**General Options**
|
2011-02-02 06:53:05 +00:00
|
|
|
|
2014-01-16 22:03:58 -07:00
|
|
|
.. include:: general_options.rst
|
|
|
|
|
|
|
|
**--sql_connection=CONN_STRING**
|
|
|
|
A proper SQLAlchemy connection string as described
|
|
|
|
`here <http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.html?highlight=engine#sqlalchemy.create_engine>`_
|
2011-02-02 06:53:05 +00:00
|
|
|
|
2014-01-16 22:03:58 -07:00
|
|
|
.. include:: footer.rst
|