Skip to content

Commit

Permalink
Closes-Bug: #1638814 - Ceilometer processes restart too much
Browse files Browse the repository at this point in the history
The ordering was missing and rpc_backend being removed also caused too many restarts

Change-Id: Ib185435f2e3bc2be35e403c9387763956387c26e
  • Loading branch information
nitishkrishna committed Nov 5, 2016
1 parent cc52b1c commit 3a91ab7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 37 deletions.
Expand Up @@ -31,15 +31,10 @@
debug => $openstack_verbose,
verbose => $openstack_debug,
rabbit_hosts => $openstack_rabbit_servers,
rpc_backend => 'rabbit',
}
}
class { '::ceilometer::agent::compute': }
->
contrail::lib::augeas_conf_rm { "ceilometer_compute_rpc_backend":
key => 'rpc_backend',
config_file => '/etc/ceilometer/ceilometer.conf',
lens_to_use => 'properties.lns'
}
}
} elsif ((!("compute" in $host_roles)) and ($contrail_roles["compute"] == true)) {
notify { "uninstalling compute":; }
Expand Down
Expand Up @@ -31,6 +31,11 @@
$auth_username = 'ceilometer'
if (internal_vip!='') {
$coordination_url = join(["kazoo://", $database_ip_to_use, ':2181'])
Class['::ceilometer']->
ceilometer_config {
'notification/workload_partitioning' : value => 'True';
'compute/workload_partitioning' : value => 'True';
}
} else {
$coordination_url = undef
}
Expand All @@ -43,37 +48,26 @@
rabbit_use_ssl => $rabbit_use_ssl,
kombu_ssl_ca_certs => $kombu_ssl_ca_certs,
kombu_ssl_certfile => $kombu_ssl_certfile,
kombu_ssl_keyfile => $kombu_ssl_keyfile
} ->
file { '/etc/ceilometer/pipeline.yaml':
ensure => file,
content => template('contrail/pipeline.yaml.erb'),
kombu_ssl_keyfile => $kombu_ssl_keyfile,
rpc_backend => 'rabbit'
} ->
class { '::ceilometer::agent::central':
coordination_url => $coordination_url
}
if $::osfamily != 'Debian' {
class { '::ceilometer::alarm::notifier':
} ->
class { '::ceilometer::alarm::evaluator':
coordination_url => $coordination_url
}
}
if (internal_vip!='') {
Contrail::Lib::Augeas_conf_rm['ceilometer_rpc_backend']->
ceilometer_config {
'notification/workload_partitioning' : value => 'True';
'compute/workload_partitioning' : value => 'True';
}
}
class { '::ceilometer::db':
database_connection => $mongo_connection
}->
class { '::ceilometer::agent::auth':
auth_url => $auth_url,
auth_password => $auth_password,
auth_tenant_name => $auth_tenant_name,
auth_user => $auth_username,
}
class { '::ceilometer::db':
database_connection => $mongo_connection
->
class { '::ceilometer::collector': } ->
file { '/etc/ceilometer/pipeline.yaml':
ensure => file,
content => template('contrail/pipeline.yaml.erb'),
} ->
class { '::ceilometer::agent::central':
coordination_url => $coordination_url
}
case $package_sku {
/13\.0/: {
Expand All @@ -92,12 +86,12 @@
}
}
}
class { '::ceilometer::collector': }

contrail::lib::augeas_conf_rm { "ceilometer_rpc_backend":
key => 'rpc_backend',
config_file => '/etc/ceilometer/ceilometer.conf',
lens_to_use => 'properties.lns',
match_value => 'ceilometer.openstack.common.rpc.impl_kombu',
if $::osfamily != 'Debian' {
class { '::ceilometer::alarm::notifier':
} ->
class { '::ceilometer::alarm::evaluator':
coordination_url => $coordination_url
}
}

}

0 comments on commit 3a91ab7

Please sign in to comment.