781da9354f
Including removal of the example conf in docs. Including glance-registry command entrypoint to eventlet. Including rpc_controller from wsgi, changed to reject. Not including the files devstack is depending on. This change means that glance-registry starts and announces that it has been removed. This change means that when ran as wsgi app, all calls to /rpc endpoint will be rejected. This will allow devstack to make a graceful transition to life without the glance registry, which was deprecated in Newton release. Change-Id: I7bf3284cba4c38605fb50b3c458e53f896f34086
107 lines
2.5 KiB
ReStructuredText
107 lines
2.5 KiB
ReStructuredText
=============
|
|
glance-manage
|
|
=============
|
|
|
|
-------------------------
|
|
Glance Management Utility
|
|
-------------------------
|
|
|
|
.. include:: header.txt
|
|
|
|
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::
|
|
|
|
glance-manage db_sync
|
|
|
|
Note: glance-manage commands can be run either like this::
|
|
|
|
glance-manage db sync
|
|
|
|
or with the db commands concatenated, like this::
|
|
|
|
glance-manage db_sync
|
|
|
|
|
|
|
|
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.
|
|
|
|
``db_upgrade [VERSION]``
|
|
This will take an existing database and upgrade it to the
|
|
specified VERSION.
|
|
|
|
``db_version_control``
|
|
Place the database under migration control.
|
|
|
|
``db_sync [VERSION]``
|
|
Place an existing database under migration control and upgrade it to
|
|
the specified VERSION.
|
|
|
|
``db_expand``
|
|
Run this command to expand the database as the first step of a rolling
|
|
upgrade process.
|
|
|
|
``db_migrate``
|
|
Run this command to migrate the database as the second step of a
|
|
rolling upgrade process.
|
|
|
|
``db_contract``
|
|
Run this command to contract the database as the last step of a rolling
|
|
upgrade process.
|
|
|
|
``db_export_metadefs [PATH | PREFIX]``
|
|
Export the metadata definitions into json format. By default the
|
|
definitions are exported to /etc/glance/metadefs directory.
|
|
``Note: this command will overwrite existing files in the supplied or
|
|
default path.``
|
|
|
|
``db_load_metadefs [PATH]``
|
|
Load the metadata definitions into glance database. By default the
|
|
definitions are imported from /etc/glance/metadefs directory.
|
|
|
|
``db_unload_metadefs``
|
|
Unload the metadata definitions. Clears the contents of all the glance
|
|
db tables including metadef_namespace_resource_types, metadef_tags,
|
|
metadef_objects, metadef_resource_types, metadef_namespaces and
|
|
metadef_properties.
|
|
|
|
OPTIONS
|
|
=======
|
|
|
|
**General Options**
|
|
|
|
.. include:: general_options.txt
|
|
|
|
.. include:: footer.txt
|
|
|
|
CONFIGURATION
|
|
=============
|
|
|
|
The following paths are searched for a ``glance-manage.conf`` file in the
|
|
following order:
|
|
|
|
* ``~/.glance``
|
|
* ``~/``
|
|
* ``/etc/glance``
|
|
* ``/etc``
|
|
|
|
All options set in ``glance-manage.conf`` override those set in
|
|
``glance-api.conf``.
|