Bug 2321765 - Ceph Exporter: Does not manage Linux signals SIGINT/SIGTERM
Summary: Ceph Exporter: Does not manage Linux signals SIGINT/SIGTERM
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Metrics
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 8.1
Assignee: Juan Miguel Olmo
QA Contact: Sayalee
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-25 12:48 UTC by Juan Miguel Olmo
Modified: 2025-06-26 12:18 UTC (History)
5 users (show)

Fixed In Version: ceph-19.2.1-122.el9cp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2025-06-26 12:18:07 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 68721 0 None None None 2024-10-25 12:48:43 UTC
Red Hat Bugzilla 2276510 0 unspecified POST [GSS]ceph daemons are going into error state when they are stopped 2025-07-16 07:27:58 UTC
Red Hat Issue Tracker RHCEPH-10127 0 None None None 2024-10-25 12:49:01 UTC
Red Hat Product Errata RHSA-2025:9775 0 None None None 2025-06-26 12:18:10 UTC

Internal Links: 2276510

Description Juan Miguel Olmo 2024-10-25 12:48:43 UTC
Description of problem:
Ceph exporter does not implement properly SIGTERM and SIGINT signals exiting with an error when these signals are sent to the Ceph exporter.



Version-Release number of selected component (if applicable):
ceph 8.0

How reproducible:

Example:
terminal A ==========
$ ./ceph-exporter c /home/jolmomar/Code/ceph/build/ceph.conf --sock-dir /home/jolmomar/Code/ceph/build/asok
2024-10-23T12:37:54.538+0200 7f1c4fe990c0 -1 WARNING: all dangerous and experimental features are enabled.
2024-10-23T12:37:54.543+0200 7f1c4fe990c0 -1 WARNING: all dangerous and experimental features are enabled.
2024-10-23T12:37:54.543+0200 7f1c4fe990c0 -1 WARNING: all dangerous and experimental features are enabled.
system:0
...
system:0
Terminated
$ echo $?
143 <--- 128 + 15(SIGTERM)

terminal B ==========
$ ps ef | grep exporter
jolmomar 116727 105597 1 12:37 pts/1 00:00:00 ./ceph-exporter -c /home/jolmomar/Code/ceph/build/ceph.conf --sock-dir /home/jolmomar/Code/ceph/build/asok
jolmomar 116812 109376 0 12:38 pts/2 00:00:00 grep --color=auto exporter
jolmomar:~/.../build/bin$ kill -15 116727 <--- SEND SIGTERM

Steps to Reproduce:
1. launch Ceph exporter
2. terminate Ceph exporter sending SIGTERM/SIGINT signals
3. Check process exit status is different from 0

Also possible to test, stopping the exporter service/or ceph exporter daemons using orchestrator commands example: "ceph orch stop exporter"
After execution the stop command, the ceph exporter will appear in the list of services or daemons with status "error"

Actual results:
Exit status different from 0 when SIGINT/SIGTERM signals are sent to the process.
"Ceph orch stop" command does not produce ceph exporter daemon/service with "error" status.

Expected results:
when sent SIGTERM/SIGINT, process exit code must be 0

Additional info:

Comment 1 Storage PM bot 2024-10-25 12:48:54 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 11 errata-xmlrpc 2025-06-26 12:18:07 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 (Important: Red Hat Ceph Storage 8.1 security, bug fix, and enhancement updates), 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/RHSA-2025:9775


Note You need to log in before you can comment on or make changes to this bug.