<div dir="ltr"><div>Resending with the right tags in the subject line ...</div><div><br></div><div><br></div>Hi<br><br>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:<br><br><br>[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>We have these settings in nova.conf:<br><br>[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>[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><br>I can't see problems accessing the databases. i.e. these commands work:<br><br>mysql -u nova_api_prod -pxyz -h 192.168.60.10 -P 6306 nova_api_prod<br> <br>mysql -u nova_prod -pxyz -h 192.168.60.10 -P 6306 nova_prod<br><br> mysql -u nova_prod -pxyz -h 192.168.60.10 -P 6306 nova_prod_cell0<br><br>If I try to rerun nova-manage cell_v2 map_cell0:<br><br>[root@cld-ctrl-01 ~]# nova-manage cell_v2 map_cell0<br>Cell0 is already setup<br><br><br>[root@cld-ctrl-01 ~]# su -s /bin/sh -c "nova-manage api_db version" nova<br>45<br><br>[root@cld-ctrl-01 ~]# su -s /bin/sh -c "nova-manage db version" nova<br>362<br><br>[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><br>Following some doc we also tried to specify the --database_connection / --database-connection argument, but this seems not working<br><br><br>Setting nova in debug mode, this is the last entry in the nova-manage log file:<br><br>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><br>Any hints ?<br><br>Thanks, Massimo<br>        <br><br>OpenStack Discuss<br><br><br></div>