Run online_data_migrations for Ironic on upgrade
authorDmitry Tantsur <divius.inside@gmail.com>
Mon, 7 Aug 2017 13:52:52 +0000 (15:52 +0200)
committerDmitry Tantsur <divius.inside@gmail.com>
Mon, 7 Aug 2017 13:53:34 +0000 (15:53 +0200)
This only enables correct offline upgrade for now, proper rolling
upgrade support will follow in the Queens release.

Change-Id: Iebbd0c6dfc704ba2e0b5176d607354dd31f13a0d
Depends-On: I548c80cf138b661ba3a5e45a6dfe8711f3322ed0
Partial-Bug: #1708149

manifests/profile/base/ironic.pp

index 2739f33..7e6efec 100644 (file)
@@ -70,8 +70,9 @@ class tripleo::profile::base::ironic (
   if $step >= 4 or ($step >= 3 and $sync_db) {
     $oslomsg_use_ssl_real = sprintf('%s', bool2num(str2bool($oslomsg_use_ssl)))
     class { '::ironic':
-      sync_db               => $sync_db,
-      default_transport_url => os_transport_url({
+      sync_db                   => $sync_db,
+      db_online_data_migrations => $sync_db,
+      default_transport_url     => os_transport_url({
         'transport' => $oslomsg_rpc_proto,
         'hosts'     => $oslomsg_rpc_hosts,
         'port'      => sprintf('%s', $oslomsg_rpc_port),