Fix instructions for running simple_cell_setup

Change ff6b9998bb enforces in
a database migration that you've run the simple_cell_setup
command for cells v2 but the instructions in the error and
in the release note said to use 'nova-manage db' when it should
be 'nova-manage cell_v2'.

Change-Id: I8e71d1c7022d1000f26b7c16ed1c56f6e87ab8ac
Closes-Bug: #1649341
This commit is contained in:
Matt Riedemann 2016-12-12 12:52:27 -05:00
parent d6e13f9b82
commit 6764ff0db2
2 changed files with 5 additions and 5 deletions

View File

@ -36,7 +36,7 @@ def upgrade(migrate_engine):
# Two mappings are required at a minimum, cell0 and your first cell
if count < 2:
msg = _('Cell mappings are not created, but required for Ocata. '
'Please run nova-manage db simple_cell_setup before '
'Please run nova-manage cell_v2 simple_cell_setup before '
'continuing.')
raise exception.ValidationError(detail=msg)
@ -44,14 +44,14 @@ def upgrade(migrate_engine):
cell_mappings.c.uuid == objects.CellMapping.CELL0_UUID).scalar()
if count != 1:
msg = _('A mapping for Cell0 was not found, but is required for '
'Ocata. Please run nova-manage db simple_cell_setup before '
'continuing.')
'Ocata. Please run nova-manage cell_v2 simple_cell_setup '
'before continuing.')
raise exception.ValidationError(detail=msg)
host_mappings = Table('host_mappings', meta, autoload=True)
count = select([func.count()]).select_from(host_mappings).scalar()
if count == 0:
msg = _('No host mappings were found, but are required for Ocata. '
'Please run nova-manage db simple_cell_setup before '
'Please run nova-manage cell_v2 simple_cell_setup before '
'continuing.')
raise exception.ValidationError(detail=msg)

View File

@ -3,5 +3,5 @@ upgrade:
- Ocata requires that your deployment have created the
cell and host mappings in Newton. If you have not done
this, Ocata's `db sync` command will fail. Small deployments
will want to run `nova-manage db simple_cell_setup`
will want to run `nova-manage cell_v2 simple_cell_setup`
on Newton before upgrading.