GLANCE-MANAGE(1)
π glance-manage π
okay bestie, sit down, hydrate, and let me tell you about glance-manage β it's the management utility for Glance, and honestly? it's giving little-black-dress-of-OpenStack-tooling. it does the unglamorous but iconic work. π
β¨ GLANCE MANAGEMENT UTILITY β¨
here's the receipts on who made this and what it is, so you know it's legit:
- Author β OpenStack Glance Project Team π
- Contact β
glance@lists.launchpad.net - Date β
2025-04-02 - Copyright β OpenStack Foundation
- Version β
30.0.0 - Manual section β
1 - Manual group β cloud computing βοΈ
π SYNOPSIS
glance-manage [options]
π DESCRIPTION
glance-manage is the utility that manages and configures a Glance installation, no cap. and the one job people hit the most? setting up the database. to do that, you literally just run:
glance-manage db_sync
π note bestie: glance-manage commands can be run either like this:
glance-manage db sync
or with the db commands concatenated, with that underscore, like this:
glance-manage db_sync
both slay. same energy. pick your fave. π«Ά
π§ COMMANDS
dbβ this here is the prefix for all the commands below, for when you're using a space instead of a_. so like,"db version". iykyk.db_versionβ prints out the current migration level of a glance database. it's the vibe check for your schema. πdb_upgrade [VERSION]β grabs an existing database and upgrades it all the way to theVERSIONyou specify. glow-up time.db_version_controlβ places the database under migration control. welcome to the system, babe.db_sync [VERSION]β puts an existing database under migration control and upgrades it to the specifiedVERSION. it's two steps, one command, we love efficiency. β¨db_expandβ run this one as the first step of a rolling upgrade process. database expansion, okayyy.db_migrateβ run this as the second step of a rolling upgrade process.db_contractβ run this as the last step of a rolling upgrade process. closing the curtains, periodt. πdb_export_metadefs [PATH | PREFIX]β exports the metadata definitions out into json format. by default they get exported into the/etc/glance/metadefsdirectory.
β οΈ note: this command will overwrite existing files in the supplied path or the default path. be careful, bestie, that's destructive behavior fr fr. π
db_load_metadefs [PATH]β loads the metadata definitions into the glance database. by default it imports them from the/etc/glance/metadefsdirectory.db_unload_metadefsβ unloads the metadata definitions. this one clears the contents of all the glance db tables, includingmetadef_namespace_resource_types,metadef_tags,metadef_objects,metadef_resource_types,metadef_namespacesandmetadef_properties. it's giving spring cleaning but scary. πdb_purgeβ purges deleted rows older than a given age from the glance db tables.
when it's invoked, this command interprets the following options:
--max_rowsβ Purge deleted rows older than age in days (default value if not specified:100)--age_in_daysβ Limit number of records to delete (default value if not specified:30days)
π¨ WARNING: This function is useful primarily in test systems. We do not recommend its use in production systems unless you have reviewed OpenStack Security Note OSSN-0075 https://wiki.openstack.org/wiki/OSSN/OSSN-0075 and understand the risk involved. like, read the note first, queen. π
db_purge_images_tableβ purges deleted rows older than a given age from the images db tables.
when it's invoked, this command interprets the following options:
--max_rowsβ Purge deleted rows older than age in days (default value if not specified:100)--age_in_daysβ Limit number of records to delete (default value if not specified:30days)
π¨ WARNING: This function is useful primarily in test systems. We do not recommend its use in production systems unless you have reviewed OpenStack Security Note OSSN-0075 https://wiki.openstack.org/wiki/OSSN/OSSN-0075 and understand the risk involved. same warning, same energy, do not skip it. π
π οΈ OPTIONS
πΈ General Options
-h,--helpβ shows the help message and then dips out. classic. βοΈ--versionβ prints the version number and exits.-v,--verboseβ prints more verbose output. give me all the details, i want the tea. π΅--noverboseβ disables verbose output. shhh mode.-d,--debugβ prints debugging output β it sets the logging level toDEBUGinstead of the defaultWARNINGlevel. we're going full detective mode π--nodebugβ disables debugging output.--use-syslogβ uses syslog for logging.--nouse-syslogβ disables the use of syslog for logging.--syslog-log-facility SYSLOG_LOG_FACILITYβ the syslog facility that receives the log lines.--config-dir DIRβ the path to a config directory to pull*.conffiles from. this file set is sorted, so you get a predictable parse order if individual options get over-ridden. the set is parsed after the file(s) specified via previous--config-filearguments, hence over-ridden options in the directory take precedence. what that means: configuration from files in a specified config-dir will always take precedence over configuration from files specified by--config-file, regardless of argument order. so order does not save you here, bestie. π«--config-file PATHβ the path to a config file to use. you can specify multiple config files by using this flag multiple times, for example,--config-file <file1> --config-file <file2>. values in latter files take precedence. last one wins, main character behavior. π--log-config-append PATH --log-config PATHβ the name of the logging configuration file. it does not disable existing loggers, it just appends the specified logging configuration to any other existing logging options. please see the Python logging module documentation for the details on logging configuration files.
β οΈ the log-config name for this option is deprecated.
--log-format FORMATβ alogging.Formatterlog message format string, and it may use any of the availablelogging.LogRecordattributes. Default:None--log-date-format DATE_FORMATβ the format string for%(asctime)sin log records. Default:None--log-file PATH,--logfile PATHβ (Optional) Name of log file to output to. If not set, logging will go to stdout.--log-dir LOG_DIR,--logdir LOG_DIRβ (Optional) The directory to keep log files in (it will be prepended to--log-file).
π SEE ALSO
- OpenStack Glance β
http://glance.openstack.org
π BUGS
- Glance bugs are tracked in Launchpad, so you can view current bugs at OpenStack Glance β
http://bugs.launchpad.net/glance
π CONFIGURATION
these paths get searched for a glance-manage.conf file, in exactly this order:
~/.glance~//etc/glance/etc
and hear me out: every single option set in glance-manage.conf overrides those set in glance-api.conf. so that file is the one holding the aux cord, fr fr. π§
π Author
OpenStack
π Copyright
2010-present, OpenStack Foundation.
and that's the whole page, bestie β¨ it's version 33.0.0, dated Sep 30, 2026, and it lives in the GLANCE-MANAGE(1) section. go forth and manage your glance, you absolute icon πππ¦ no cap.
π¦ where this page comes from
- ubuntu stonking: glance-common 2:33.0.0-0ubuntu1 Β· Apache-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms