From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 0455B1FF0B3 for ; Wed, 14 Oct 2026 12:43:33 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id EDA2C214C9; Wed, 14 Oct 2026 12:43:30 +0200 (CEST) From: Kefu Chai To: pve-devel@lists.proxmox.com Subject: [PATCH manager] ceph-after-pve-cluster: use a prefix drop-in for ceph-* services Date: Wed, 14 Oct 2026 18:43:21 +0800 Message-ID: <20261014104321.2652781-1-k.chai@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1791974606567 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.373 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: WUYO7KAUPQYYT2G7QOX6KQSC4XGS5E3N X-Message-ID-Hash: WUYO7KAUPQYYT2G7QOX6KQSC4XGS5E3N X-MailFrom: k.chai@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The Ceph services read /etc/ceph/ceph.conf, a symlink into /etc/pve, so they have to start after pve-cluster. Until now we installed the drop-in that orders them unit by unit, and missed the units that came later. So: 1. Replace the drop-ins for ceph-mon@, ceph-mgr@, ceph-osd@, ceph-mds@ and ceph-volume@ with a single one in ceph-.service.d/. systemd applies it to every unit whose name starts with "ceph-", including ones Ceph adds later. 2. With that, ceph-crash is ordered after pve-cluster too. Without the drop-in it could start before /etc/pve was mounted, and its startup check failed with: Error initializing cluster client: ObjectNotFound('RADOS object not found (error calling conf_read_file)') ceph-exporter and ceph-radosgw@ had no drop-in either and are now covered the same way. 3. rbdmap.service and cephfs-mirror@.service read the same config, but their names don't match the prefix, so install the drop-in for each of them. Signed-off-by: Kefu Chai --- services/Makefile | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/services/Makefile b/services/Makefile index 347a6d11..01e8fc99 100644 --- a/services/Makefile +++ b/services/Makefile @@ -21,16 +21,12 @@ SERVICES= \ install: $(SERVICES) install -d $(SERVICEDIR) install -m 0644 $(SERVICES) $(SERVICEDIR) - install -d $(SERVICEDIR)/ceph-mon@.service.d - install -m 0644 ceph-after-pve-cluster.conf $(SERVICEDIR)/ceph-mon@.service.d - install -d $(SERVICEDIR)/ceph-mgr@.service.d - install -m 0644 ceph-after-pve-cluster.conf $(SERVICEDIR)/ceph-mgr@.service.d - install -d $(SERVICEDIR)/ceph-osd@.service.d - install -m 0644 ceph-after-pve-cluster.conf $(SERVICEDIR)/ceph-osd@.service.d - install -d $(SERVICEDIR)/ceph-volume@.service.d - install -m 0644 ceph-after-pve-cluster.conf $(SERVICEDIR)/ceph-volume@.service.d - install -d $(SERVICEDIR)/ceph-mds@.service.d - install -m 0644 ceph-after-pve-cluster.conf $(SERVICEDIR)/ceph-mds@.service.d + install -d $(SERVICEDIR)/ceph-.service.d + install -m 0644 ceph-after-pve-cluster.conf $(SERVICEDIR)/ceph-.service.d + install -d $(SERVICEDIR)/rbdmap.service.d + install -m 0644 ceph-after-pve-cluster.conf $(SERVICEDIR)/rbdmap.service.d + install -d $(SERVICEDIR)/cephfs-mirror@.service.d + install -m 0644 ceph-after-pve-cluster.conf $(SERVICEDIR)/cephfs-mirror@.service.d install -d $(DESTDIR)/usr/share/doc/$(PACKAGE)/examples/ .PHONY: clean -- 2.47.3