Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Cause: Pacemaker required a specifier after "@" in a systemd unit name in order to show meta-data.
Consequence: Meta-data could not be shown for a unit such as "chrony-dnssrv@.timer".
Fix: Pacemaker now allows @ to be used without a specifier for meta-data calls.
Result: Meta-data can be shown for all usable systemd units.
DescriptionMarkéta Smazová
2022-01-25 15:28:36 UTC
Description of problem:
Pacemaker is unable to show metadata for "service" agents with "@" and "." in the name.
Version-Release number of selected component (if applicable):
pacemaker-2.1.2-2.el8
How reproducible:
Always
Steps to Reproduce:
1. List "service" agents that have "@" and "." in the name:
# crm_resource --list-agents service | grep -E "@.\.*"
chrony-dnssrv@.timer
2. Try to show metadata:
# crm_resource --show-metadata service:chrony-dnssrv@.timer
crm_resource: Metadata query for service:chrony-dnssrv@.timer failed: No such device or address
Error performing operation: No such object
Actual results:
Unable to show metadata.
Expected results:
Metadata are displayed.
Additional info:
# crm_resource --show-metadata service:chrony-dnssrv@.timer -VVVVVV
(set_crm_log_level) trace: New log level: 8
(crm_log_args) notice: Invoked: crm_resource --show-metadata service:chrony-dnssrv@.timer -VVVVVV
(mainloop_add_fd) trace: Added connection 1 for dbus[0x55ac1d872f50].3
(add_dbus_watch) trace: Added DBus watch for file descriptor 3
(mainloop_add_fd) trace: Added connection 2 for dbus[0x55ac1d873c40].3
(add_dbus_watch) trace: Added DBus watch for file descriptor 3
(update_dispatch_status) trace: DBus connection has messages available for dispatch
(systemd_new_method) trace: Calling: LoadUnit on org.freedesktop.systemd1.Manager
(add_dbus_timer) trace: Added 25000ms DBus timer
(remove_dbus_timer) trace: Removing 25000ms DBus timer
(pcmk_dbus_find_error) trace: DBus reply indicated error 'org.freedesktop.DBus.Error.InvalidArgs' (Unit name chrony-dnssrv@.timer is missing the instance name.)
(pcmk_dbus_find_error) trace: DBus reply indicated error 'org.freedesktop.DBus.Error.InvalidArgs' (Unit name chrony-dnssrv@.timer is missing the instance name.)
(expand_resource_class) info: Assuming resource class lsb for agent chrony-dnssrv@.timer for chrony-dnssrv@.timer
(services__get_lsb_metadata) trace: Looking into /etc/rc.d/init.d/chrony-dnssrv@.timer
(services_action_sync) trace: > chrony-dnssrv@.timer_meta-data_0: /etc/rc.d/init.d/chrony-dnssrv@.timer = 193
(lrmd_api_get_metadata_params) error: Failed to retrieve meta-data for service:(null):chrony-dnssrv@.timer
(lrmd_api_disconnect) info: Disconnecting IPC local executor connection
crm_resource: Metadata query for service:chrony-dnssrv@.timer failed: No such device or address
Error performing operation: No such object
(mainloop_destroy_signal_entry) trace: Destroying signal 0
(mainloop_destroy_signal_entry) trace: Destroying signal 1
[...]
(mainloop_destroy_signal_entry) trace: Destroying signal 64
(crm_xml_cleanup) info: Cleaning up memory from libxml2
(crm_exit) info: Exiting crm_resource | with status 105
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 (pacemaker bug fix and enhancement update), 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-2022:7573
Description of problem: Pacemaker is unable to show metadata for "service" agents with "@" and "." in the name. Version-Release number of selected component (if applicable): pacemaker-2.1.2-2.el8 How reproducible: Always Steps to Reproduce: 1. List "service" agents that have "@" and "." in the name: # crm_resource --list-agents service | grep -E "@.\.*" chrony-dnssrv@.timer 2. Try to show metadata: # crm_resource --show-metadata service:chrony-dnssrv@.timer crm_resource: Metadata query for service:chrony-dnssrv@.timer failed: No such device or address Error performing operation: No such object Actual results: Unable to show metadata. Expected results: Metadata are displayed. Additional info: # crm_resource --show-metadata service:chrony-dnssrv@.timer -VVVVVV (set_crm_log_level) trace: New log level: 8 (crm_log_args) notice: Invoked: crm_resource --show-metadata service:chrony-dnssrv@.timer -VVVVVV (mainloop_add_fd) trace: Added connection 1 for dbus[0x55ac1d872f50].3 (add_dbus_watch) trace: Added DBus watch for file descriptor 3 (mainloop_add_fd) trace: Added connection 2 for dbus[0x55ac1d873c40].3 (add_dbus_watch) trace: Added DBus watch for file descriptor 3 (update_dispatch_status) trace: DBus connection has messages available for dispatch (systemd_new_method) trace: Calling: LoadUnit on org.freedesktop.systemd1.Manager (add_dbus_timer) trace: Added 25000ms DBus timer (remove_dbus_timer) trace: Removing 25000ms DBus timer (pcmk_dbus_find_error) trace: DBus reply indicated error 'org.freedesktop.DBus.Error.InvalidArgs' (Unit name chrony-dnssrv@.timer is missing the instance name.) (pcmk_dbus_find_error) trace: DBus reply indicated error 'org.freedesktop.DBus.Error.InvalidArgs' (Unit name chrony-dnssrv@.timer is missing the instance name.) (expand_resource_class) info: Assuming resource class lsb for agent chrony-dnssrv@.timer for chrony-dnssrv@.timer (services__get_lsb_metadata) trace: Looking into /etc/rc.d/init.d/chrony-dnssrv@.timer (services_action_sync) trace: > chrony-dnssrv@.timer_meta-data_0: /etc/rc.d/init.d/chrony-dnssrv@.timer = 193 (lrmd_api_get_metadata_params) error: Failed to retrieve meta-data for service:(null):chrony-dnssrv@.timer (lrmd_api_disconnect) info: Disconnecting IPC local executor connection crm_resource: Metadata query for service:chrony-dnssrv@.timer failed: No such device or address Error performing operation: No such object (mainloop_destroy_signal_entry) trace: Destroying signal 0 (mainloop_destroy_signal_entry) trace: Destroying signal 1 [...] (mainloop_destroy_signal_entry) trace: Destroying signal 64 (crm_xml_cleanup) info: Cleaning up memory from libxml2 (crm_exit) info: Exiting crm_resource | with status 105