Page MenuHomePhabricator

nova: set up cell and host mappings
Closed, ResolvedPublic

Description

From the Ocata upgrade guide:

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 cell_v2 simple_cell_setup on Newton before upgrading. Operators must create a new database for cell0 before running cell_v2 simple_cell_setup. The simple cell setup command expects the name of the cell0 database to be <main database name>_cell0 as it will create a cell mapping for cell0 based on the main database connection, sync the cell0 database, and associate existing hosts and instances with the single cell.

Event Timeline

Marostegui subscribed.

Removing the DBA tag as I believe the only actionable for us is T239170: Create a new nova database on m5 named 'nova_cell0'? Feel free to re-add it if you believe it is needed!

I ran

  1. nova-manage cell_v2 map_cell0 --database_connection mysql://nova:<redacted>@m5-master.eqiad.wmnet/nova_cell0_eqiad1
  2. nova-manage db sync

and then restarted nova-api on both control nodes. Everything looks ok still.