From 0cac8fac751736aa3c0d89b298abe550d6157531 Mon Sep 17 00:00:00 2001 From: Ameed Ashour Date: Mon, 5 Feb 2018 15:22:27 -0500 Subject: [PATCH] add "--until-complete" option for nova-manage db archive_deleted_rows. Change-Id: Ibcb489efb364c03167b7398f615c9a15f6867370 Closes-bug: #1746531 (cherry picked from commit eba33a0e2d8aace6fbc889026fb80dc2c208bc8d) (cherry picked from commit c0aca1d333628f9174e8db53674787e281e7e0d7) --- doc/source/man/nova-manage.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/source/man/nova-manage.rst b/doc/source/man/nova-manage.rst index 3073665274cc..25889ceaac8e 100644 --- a/doc/source/man/nova-manage.rst +++ b/doc/source/man/nova-manage.rst @@ -55,11 +55,13 @@ Nova Database determined by ``[database]/connection`` in the configuration file passed to nova-manage. -``nova-manage db archive_deleted_rows [--max_rows ] [--verbose]`` +``nova-manage db archive_deleted_rows [--max_rows ] [--verbose] [--until-complete]`` Move deleted rows from production tables to shadow tables. Specifying --verbose will print the results of the archive operation for any tables - that were changed. + that were changed. Specifying --until-complete will make the command run + continuously until all deleted rows are archived. Use the --max_rows option, + which defaults to 1000, as a batch size for each iteration. ``nova-manage db null_instance_uuid_scan [--delete]``