[pve-devel] [PATCH RFC ceph 1/1] add postinst code to remove old ceph osd activation script
Dominik Csapak
d.csapak at proxmox.com
Thu Jun 27 14:51:35 CEST 2019
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
...e-ceph-osd-activation-script-in-post.patch | 39 +++++++++++++++++++
patches/series | 1 +
2 files changed, 40 insertions(+)
create mode 100644 patches/0009-remove-legacy-pve-ceph-osd-activation-script-in-post.patch
diff --git a/patches/0009-remove-legacy-pve-ceph-osd-activation-script-in-post.patch b/patches/0009-remove-legacy-pve-ceph-osd-activation-script-in-post.patch
new file mode 100644
index 000000000..7323ab369
--- /dev/null
+++ b/patches/0009-remove-legacy-pve-ceph-osd-activation-script-in-post.patch
@@ -0,0 +1,39 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Dominik Csapak <d.csapak at proxmox.com>
+Date: Thu, 27 Jun 2019 14:37:06 +0200
+Subject: [PATCH] remove legacy pve ceph osd activation script in postinst of
+ ceph-osd
+
+that service was distributed by pve-manager (but not in a regular way)
+and only executed ceph-disk activate-all
+
+this fails on nautilus and has to be removed when upgrading from
+luminous
+
+Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
+---
+ debian/ceph-osd.postinst | 11 +++++++++++
+ 1 file changed, 11 insertions(+)
+
+diff --git a/debian/ceph-osd.postinst b/debian/ceph-osd.postinst
+index 5e44548fe8..4d0044590e 100644
+--- a/debian/ceph-osd.postinst
++++ b/debian/ceph-osd.postinst
+@@ -25,6 +25,17 @@ case "$1" in
+ configure)
+ [ -x /etc/init.d/procps ] && invoke-rc.d procps restart || :
+ [ -x /sbin/start ] && start ceph-osd-all || :
++
++ # remove legacy osd activation service
++ if [ ! -z "$2" ] && dpkg --compare-versions "$2" lt '14'; then
++ if [ -e /etc/systemd/system/multi-user.target.wants/ceph.service ]; then
++ deb-systemd-invoke disable ceph.service >/dev/null || :
++ fi
++ if [ -e /etc/systemd/system/ceph.service ]; then
++ rm /etc/systemd/system/ceph.service || :
++ systemctl --system daemon-reload >/dev/null || :
++ fi
++ fi
+ ;;
+ abort-upgrade|abort-remove|abort-deconfigure)
+ :
diff --git a/patches/series b/patches/series
index de9726160..0f31ac863 100644
--- a/patches/series
+++ b/patches/series
@@ -3,3 +3,4 @@
0006-debian-control-add-break-libpvestorage-perl.patch
0007-debian-rules-ship-Ceph-changelog-as-upstream-changel.patch
0008-ceph-volume-lvm.zap-fix-cleanup-for-db-partitions.patch
+0009-remove-legacy-pve-ceph-osd-activation-script-in-post.patch
--
2.20.1
More information about the pve-devel
mailing list