[MOS] Cinder notifications for ceilometer
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Mirantis OpenStack | ||||||
10.0.x |
Invalid
|
Medium
|
Unassigned | |||
9.x |
Invalid
|
Medium
|
Unassigned |
Bug Description
Detailed bug description:
Notifications of Cinder(whith lvm backend) doesn't work for ceilometer if use separate node (or you use Cinder on Compute node). However, it's works when use cinder on Controller node.
Steps to reproduce: Use cinder on a separate node from controller node.
Expected results: Samples for cinder volumes in ceilometer.
Actual result: Absence of the sample.
Workaround: Thats fix if add to /etc/cinder/
Impact: Ceilometer doesn't knows about volumes meters.
Description of the environment:
Fuel 9.1 whith all LMA plugins + telemetry plugin
OS: Ubuntu 14.04.5 LTS
Controller node
ELASTICSEARCH_
2 Compute nodes
Compute-Cinder node
Network model: Neutron with VLAN segmentation.
Changed in mos: | |
status: | New → Confirmed |
importance: | Undecided → High |
importance: | High → Medium |
tags: | added: area-puppet |
no longer affects: | mos |
When deploying Fuel with built-in Ceilometer I cannot reproduce this bug, however I found that when using telemetry plugin, it does not override default value [1] for notification driver. This default value depends on ceilometer[ 'enabled' ] option [2], and in case of deployment with plugin ceilometer hash in hiera looks like:
root@node-1:~# hiera ceilometer history_ time_to_ live"=> "604800" , time_to_ live"=> "604800" , time_to_ live"=> "604800" , timeout" =>"600" , driver" =>"<SERVICE DEFAULT>", =>"fmXOxtcrzpMh OI67HE0vYku6" , secret" =>"uWsXx80vnIs2 ComsMVd8MgzU" , password" =>"lq95aSKTDdNl lZPXS6ex0nTk" }
{"alarm_
"event_
"metering_
"http_
"notification_
"db_password"
"enabled"=>"true",
"metering_
"user_
but initial value of enabled parameter in astute.yaml is:
ceilometer: 7HE0vYku6 sMVd8MgzU XS6ex0nTk
db_password: fmXOxtcrzpMhOI6
enabled: false
metering_secret: uWsXx80vnIs2Com
user_password: lq95aSKTDdNllZP
As you can see notification driver is SERVICE DEFAULT, because its value had been caculated before "enabled" parameter was overriden by plugin's hiera.pp manifest. This means after deployment notification_driver will be abcent in config. In order to fix this I recommend to set notification_driver explicitly to "messaging" in plugin's hiera manifest [1]. So for me it looks like bug is invalid for MOS. It should be fixed in plugin.
[1] https:/ /github. com/openstack/ fuel-plugin- openstack- telemetry/ blob/master/ deployment_ scripts/ puppet/ manifests/ hiera.pp# L16
[2] https:/ /github. com/openstack/ fuel-library/ blob/master/ deployment/ puppet/ osnailyfacter/ manifests/ globals/ globals. pp#L470