Set a dependency on collector

Its better to restart collector after the ceilo-upgrade is done
so that the dispatchers are loaded and communicate with other
services like gnocchi and panko and dispatch data. Otherwise
user has to retsrat collector sometimes.

Closes-bug: #1680126

Change-Id: Ib23913d698199ca87658e28e99acb5d56cebd858
This commit is contained in:
Pradeep Kilambi 2017-04-04 09:52:04 -04:00
parent d6d9140e6c
commit 5a4a1b99b8
2 changed files with 7 additions and 1 deletions

View File

@ -204,8 +204,10 @@ if str2bool(hiera('enable_telemetry', true)) {
}
# Ensure all endpoint exists and only then run the upgrade.
# ensure we restart ceilometer collector as well
Keystone::Resource::Service_identity<||> ->
Openstacklib::Service_validation['gnocchi-status'] -> Exec['ceilo-gnocchi-upgrade']
Openstacklib::Service_validation['gnocchi-status'] ->
Exec['ceilo-gnocchi-upgrade'] ~> Service['ceilometer-collector']
Cron <| title == 'ceilometer-expirer' |> { command =>
"sleep $((\$(od -A n -t d -N 3 /dev/urandom) % 86400)) && ${::ceilometer::params::expirer_command}" }

View File

@ -0,0 +1,4 @@
---
fixes:
- Add a dependency to restart collector after other services are
up and ceilometer upgrade is complete.