[Pkg-ceph-commits] [ceph] 06/08: Set ownership on mon filesystem when upgrading existing systemd installation to prevent ceph-mon outages due to automatic restarting of daemons around upgrades.
James Downing Page
jamespage at moszumanska.debian.org
Tue Dec 8 12:04:32 UTC 2015
This is an automated email from the git hooks/post-receive script.
jamespage pushed a commit to branch experimental
in repository ceph.
commit 83f8f1f9b203e56a5399b8e5c2656ddd0b613016
Author: James Page <james.page at ubuntu.com>
Date: Tue Dec 8 12:02:37 2015 +0000
Set ownership on mon filesystem when upgrading existing systemd installation to prevent ceph-mon outages due to automatic restarting of daemons around upgrades.
---
debian/ceph.postinst | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/debian/ceph.postinst b/debian/ceph.postinst
index 78fda41..b280af9 100644
--- a/debian/ceph.postinst
+++ b/debian/ceph.postinst
@@ -41,7 +41,14 @@ case "$1" in
fi
for DIR in `ls -1 /var/lib/ceph` ; do
if ! dpkg-statoverride --list /var/lib/ceph/$DIR >/dev/null; then
- chown $SERVER_USER:$SERVER_GROUP /var/lib/ceph/$DIR
+ if [ -d /run/systemd/system ] && [ $DIR = 'mon' ]; then
+ # NOTE: upgrade file permissions for mon filesystem on
+ # systemd based installs only due to automatic
+ # restarting of ceph-mon daemon
+ chown -R $SERVER_USER:$SERVER_GROUP /var/lib/ceph/$DIR
+ else
+ chown $SERVER_USER:$SERVER_GROUP /var/lib/ceph/$DIR
+ fi
fi
done
;;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ceph/ceph.git
More information about the Pkg-ceph-commits
mailing list