The glance.cmd.manage Module

Glance Management Utility

class glance.cmd.manage.DbCommands[source]

Bases: object

Class for managing the db

contract()[source]

Run the contraction phase of a rolling upgrade procedure.

expand()[source]

Run the expansion phase of a rolling upgrade procedure.

export_metadefs(path=None)[source]

Export metadefinitions data from database to files

load_metadefs(path=None, merge=False, prefer_new=False, overwrite=False)[source]

Load metadefinition json files to database

migrate()[source]
purge(age_in_days=30, max_rows=100)[source]

Purge deleted rows older than a given age from glance tables.

sync(version=’pike01’)[source]

Place an existing database under migration control and upgrade it.

unload_metadefs()[source]

Unload metadefinitions from database

upgrade(version=’pike01’)[source]

Upgrade the database’s migration level

version()[source]

Print database’s current migration level

version_control(version=’liberty’)[source]

Place a database under migration control

class glance.cmd.manage.DbLegacyCommands(command_object)[source]

Bases: object

Class for managing the db using legacy commands

contract()[source]
expand()[source]
export_metadefs(path=None)[source]
load_metadefs(path=None, merge=False, prefer_new=False, overwrite=False)[source]
migrate()[source]
sync(version=’pike01’)[source]
unload_metadefs()[source]
upgrade(version=’pike01’)[source]
version()[source]
version_control(version=’liberty’)[source]
glance.cmd.manage.add_command_parsers(subparsers)[source]
glance.cmd.manage.add_legacy_command_parsers(command_object, subparsers)[source]
glance.cmd.manage.args(*args, **kwargs)[source]
glance.cmd.manage.main()[source]
glance.cmd.manage.methods_of(obj)[source]

Get all callable methods of an object that don’t start with underscore

returns a list of tuples of the form (method_name, method)

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.