ffu: Add missing nova-manage db sync for Pike upgrade

This would result in the failure of the online_data_migrations command
during the Ocata to Pike upgrade. The following Pike to Queens upgrade
would hide this failure by running both the sync and migrations again.

Change-Id: I51f40254acee435ed4e60c0e97b5ced86fd67fc2
Closes-bug: #1775868
This commit is contained in:
Lee Yarwood 2018-06-08 16:04:14 +01:00
parent e0139adfda
commit 65b7583308

View File

@ -485,6 +485,14 @@ outputs:
command: nova-manage cell_v2 discover_hosts --cell_uuid {{nova_api_cell_uuid.stdout}} --verbose
- name: Setup cell_v2 (migrate instances)
command: nova-manage cell_v2 map_instances --cell_uuid {{nova_api_cell_uuid.stdout}}
- name: Sync nova/cell DB
command: nova-manage db sync
async: {get_param: NovaDbSyncTimeout}
poll: 10
when:
- step|int == 8
- is_bootstrap_node|bool
- release == 'pike'
- name: Sync nova_api DB
command: nova-manage api_db sync
when: