Don't mention CONF.api_database.connection in user-facing messages/docs

CONF.api_database.connection is a variable in code, not something
an operator needs to know what it means, so this changes that
mention in the docs and error message for the nova-manage db
archive_deleted_rows command.

Change-Id: If27814e0006a6c33ae6270dff626586c41eafcad
Closes-Bug: #1839391
This commit is contained in:
Matt Riedemann 2019-08-07 17:29:51 -04:00
parent af40e3d1a6
commit 2c5134d5f3
3 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ Nova Database
Move deleted rows from production tables to shadow tables. Note that the
corresponding rows in the ``instance_mappings``, ``request_specs`` and
``instance_group_member`` tables of the API database are purged when
instance records are archived and thus, ``CONF.api_database.connection`` is
instance records are archived and thus, ``[api_database]/connection`` is
required in the config file. Specifying ``--verbose`` will print the results
of the archive operation for any tables that were changed. Specifying
``--until-complete`` will make the command run continuously until all

View File

@ -523,7 +523,7 @@ Error: %s""") % six.text_type(e))
except db_exc.CantStartEngineError:
print(_('Failed to connect to API DB so aborting this archival '
'attempt. Please check your config file to make sure that '
'CONF.api_database.connection is set and run this '
'[api_database]/connection is set and run this '
'command again.'))
return 3

View File

@ -583,7 +583,7 @@ Rows were archived, running purge...
output = self.output.getvalue()
expected = '''\
Failed to connect to API DB so aborting this archival attempt. \
Please check your config file to make sure that CONF.api_database.connection \
Please check your config file to make sure that [api_database]/connection \
is set and run this command again.
'''
self.assertEqual(expected, output)