From ece49b3c901af034f6e0c7d3785eb019bad9a5cc Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 3 May 2021 14:07:56 +0200 Subject: [PATCH] ceph: reload API daemons after installation To make them load the updated librados2, as else they may potentially not be able to communicate with the potentially newer ceph monitors, as Debian 10 ships Jewel (12.2) by default... While we could do some more fancy signaling to the workers to reload the lib, that is rather a PITA and complex solution for something that happens once in a blue moon. We may want to add a trigger in ceph for this on updates though, that would effectively fix this too - but needs to be thought out better. So for now lets go with the simplest solution. Signed-off-by: Thomas Lamprecht --- PVE/CLI/pveceph.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/PVE/CLI/pveceph.pm b/PVE/CLI/pveceph.pm index 04aae450..4d65eb45 100755 --- a/PVE/CLI/pveceph.pm +++ b/PVE/CLI/pveceph.pm @@ -177,7 +177,12 @@ __PACKAGE__->register_method ({ die "apt failed during ceph installation ($?)\n"; } - print "\ninstalled ceph $cephver successfully\n"; + print "\ninstalled ceph $cephver successfully!\n" + + print "\nreloading API to load new Ceph RADOS library...\n"; + run_command([ + 'systemctl', 'try-reload-or-restart', 'pvedaemon.service', 'pveproxy.service' + ]); return undef; }});