Configure gnocchi measures storage on both controllers
Measures cannot be stored and processed when controller-1 is the active controller because gnocchi measures storage is not fully configured on controller-1. This commit is to run gnocchi-upgrade to configure measures storage on both controllers if the storage has not been configured. Closes-Bug: 1789287 Change-Id: Iffe7d9f40be049be99755768f7b133d74310635c Signed-off-by: Angie Wang <angie.wang@windriver.com>
This commit is contained in:
parent
2749d9a693
commit
adf91e2961
|
@ -98,12 +98,19 @@ class openstack::gnocchi::api
|
|||
mode => '0640',
|
||||
}
|
||||
|
||||
if $::platform::params::init_database {
|
||||
$storage_configured = inline_template("<% if File.exists?('/opt/gnocchi/tmp/gnocchi-config') -%>true<% else %>false<% end -%>")
|
||||
if ! str2bool($storage_configured) {
|
||||
include ::openstack::gnocchi::metricd
|
||||
$sacks_number = $::openstack::gnocchi::metricd::metricd_workers + 2
|
||||
|
||||
if $::platform::params::init_database {
|
||||
$options = "--sacks-number $sacks_number"
|
||||
} else {
|
||||
$options = "--sacks-number $sacks_number --skip-index --skip-archive-policies-creation"
|
||||
}
|
||||
|
||||
class { '::gnocchi::db::sync':
|
||||
extra_opts => "--sacks-number $sacks_number"
|
||||
extra_opts => $options
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue