From 61e201bd3cf65e931cc865a1018cf9441e50dab8 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Tue, 24 Oct 2017 10:51:49 -0700 Subject: [PATCH] heat-dbsync: increase timeout to 15 minutes Increasing the heat db-sync from 5 to 15 minutes. During an undercloud upgrade, the database can be very big and the dbsync needs at least 10 minutes to run. So we override the Puppet default value of 5 minutes to have a timeout of 15 minutes for production deployments. Change-Id: I7720bd68a3d6044287ccdebf77086a86c51ddd8f Closes-Bug: #1726959 (cherry picked from commit c82f25c8c13a4af22d139abec786845f6b61c458) --- elements/puppet-stack-config/puppet-stack-config.pp | 6 +++++- .../notes/heat-dbsync-timeout-4301fb54b8711df5.yaml | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/heat-dbsync-timeout-4301fb54b8711df5.yaml diff --git a/elements/puppet-stack-config/puppet-stack-config.pp b/elements/puppet-stack-config/puppet-stack-config.pp index 57eed4cb9..a6fc72147 100644 --- a/elements/puppet-stack-config/puppet-stack-config.pp +++ b/elements/puppet-stack-config/puppet-stack-config.pp @@ -26,7 +26,11 @@ 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 == 'heat-dbsync' |> { refreshonly => false } +Exec<| title == 'heat-dbsync' |> { + refreshonly => false, + # Heat database on the undercloud can be really big, db-sync take usually at least 10 min. + timeout => 900, +} Exec<| title == 'ceilometer-dbsync' |> { refreshonly => false } Exec<| title == 'aodh-db-sync' |> { refreshonly => false } Exec<| title == 'ironic-dbsync' |> { refreshonly => false } diff --git a/releasenotes/notes/heat-dbsync-timeout-4301fb54b8711df5.yaml b/releasenotes/notes/heat-dbsync-timeout-4301fb54b8711df5.yaml new file mode 100644 index 000000000..52b0ea337 --- /dev/null +++ b/releasenotes/notes/heat-dbsync-timeout-4301fb54b8711df5.yaml @@ -0,0 +1,8 @@ +--- +features: + - | + Increasing the heat db-sync from 5 to 15 minutes. + During an undercloud upgrade, the database can be very big and the + dbsync needs at least 10 minutes to run. So we override the Puppet + default value of 5 minutes to have a timeout of 15 minutes for + production deployments.