The trove-manage client is the command-line interface (CLI) for the Database Management Utility API and its extensions.
This chapter documents trove-manage version 5.0.1
.
For help on a specific trove-manage command, enter:
$ trove-manage COMMAND --help
usage: trove-manage [-h] [--config-dir DIR] [--config-file PATH] [--debug]
[--log-config-append PATH] [--log-date-format DATE_FORMAT]
[--log-dir LOG_DIR] [--log-file PATH] [--nodebug]
[--nouse-syslog] [--noverbose] [--nowatch-log-file]
[--syslog-log-facility SYSLOG_LOG_FACILITY] [--use-syslog]
[--verbose] [--version] [--watch-log-file]
{db_sync,db_upgrade,db_downgrade,datastore_update,
datastore_version_update,db_recreate,
db_load_datastore_config_parameters,
datastore_version_flavor_add,
datastore_version_flavor_delete}
...
-h, --help
--config-dir DIR
*.conf
files from.
This file set is sorted, so as to provide a predictable parse order
if individual options are over-ridden. The set is parsed after
the file(s) specified via previous --config-file,
arguments hence over-ridden options in the directory take precedence.--config-file PATH
None
.--debug, -d
DEBUG
instead of default INFO
level).--log-config-append PATH, --log_config PATH
logging_context_format_string
).--log-date-format DATE_FORMAT
%(asctime)s
in log records. Default: None
.
This option is ignored if log_config_append
is set.--log-dir LOG_DIR, --logdir LOG_DIR
--log-file
paths.
This option is ignored if log_config_append
is set.--log-file PATH, --logfile PATH
use_stderr
.
This option is ignored if log_config_append
is set.--nodebug
--nouse-syslog
--nouse-syslog-rfc-format
--noverbose
--syslog-log-facility SYSLOG_LOG_FACILITY
log_config_append
is set.--use-syslog
log_config_append
is set.--verbose, -v
WARNING
instead of the default INFO
level.--version
--watch-log-file
log_file
option is specified and Linux platform is used.
This option is ignored if log_config_append
is set.usage: trove-manage datastore_update [-h] datastore_name default_version
Add or update a datastore. If the datastore already exists, the default version will be updated.
positional arguments:
datastore_name
default_version
optional arguments:
-h, --help
usage: trove-manage datastore_version_flavor_add [-h]
datastore_name
datastore_version_name
flavor_ids
positional arguments:
datastore_name
datastore_version_name
flavor_ids
optional arguments:
-h, --help
usage: trove-manage datastore_version_flavor_delete [-h]
datastore_name
datastore_version_name
flavor_id
positional arguments:
datastore_name
datastore_version_name
flavor_id
optional arguments:
-h, --help
usage: trove-manage datastore_version_update [-h]
datastore version_name manager
image_id packages active
Add or update a datastore version. If the datastore version already exists, all values except the datastore name and version will be updated.
positional arguments:
datastore
version_name
manager
image_id
packages
active
0
and 1
.optional arguments:
-h, --help
usage: trove-manage db_downgrade [-h] [--repo_path REPO_PATH] version
Downgrade the database to the specified version.
positional arguments:
version
optional arguments:
-h, --help
--repo_path REPO_PATH
usage: trove-manage db_load_datastore_config_parameters [-h]
datastore
datastore_version
config_file_location
Loads configuration group parameter validation rules for a datastore version into the database.
positional arguments:
datastore
datastore_version
config_file_location
optional arguments:
-h, --help
usage: trove-manage db_recreate [-h] [--repo_path REPO_PATH]
Drop the database and recreate it.
optional arguments:
-h, --help
--repo_path REPO_PATH
usage: trove-manage db_sync [-h] [--repo_path REPO_PATH]
Populate the database structure
optional arguments:
-h, --help
--repo_path REPO_PATH
usage: trove-manage db_upgrade [-h] [--version VERSION]
[--repo_path REPO_PATH]
Upgrade the database to the specified version.
optional arguments:
-h, --help
--version VERSION
--repo_path REPO_PATH
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.