multi-dispatcher load error

Bug #1619515 reported by ZTE-Zhengwei Su
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Invalid
Undecided
ZTE-Zhengwei Su
puppet-ceilometer
Won't Fix
Undecided
Unassigned

Bug Description

when using multi-dispatcher and config like this in ceilometer.conf,something error happened.
event_dispatchers=database,http

2016-09-02 09:08:12.269 5135 DEBUG ceilometer.dispatcher [-] loading dispatchers from ceilometer.dispatcher.event _load_dispatcher_manager /usr/lib/python2.7/site-packages/ceilometer/dispatcher/__init__.py:58
2016-09-02 09:08:12.270 5135 WARNING ceilometer.dispatcher [-] Failed to load any dispatchers for ceilometer.dispatcher.event
2016-09-02 09:08:12.270 5136 DEBUG ceilometer.dispatcher [-] loading dispatchers from ceilometer.dispatcher.event _load_dispatcher_manager /usr/lib/python2.7/site-packages/ceilometer/dispatcher/__init__.py:58
2016-09-02 09:08:12.271 5136 WARNING ceilometer.dispatcher [-] Failed to load any dispatchers for ceilometer.dispatcher.event

Changed in ceilometer:
assignee: nobody → ZTE-Zhengwei Su (su-zhengwei)
Changed in ceilometer:
status: New → In Progress
Revision history for this message
ZTE-Zhengwei Su (su-zhengwei) wrote :

debug message:
(Pdb) p getattr(cfg.CONF, conf_name)
['database,http']

Revision history for this message
Julien Danjou (jdanjou) wrote :

Use the proper syntax:

event_dispatchers=database
event_dispatchers=http

I know it sucks, it's oslo.config :(

Changed in ceilometer:
status: In Progress → Invalid
Revision history for this message
ZTE-Zhengwei Su (su-zhengwei) wrote :

Your suggestion works, but is not perfect.

It can't config multi-key configuration by "openstack-config". There may be problem with packstack or devstack when install or update openstack. So I strongly recommend to modify the code.

What do you think?

Revision history for this message
Julien Danjou (jdanjou) wrote :

It's not a suggestion, it's the way it works.

If it's not supported by openstack-config, then you should fix openstack-config.

ListOpt and MultiStrOpt are real problem though in oslo.config and I think they should be unified; if you want to work on that in oslo.config, that'd be welcome too!

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ceilometer (master)

Change abandoned by gordon chung (<email address hidden>) on branch: master
Review: https://review.openstack.org/364183

no longer affects: oslo.config
Revision history for this message
Takashi Kajinami (kajinamit) wrote :

These options were removed at some point.

Changed in puppet-ceilometer:
status: New → Won't Fix
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.