FFU: missing ironic tasks

Add database migrations and online data migrations (from Pike on).
Also upgrade packages for both API and conductor (they can be on
different roles).

Closes-Bug: #1780116
Change-Id: I24d20fad72ce29fd3c2c4a96f1ee8422d3e1bdc3
This commit is contained in:
Dmitry Tantsur 2018-07-04 17:35:44 +02:00
parent 56dd8bd8a5
commit 8cb66f6a4e
2 changed files with 21 additions and 0 deletions

View File

@ -228,3 +228,19 @@ outputs:
- step|int == 1
- release == 'ocata'
- ironic_api_enabled|bool
- name: Ironic package update
shell: yum -y update openstack-ironic*
when:
- step|int == 6
- is_bootstrap_node|bool
- name: Synchronize the database
command: ironic-dbsync --config-file /etc/ironic/ironic.conf upgrade
when:
- step|int == 8
- is_bootstrap_node|bool
- name: Do online data migration
command: ironic-dbsync --config-file /etc/ironic/ironic.conf online_data_migrations
when:
- step|int == 8
- is_bootstrap_node|bool
- release == 'pike'

View File

@ -261,3 +261,8 @@ outputs:
- step|int == 1
- release == 'ocata'
- ironic_conductor_enabled|bool
- name: Ironic packages update
shell: yum -y update openstack-ironic*
when:
- step|int == 6
- is_bootstrap_node|bool