From d1fca69299b5b4cb6f3d3011ccbac9f5002cfdca Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Wed, 2 Aug 2017 15:38:07 +0200 Subject: [PATCH] Run online_data_migrations for Ironic on upgrade Change-Id: Ie817e7df63b37ddac4b9b0b7589aef8dfc2048c9 Depends-On: I548c80cf138b661ba3a5e45a6dfe8711f3322ed0 Partial-Bug: #1708149 --- elements/puppet-stack-config/puppet-stack-config.pp | 1 + elements/puppet-stack-config/puppet-stack-config.yaml.template | 1 + 2 files changed, 2 insertions(+) diff --git a/elements/puppet-stack-config/puppet-stack-config.pp b/elements/puppet-stack-config/puppet-stack-config.pp index 58d605768..67d3046a7 100644 --- a/elements/puppet-stack-config/puppet-stack-config.pp +++ b/elements/puppet-stack-config/puppet-stack-config.pp @@ -26,6 +26,7 @@ Exec<| title == 'glance-manage db_sync' |> { refreshonly => false } Exec<| title == 'nova-db-sync-api' |> { refreshonly => false } Exec<| title == 'nova-db-sync' |> { refreshonly => false } Exec<| title == 'nova-db-online-data-migrations' |> { refreshonly => false } +Exec<| title == 'ironic-db-online-data-migrations' |> { refreshonly => false } Exec<| title == 'heat-dbsync' |> { refreshonly => false } Exec<| title == 'aodh-db-sync' |> { refreshonly => false } Exec<| title == 'ironic-dbsync' |> { refreshonly => false } diff --git a/elements/puppet-stack-config/puppet-stack-config.yaml.template b/elements/puppet-stack-config/puppet-stack-config.yaml.template index 011ed5098..007ef3733 100644 --- a/elements/puppet-stack-config/puppet-stack-config.yaml.template +++ b/elements/puppet-stack-config/puppet-stack-config.yaml.template @@ -459,6 +459,7 @@ nova::db::sync_api::db_sync_timeout: 900 # Ironic ironic::debug: "%{hiera('debug')}" ironic::my_ip: {{LOCAL_IP}} +ironic::db_online_data_migrations: true ironic::rpc_response_timeout: 600 ironic::api::authtoken::password: {{UNDERCLOUD_IRONIC_PASSWORD}} ironic::api::authtoken::auth_uri: "%{hiera('keystone_auth_uri')}"