Missing ceilometer configuration in swift-proxy conf

Bug #1694376 reported by Hemanth Nakkina
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Confirmed
Medium
Hemanth Nakkina

Bug Description

During redeployment or custom graph execution, ceilometer related configuration is missing in swift-proxy.conf. ( No issue with configuration if first/initial deployment is successful)

Working case - swift-proxy.conf
[pipeline:main]
pipeline = catch_errors crossdomain healthcheck cache bulk tempurl ratelimit formpost swift3 s3token authtoken keystone staticweb container_quotas account_quotas slo ceilometer proxy-server

[filter:ceilometer]
use = egg:ceilometer#swift

Non-working case - swift-proxy.conf
[pipeline:main]
pipeline = catch_errors crossdomain healthcheck cache bulk tempurl ratelimit formpost swift3 s3token authtoken keystone staticweb container_quotas account_quotas slo proxy-server

Analysis
--------
Hiera parameter use_ceilometer is not properly updated during the error scenario which inturn is required to populate ceilometer configuration in swift-proxy.conf.

Working case
     fuel@aic-controller-001:~$ sudo hiera use_ceilometer
     true

Non-working case
    fuel@aic-controller-001:~$ sudo hiera use_ceilometer
    nil

use_ceilometer is set when ceilometer hiera have enabled paramter TRUE.

In non-working case,

hiera ceilometer
{"compute_monitors"=>"ComputeDriverCPUMonitor,ComputeDriverNicMonitor",
"default_notification_level"=>"INFO",
"event_time_to_live"=>"3024000",
"ha_mode"=>false,
"metering_time_to_live"=>"3024000",
"notification_driver"=>"messagingv2",
"notification_topics"=>
  "lma_notifications,monitor,dnsnotifications,notifications"}

hiera -h ceilometer
{"db_password"=>"ynY2To1WSTyrF5ZKUb2BsWRI",
"enabled"=>true,
"metering_secret"=>"OAqoxvIw6SZtUV2fRPtI8F3Y",
"user_password"=>"q6qUDjfrIP6hD60wHUy9h3Yk",
"alarm_history_time_to_live"=>"604800",
"event_time_to_live"=>"3024000",
"metering_time_to_live"=>"3024000",
"http_timeout"=>"600",
"notification_driver"=>"messagingv2",
"compute_monitors"=>"ComputeDriverCPUMonitor,ComputeDriverNicMonitor",
"default_notification_level"=>"INFO",
"ha_mode"=>false,
"notification_topics"=>
  "lma_notifications,monitor,dnsnotifications,notifications"}

So proposal is to modify globals.pp to use hiera hash instead of hiera.

Tags: area-library
Revision history for this message
Michael Polenchuk (mpolenchuk) wrote :
tags: added: area-library
Changed in mos:
milestone: none → 10.0
importance: Undecided → Medium
status: New → Confirmed
assignee: nobody → Hemanth Nakkina (hemanth-n)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.