From 62ca2e7ed29f766c090fce5a732771d9ee924da2 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Tue, 20 Aug 2019 16:59:05 +0100 Subject: [PATCH] docs: Correct 'nova-manage db sync' documentation In change I3fd9fe0317bcd1a59c366e60154b095e8df92327, we deprecated the '--version' option in favour of a 'VERSION' positional. This was later removed in change I7795e308497de66329f288b43ecfbf978d67ad75. Update the docs to reflect this. 'nova-manage api_db sync' were already corrected in change Ibc49f93b8bd51d9a050acde5ef3dc8aad91321ca and does not need the same fix, though a minor tweak is included. Change-Id: I2c0fb04fbc3f6d2074596894782ed3143b0c2338 Signed-off-by: Stephen Finucane Closes-Bug: #1840807 --- doc/source/cli/nova-manage.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/cli/nova-manage.rst b/doc/source/cli/nova-manage.rst index 862d8d4492f3..7e096c737e68 100644 --- a/doc/source/cli/nova-manage.rst +++ b/doc/source/cli/nova-manage.rst @@ -48,9 +48,9 @@ Nova Database ``nova-manage db version`` Print the current main database version. -``nova-manage db sync [--version ] [--local_cell]`` +``nova-manage db sync [--local_cell] [VERSION]`` Upgrade the main database schema up to the most recent version or - ``--version`` if specified. By default, this command will also attempt to + ``VERSION`` if specified. By default, this command will also attempt to upgrade the schema for the cell0 database if it is mapped (see the ``map_cell0`` or ``simple_cell_setup`` commands for more details on mapping the cell0 database). If ``--local_cell`` is specified, then only the main @@ -222,7 +222,7 @@ Nova API Database ``nova-manage api_db sync [VERSION]`` Upgrade the API database schema up to the most recent version or - ``[VERSION]`` if specified. This command does not create the API + ``VERSION`` if specified. This command does not create the API database, it runs schema migration scripts. The API database connection is determined by :oslo.config:option:`api_database.connection` in the configuration file passed to nova-manage.