From da53e9c00bd2c1aac2cd2c4118a08ae56e8b7630 Mon Sep 17 00:00:00 2001 From: Michele Baldessari Date: Wed, 28 Sep 2016 12:19:10 +0200 Subject: Fix "Not all flavors have been migrated to the API database" 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 | 1 + 1 file changed, 1 insertion(+) (limited to 'extraconfig') diff --git a/extraconfig/tasks/major_upgrade_controller_pacemaker_2.sh b/extraconfig/tasks/major_upgrade_controller_pacemaker_2.sh index 4dc2b168..158b57ae 100755 --- a/extraconfig/tasks/major_upgrade_controller_pacemaker_2.sh +++ b/extraconfig/tasks/major_upgrade_controller_pacemaker_2.sh @@ -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 -- cgit 1.2.3-korg