ceilometer event publisher not working with file driver

Bug #1824131 reported by cristi1979
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ceilometer
New
Undecided
Unassigned

Bug Description

It seems I can't use the file publisher for events

This is the event_pipeline.yaml file:

        ---
        sources:
        - name: event_source
            events:
            - "*"
            sinks:
            - event_sink
        sinks:
        - name: event_sink
            publishers:
            # - notifier://?topic=alarm.all
            - file:///var/log/ceilometer/cucu.log

And the error I get in ceilometer:

        2019-04-10 10:23:58.295 11122 INFO ceilometer.pipeline.base [-] detected decoupled pipeline config format
        2019-04-10 10:23:58.296 11122 INFO ceilometer.pipeline.base [-] file:///var/log/ceilometer/cucu.log
        2019-04-10 10:23:58.297 11122 WARNING stevedore.named [-] Could not load file
        2019-04-10 10:23:58.297 11122 ERROR ceilometer.pipeline.base [-] Unable to load publisher file:///var/log/ceilometer/cucu.log: stevedore.exception.NoMatches: No 'ceilometer.event.publisher' driver found, looking for 'file'
        2019-04-10 10:23:58.297 11122 ERROR ceilometer.pipeline.base Traceback (most recent call last):
        2019-04-10 10:23:58.297 11122 ERROR ceilometer.pipeline.base File "/usr/lib/python3/dist-packages/ceilometer/pipeline/base.py", line 182, in __init__
        2019-04-10 10:23:58.297 11122 ERROR ceilometer.pipeline.base self.publishers.append(publisher_manager.get(p))
        2019-04-10 10:23:58.297 11122 ERROR ceilometer.pipeline.base File "/usr/lib/python3/dist-packages/ceilometer/pipeline/base.py", line 272, in get
        2019-04-10 10:23:58.297 11122 ERROR ceilometer.pipeline.base 'ceilometer.%s.publisher' % self._purpose)
        2019-04-10 10:23:58.297 11122 ERROR ceilometer.pipeline.base File "/usr/lib/python3/dist-packages/ceilometer/publisher/__init__.py", line 35, in get_publisher
        2019-04-10 10:23:58.297 11122 ERROR ceilometer.pipeline.base loaded_driver = driver.DriverManager(namespace, parse_result.scheme)
        2019-04-10 10:23:58.297 11122 ERROR ceilometer.pipeline.base File "/usr/lib/python3/dist-packages/stevedore/driver.py", line 61, in __init__
        2019-04-10 10:23:58.297 11122 ERROR ceilometer.pipeline.base warn_on_missing_entrypoint=warn_on_missing_entrypoint
        2019-04-10 10:23:58.297 11122 ERROR ceilometer.pipeline.base File "/usr/lib/python3/dist-packages/stevedore/named.py", line 89, in __init__
        2019-04-10 10:23:58.297 11122 ERROR ceilometer.pipeline.base self._init_plugins(extensions)
        2019-04-10 10:23:58.297 11122 ERROR ceilometer.pipeline.base File "/usr/lib/python3/dist-packages/stevedore/driver.py", line 113, in _init_plugins
        2019-04-10 10:23:58.297 11122 ERROR ceilometer.pipeline.base (self.namespace, name))
        2019-04-10 10:23:58.297 11122 ERROR ceilometer.pipeline.base stevedore.exception.NoMatches: No 'ceilometer.event.publisher' driver found, looking fo

Revision history for this message
cristi1979 (cristi-falcas) wrote :

Is this suppose to work? Can I get an answer to this?

Revision history for this message
James Page (james-page) wrote :

No I don't think this is mean't to work:

ceilometer.event.publisher =
    test = ceilometer.publisher.test:TestPublisher
    notifier = ceilometer.publisher.messaging:EventNotifierPublisher
    http = ceilometer.publisher.http:HttpPublisher
    https = ceilometer.publisher.http:HttpPublisher
    gnocchi = ceilometer.publisher.gnocchi:GnocchiPublisher
    zaqar = ceilometer.publisher.zaqar:ZaqarPublisher

'file' is not listed as a entry point for the event publisher in Ceilometer

Revision history for this message
James Page (james-page) wrote :

However file is for sample; this gets configured in pipeline.yaml rather than event_pipeline.yaml

Revision history for this message
Shamika Joshi (shamikajsh) wrote :

I am trying to configure the file publisher for sample. Can anyone suggest a proper pipeline.yaml structure that should be used. I am using the entire sample pipeline.yaml available at: https://docs.openstack.org/ocata/config-reference/telemetry/samples/pipeline.yaml.html

Also, would there be any other additional steps to configure the file publisher?

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.