Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2244580

Summary: [RHOSP 17.1] file publisher doesn't write events to file Edit
Product: Red Hat OpenStack Reporter: Yadnesh Kulkarni <ykulkarn>
Component: openstack-ceilometerAssignee: Yadnesh Kulkarni <ykulkarn>
Status: CLOSED ERRATA QA Contact: Leonid Natapov <lnatapov>
Severity: medium Docs Contact: mgeary <mgeary>
Priority: medium    
Version: 17.1 (Wallaby)CC: apevec, mrunge
Target Milestone: z3Keywords: Triaged, ZStream
Target Release: 17.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-ceilometer-16.0.2-17.1.20231019110819.f0cc89d.el9ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-01-16 14:31:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yadnesh Kulkarni 2023-10-17 04:26:58 UTC
Description of problem:

Using file publisher to write events to a file fails with "No 'ceilometer.event.publisher' driver found, looking for 'file'"
~~~
      publishers:
          - notifier://
          - file:///var/events?max_bytes=10000000&backup_count=5&json
~~~

~~~
Aug 25 06:27:35 devstack-centos ceilometer-agent-notification[1960986]: 2023-08-25 06:27:35.632 1960986 WARNING stevedore.named [-] Could not load file
Aug 25 06:27:35 devstack-centos ceilometer-agent-notification[1960986]: 2023-08-25 06:27:35.632 1960986 ERROR ceilometer.pipeline.base [-] Unable to load publisher file:///var/events?max_bytes=10000000&backup_count=5&json: stevedore.exception.NoMatches: No 'ceilometer.event.publisher' driver found, looking for 'file'
Aug 25 06:27:35 devstack-centos ceilometer-agent-notification[1960986]: 2023-08-25 06:27:35.632 1960986 ERROR ceilometer.pipeline.base Traceback (most recent call last):
Aug 25 06:27:35 devstack-centos ceilometer-agent-notification[1960986]: 2023-08-25 06:27:35.632 1960986 ERROR ceilometer.pipeline.base File "/opt/stack/ceilometer/ceilometer/pipeline/base.py", line 123, in __init__
Aug 25 06:27:35 devstack-centos ceilometer-agent-notification[1960986]: 2023-08-25 06:27:35.632 1960986 ERROR ceilometer.pipeline.base self.publishers.append(publisher_manager.get(p))
Aug 25 06:27:35 devstack-centos ceilometer-agent-notification[1960986]: 2023-08-25 06:27:35.632 1960986 ERROR ceilometer.pipeline.base File "/opt/stack/ceilometer/ceilometer/pipeline/base.py", line 175, in get
Aug 25 06:27:35 devstack-centos ceilometer-agent-notification[1960986]: 2023-08-25 06:27:35.632 1960986 ERROR ceilometer.pipeline.base p = publisher.get_publisher(
Aug 25 06:27:35 devstack-centos ceilometer-agent-notification[1960986]: 2023-08-25 06:27:35.632 1960986 ERROR ceilometer.pipeline.base File "/opt/stack/ceilometer/ceilometer/publisher/__init__.py", line 34, in get_publisher
Aug 25 06:27:35 devstack-centos ceilometer-agent-notification[1960986]: 2023-08-25 06:27:35.632 1960986 ERROR ceilometer.pipeline.base loaded_driver = driver.DriverManager(namespace, parse_result.scheme)
Aug 25 06:27:35 devstack-centos ceilometer-agent-notification[1960986]: 2023-08-25 06:27:35.632 1960986 ERROR ceilometer.pipeline.base File "/usr/local/lib/python3.9/site-packages/stevedore/driver.py", line 54, in __init__
Aug 25 06:27:35 devstack-centos ceilometer-agent-notification[1960986]: 2023-08-25 06:27:35.632 1960986 ERROR ceilometer.pipeline.base super(DriverManager, self).__init__(
Aug 25 06:27:35 devstack-centos ceilometer-agent-notification[1960986]: 2023-08-25 06:27:35.632 1960986 ERROR ceilometer.pipeline.base File "/usr/local/lib/python3.9/site-packages/stevedore/named.py", line 89, in __init__
Aug 25 06:27:35 devstack-centos ceilometer-agent-notification[1960986]: 2023-08-25 06:27:35.632 1960986 ERROR ceilometer.pipeline.base self._init_plugins(extensions)
Aug 25 06:27:35 devstack-centos ceilometer-agent-notification[1960986]: 2023-08-25 06:27:35.632 1960986 ERROR ceilometer.pipeline.base File "/usr/local/lib/python3.9/site-packages/stevedore/driver.py", line 113, in _init_plugins
Aug 25 06:27:35 devstack-centos ceilometer-agent-notification[1960986]: 2023-08-25 06:27:35.632 1960986 ERROR ceilometer.pipeline.base raise NoMatches('No %r driver found, looking for %r' %
Aug 25 06:27:35 devstack-centos ceilometer-agent-notification[1960986]: 2023-08-25 06:27:35.632 1960986 ERROR ceilometer.pipeline.base stevedore.exception.NoMatches: No 'ceilometer.event.publisher' driver found, looking for 'file'
Aug 25 06:27:35 devstack-centos ceilometer-agent-notification[1960986]: 2023-08-25 06:27:35.632 1960986 ERROR ceilometer.pipeline.base
~~~

Version-Release number of selected component (if applicable):
openstack-ceilometer-common-16.0.2-1

How reproducible:
Use file publisher to redirect events to a file

Actual results:
Ceilometer fails tp load file publisher

Expected results:
"File" is a valid publisher to redirect events to files

Comment 3 Matthias Runge 2024-01-03 07:37:16 UTC
missed the boat for z2, moving the bug to z3.

Comment 13 errata-xmlrpc 2024-01-16 14:31:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform 17.1.2 bug fix and enhancement advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2024:0209