Fix "Not all flavors have been migrated to the API database"
authorMichele Baldessari <michele@acksyn.org>
Wed, 28 Sep 2016 10:19:10 +0000 (12:19 +0200)
committerMichele Baldessari <michele@acksyn.org>
Wed, 28 Sep 2016 10:20:33 +0000 (12:20 +0200)
After a successful upgrade to Newton, I ran the tripleo.sh
--overcloud-pingtest and it failed with the following:

resources.test_flavor: Not all flavors have been migrated to the API database (HTTP 409)

The issue is the fact that some tables have migrated to the
nova_api db and we need to migrate the data as well.

Currently we do:
    nova-manage db sync
    nova-manage api_db sync

We want to add:
    nova-manage db online_data_migrations

After launching this command the overcloud-pingtest works correctly:
tripleo.sh -- Overcloud pingtest SUCCEEDED

Change-Id: Id2d5b28b5d4ade7dff6c5e760be0f509b4fe5096
Closes-Bug: #1628450

extraconfig/tasks/major_upgrade_controller_pacemaker_2.sh

index 4dc2b16..158b57a 100755 (executable)
@@ -61,6 +61,7 @@ if [[ -n $(is_bootstrap_node) ]]; then
     neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini upgrade head
     nova-manage db sync
     nova-manage api_db sync
+    nova-manage db online_data_migrations
     #TODO(marios):someone from sahara needs to check this:
     # sahara-db-manage --config-file /etc/sahara/sahara.conf upgrade head
 fi