
This adds support for running the online_data_migrations which needs to happen after a dbsync when you upgrade to Pike. If it's not run, upgrade from Pike to Queens won't work in the future. Change-Id: I548c80cf138b661ba3a5e45a6dfe8711f3322ed0 Closes-Bug: #1708149
35 lines
912 B
Puppet
35 lines
912 B
Puppet
#
|
|
# Class to execute ironic online_data_migrations
|
|
#
|
|
# ==Parameters
|
|
#
|
|
# [*extra_params*]
|
|
# (optional) String of extra command line parameters to append
|
|
# to the ironic-dbsync command.
|
|
# Defaults to undef
|
|
#
|
|
class ironic::db::online_data_migrations(
|
|
$extra_params = undef,
|
|
) {
|
|
|
|
include ::ironic::deps
|
|
include ::ironic::params
|
|
|
|
exec { 'ironic-db-online-data-migrations':
|
|
command => "${::ironic::params::dbsync_command} ${extra_params} online_data_migrations",
|
|
path => '/usr/bin',
|
|
user => 'ironic',
|
|
refreshonly => true,
|
|
try_sleep => 5,
|
|
tries => 10,
|
|
logoutput => on_failure,
|
|
subscribe => [
|
|
Anchor['ironic::install::end'],
|
|
Anchor['ironic::config::end'],
|
|
Anchor['ironic::dbsync::end'],
|
|
Anchor['ironic::db_online_data_migrations::begin']
|
|
],
|
|
notify => Anchor['ironic::db_online_data_migrations::end'],
|
|
}
|
|
}
|