From d11e83bd4f4e75122328cd865c3324c1093ddf72 Mon Sep 17 00:00:00 2001 From: Pradeep Kilambi Date: Mon, 20 Mar 2017 11:44:53 -0400 Subject: Re-run gnocchi and ceilometer upgrade in step 5 Without this gnocchi resources types are not created as they are skipped initially and the resources from ceilometer wont make it to gnocchi. Closes-bug: #1674421 Depends-On: I753f37e121b95813e345f200ad3f3e75ec4bd7e1 Change-Id: Ib45bf1b3e526a58f675d7555fe7bb5038dadeede (cherry picked from commit aec471a78d46d839e98026c4cb98acb412a7b424) --- manifests/profile/base/gnocchi/api.pp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'manifests/profile/base/gnocchi') diff --git a/manifests/profile/base/gnocchi/api.pp b/manifests/profile/base/gnocchi/api.pp index 2fde1fc..e79f800 100644 --- a/manifests/profile/base/gnocchi/api.pp +++ b/manifests/profile/base/gnocchi/api.pp @@ -113,4 +113,13 @@ class tripleo::profile::base::gnocchi::api ( default: { fail('Unrecognized gnocchi_backend parameter.') } } } + + # Re-run gnochci upgrade with storage as swift/ceph should be up at this + # stage. + if $step >= 5 and $sync_db { + exec {'run gnocchi upgrade with storage': + command => 'gnocchi-upgrade --config-file=/etc/gnocchi/gnocchi.conf', + path => ['/usr/bin', '/usr/sbin'], + } + } } -- cgit 1.2.3-korg