public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: "Max R. Carrara" <m.carrara@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH pve-manager v3 0/6] Fix #6816: Prevent ceph-exporter Daemon from Crashing on Startup - v3
Date: Tue, 23 Dec 2025 16:33:59 +0100	[thread overview]
Message-ID: <20251223153419.507507-1-m.carrara@proxmox.com> (raw)

Fix #6816: Prevent ceph-exporter Daemon from Crashing on Startup - v3
=====================================================================

tl;dr: Stop ceph-exporter.service from ending up in a crash loop by
handing it a custom keyring file and setting its group to `www-data`,
similar to what we did for ceph-crash.service [0] before.

v2 contains the entire description; see below for a link.

Changes
-------

The only notable change from v2 is that the race condition @Maximiliano
found [1] (thanks!) is now removed—after a quick discussion with @Stoiko
(thanks!), it was deemed that it's best to let admins restart
`ceph-exporter` themselves instead of automagically resetting its
failure state and restarting it in debian/postinst of pve-manager.

The main reasoning behind this is that unlike the crash daemon, the
exporter isn't a critical part of Ceph, and moreover, *nobody* upstream
(according to https://codesearch.debian.net) is calling `systemctl
reset-failed <UNIT>` in postinst. (Determined by searching for
`reset-failed`, without backticks ofc).

A quick smoke test here would be much appreciated.

NOTE
----

Patch #03 adds a call to a new helper in debian/postinst. The version
check there should be adapted after / while applying the series. Right
now, the version in the check is set to `9.1.5`.

Previous Versions
-----------------

v1: https://lore.proxmox.com/pve-devel/20250916172012.739807-1-m.carrara@proxmox.com/
v2: https://lore.proxmox.com/pve-devel/20251222141907.400926-1-m.carrara@proxmox.com/

References
----------

[0]: https://lore.proxmox.com/pve-devel/20240402145523.683008-11-m.carrara@proxmox.com/
[1]: https://lore.proxmox.com/pve-devel/s8oldit4bdh.fsf@proxmox.com/

Summary of Changes
------------------

pve-manager:

Max R. Carrara (5):
  ceph: tools: add helper sub for creating or updating keyring files
  fix #6816: api: ceph: create 'client.exporter' w/ keyring
  fix #6816: bin: add pve-ceph-keyring helper and call it in postinst
  ceph: tools: simplify helper sub for crash keyring file
  bin: make pve-init-ceph-crash call pve-ceph-keyring

 PVE/API2/Ceph/MON.pm    |   9 ++
 PVE/Ceph/Tools.pm       | 108 ++++++++++++---
 bin/Makefile            |   1 +
 bin/pve-ceph-keyring    | 286 ++++++++++++++++++++++++++++++++++++++++
 bin/pve-init-ceph-crash | 152 +--------------------
 debian/postinst         |   6 +
 6 files changed, 397 insertions(+), 165 deletions(-)
 create mode 100755 bin/pve-ceph-keyring


ceph:

Max R. Carrara (1):
  fix #6816: patches: make ceph-exporter use custom keyring

 ...orter-use-custom-keyring-and-set-gro.patch | 32 +++++++++++++++++++
 patches/series                                |  1 +
 2 files changed, 33 insertions(+)
 create mode 100644 patches/0042-systemd-ceph-exporter-use-custom-keyring-and-set-gro.patch


-- 
2.47.3



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

             reply	other threads:[~2025-12-23 15:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-23 15:33 Max R. Carrara [this message]
2025-12-23 15:34 ` [pve-devel] [PATCH pve-manager v3 1/6] ceph: tools: add helper sub for creating or updating keyring files Max R. Carrara
2025-12-23 15:34 ` [pve-devel] [PATCH pve-manager v3 2/6] fix #6816: api: ceph: create 'client.exporter' w/ keyring Max R. Carrara
2025-12-23 15:34 ` [pve-devel] [PATCH pve-manager v3 3/6] fix #6816: bin: add pve-ceph-keyring helper and call it in postinst Max R. Carrara
2025-12-23 15:34 ` [pve-devel] [PATCH pve-manager v3 4/6] ceph: tools: simplify helper sub for crash keyring file Max R. Carrara
2025-12-23 15:34 ` [pve-devel] [PATCH pve-manager v3 5/6] bin: make pve-init-ceph-crash call pve-ceph-keyring Max R. Carrara
2025-12-23 15:34 ` [pve-devel] [PATCH ceph v3 6/6] fix #6816: patches: make ceph-exporter use custom keyring Max R. Carrara

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251223153419.507507-1-m.carrara@proxmox.com \
    --to=m.carrara@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal