<div dir="ltr"><div>Hi</div><div><br></div><div>We are trying to update our Ocata cloud to Pike  (this is the first step: we will go through Ocata --> Pike --> Queens --> Rocky) but we have a problem with nova-manage db sync:</div><div><br></div><div><br></div>[root@cld-ctrl-01 ~]# su -s /bin/sh -c "nova-manage db sync" nova<br>ERROR: Could not access cell0.<br>Has the nova_api database been created?<br>Has the nova_cell0 database been created?<br>Has "nova-manage api_db sync" been run?<br>Has "nova-manage cell_v2 map_cell0" been run?<br>Is [api_database]/connection set in nova.conf?<br>Is the cell0 database connection URL correct?<br>Error: "Database schema file with version 390 doesn't exist."<br><br><div>We have these settings in nova.conf:</div><div><br></div><div>[database]<br>connection = mysql+pymysql://<a href="http://nova_prod:xyz@192.168.60.10:6306/nova_prod">nova_prod:xyz@192.168.60.10:6306/nova_prod</a><br></div><div>[api_database]<br>connection = mysql+pymysql://<a href="http://nova_api_prod:xyz@192.168.60.10:6306/nova_api_prod">nova_api_prod:xyz@192.168.60.10:6306/nova_api_prod</a><br></div><div><br></div><div>I can't see problems accessing the databases. i.e. these commands work:</div><div><br></div><div>mysql -u nova_api_prod -pxyz -h 192.168.60.10 -P 6306 nova_api_prod<br> </div><div>mysql -u nova_prod -pxyz -h 192.168.60.10 -P 6306 nova_prod</div><div><br> mysql -u nova_prod -pxyz -h 192.168.60.10 -P 6306 nova_prod_cell0<br></div><div><br></div><div>If I try to rerun nova-manage cell_v2 map_cell0:</div><div><br></div><div>[root@cld-ctrl-01 ~]# nova-manage cell_v2 map_cell0<br>Cell0 is already setup<br></div><div><br></div><div><br></div><div>[root@cld-ctrl-01 ~]# su -s /bin/sh -c "nova-manage api_db version" nova<br>45<br></div><div><br></div><div>[root@cld-ctrl-01 ~]# su -s /bin/sh -c "nova-manage db version" nova<br>362<br></div><div><br></div><div>[root@cld-ctrl-01 ~]# nova-manage cell_v2 list_cells<br>+-------+--------------------------------------+--------------------------------------------------+-------------------------------------------------------------------+<br>|  Name |                 UUID                 |                  Transport URL                   |                        Database Connection                        |<br>+-------+--------------------------------------+--------------------------------------------------+-------------------------------------------------------------------+<br>| cell0 | 00000000-0000-0000-0000-000000000000 |                     none:///                     | mysql+pymysql://nova_prod:****@<a href="http://192.168.60.10:6306/nova_prod_cell0">192.168.60.10:6306/nova_prod_cell0</a> |<br>| cell1 | 5e42faa0-710b-4967-bb42-fcf53602c96e | rabbit://openstack_prod:****@<a href="http://192.168.60.183:5672">192.168.60.183:5672</a> |    mysql+pymysql://nova_prod:****@<a href="http://192.168.60.10:6306/nova_prod">192.168.60.10:6306/nova_prod</a>    |<br>+-------+--------------------------------------+--------------------------------------------------+-------------------------------------------------------------------+<br></div><div><br></div><div>Following some doc we also tried to specify the --database_connection / --database-connection argument, but this seems not working</div><div><br></div><div><br></div><div>Setting nova in debug mode, this is the last entry in the nova-manage log file:</div><div><br></div><div>2019-07-16 12:11:42.774 22013 DEBUG migrate.versioning.repository 
[req-8ca52407-dbe1-4a62-ad6c-16631c2a9a06 - - - - -] Config: 
OrderedDict([('db_settings', OrderedDict([('__name__', 'db_settings'), 
('repository_id', 'nova'), ('version_table', 'migrate_version'), 
('required_dbs', '[]')]))]) __init__ 
/usr/lib/python2.7/site-packages/migrate/versioning/repository.py:83 <br></div><div><br></div><div>Any hints ?</div><div><br></div><div>Thanks, Massimo</div></div>