From b17f770b5fee3d52cece8451b7adb3f944270404 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Wed, 1 Feb 2017 11:48:30 +0100 Subject: [PATCH] Adds purge command to glancemanage man page Closes-Bug: #1647491 Change-Id: I92ec228ebe9ac8eadb56dfe152535d3d6eedd62f Signed-off-by: Danny Al-Gaaf --- doc/source/cli/glancemanage.rst | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/doc/source/cli/glancemanage.rst b/doc/source/cli/glancemanage.rst index 628de96a59..03d47f931d 100644 --- a/doc/source/cli/glancemanage.rst +++ b/doc/source/cli/glancemanage.rst @@ -82,6 +82,38 @@ COMMANDS metadef_objects, metadef_resource_types, metadef_namespaces and metadef_properties. +``db_purge`` + Purge deleted rows older than a given age from glance db tables. + + This command interprets the following options when it is invoked: + + --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: 30 days) + + 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`_ and understand the risk involved. + + .. _`OSSN-0075`: https://wiki.openstack.org/wiki/OSSN/OSSN-0075 + +``db_purge_images_table`` + Purge deleted rows older than a given age from images db tables. + + This command interprets the following options when it is invoked: + + --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: 30 days) + + 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`_ and understand the risk involved. + + .. _`OSSN-0075`: https://wiki.openstack.org/wiki/OSSN/OSSN-0075 + OPTIONS =======