/ceph-fs-common
/ceph-mds-dbg
/ceph-mds
+/ceph-mgr-dbg
+/ceph-mgr
/ceph-mon-dbg
/ceph-mon
/ceph-osd-dbg
--- /dev/null
+var/lib/ceph/mgr
--- /dev/null
+usr/bin/ceph-mgr
+usr/lib/ceph/mgr
--- /dev/null
+#!/bin/sh
+# vim: set noet ts=8:
+# postinst script for ceph-mgr
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#
+# postinst configure <most-recently-configured-version>
+# old-postinst abort-upgrade <new-version>
+# conflictor's-postinst abort-remove in-favour <package> <new-version>
+# postinst abort-remove
+# deconfigured's-postinst abort-deconfigure in-favour <failed-install-package> <version> [<removing conflicting-package> <version>]
+#
+
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+[ -f "/etc/default/ceph" ] && . /etc/default/ceph
+[ -z "$SERVER_USER" ] && SERVER_USER=ceph
+[ -z "$SERVER_GROUP" ] && SERVER_GROUP=ceph
+
+case "$1" in
+ configure)
+ [ -x /sbin/start ] && start ceph-mgr-all || :
+
+ if ! dpkg-statoverride --list /var/lib/ceph/mgr >/dev/null
+ then
+ chown $SERVER_USER:$SERVER_GROUP /var/lib/ceph/mgr
+ fi
+ ;;
+ abort-upgrade|abort-remove|abort-deconfigure)
+ :
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
--- /dev/null
+#!/bin/sh
+# vim: set noet ts=8:
+
+set -e
+
+case "$1" in
+ remove)
+ [ -x /sbin/stop ] && stop ceph-mgr-all || :
+ invoke-rc.d ceph stop mgr || {
+ RESULT=$?
+ if [ $RESULT != 100 ]; then
+ exit $RESULT
+ fi
+ }
+ ;;
+
+ *)
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
Package: ceph
Architecture: linux-any
Depends: ceph-mon (= ${binary:Version}),
+ ceph-mgr (= ${binary:Version}),
ceph-osd (= ${binary:Version})
Recommends: ceph-mds (= ${binary:Version})
Description: distributed storage and file system
block and file system storage.
.
This package contains the libraries and management tools that are common among
- the three Ceph server daemons (ceph-mon, ceph-osd, ceph-mds). These tools are
- necessary for creating, running, and administering a Ceph storage cluster.
+ the Ceph server daemons (ceph-mon, ceph-mgr, ceph-osd, ceph-mds). These tools
+ are necessary for creating, running, and administering a Ceph storage cluster.
Package: ceph-mds
Architecture: linux-any
.
This package contains the debugging symbols for ceph-mds.
+Package: ceph-mgr
+Architecture: linux-any
+Depends: ceph-base (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
+Replaces: ceph (<< 0.93-417)
+Breaks: ceph (<< 0.93-417)
+Description: metadata server for the ceph distributed file system
+ Ceph is a massively scalable, open-source, distributed
+ storage system that runs on commodity hardware and delivers object,
+ block and file system storage.
+ .
+ This package contains the manager daemon, which is used to expose high
+ level management and monitoring functionality.
+
+Package: ceph-mgr-dbg
+Architecture: linux-any
+Section: debug
+Priority: extra
+Depends: ceph-mgr (= ${binary:Version}), ${misc:Depends}
+Description: debugging symbols for ceph-mgr
+ Ceph is a massively scalable, open-source, distributed
+ storage system that runs on commodity hardware and delivers object,
+ block and file system storage.
+ .
+ This package contains the debugging symbols for ceph-mgr.
+
Package: ceph-mon
Architecture: linux-any
Depends: ceph-base (= ${binary:Version}),
install -m0644 src/upstart/rbdmap.conf debian/ceph-common/etc/init
install -d -m0755 debian/ceph-mds/etc/init
install -m0644 src/upstart/ceph-mds*.conf debian/ceph-mds/etc/init
+ install -d -m0755 debian/ceph-mgr/etc/init
+ install -m0644 src/upstart/ceph-mgr*.conf debian/ceph-mgr/etc/init
install -d -m0755 debian/radosgw/etc/init
install -m0644 src/upstart/radosgw*.conf debian/radosgw/etc/init
install -d -m0755 debian/rbd-mirror/etc/init
sed -i s./etc/sysconfig/./etc/default/.g debian/ceph-mds/lib/systemd/system/ceph-mds@.service
install -m0644 systemd/ceph-mds.target debian/ceph-mds/lib/systemd/system
+ install -d -m0755 debian/ceph-mgr/lib/systemd/system
+ install -m0644 systemd/ceph-mgr@.service debian/ceph-mgr/lib/systemd/system
+ sed -i s./etc/sysconfig/./etc/default/.g debian/ceph-mgr/lib/systemd/system/ceph-mgr@.service
+ install -m0644 systemd/ceph-mgr.target debian/ceph-mgr/lib/systemd/system
+
install -d -m0755 debian/radosgw/lib/systemd/system
install -m0644 systemd/ceph-radosgw@.service debian/radosgw/lib/systemd/system
sed -i s./etc/sysconfig/./etc/default/.g debian/radosgw/lib/systemd/system/ceph-radosgw@.service
override_dh_strip:
dh_strip -pceph-mds --dbg-package=ceph-mds-dbg
+ dh_strip -pceph-mgr --dbg-package=ceph-mgr-dbg
dh_strip -pceph-mon --dbg-package=ceph-mon-dbg
dh_strip -pceph-osd --dbg-package=ceph-osd-dbg
dh_strip -pceph-fuse --dbg-package=ceph-fuse-dbg
--- /dev/null
+description "Ceph Manager (start all instances)"
+
+start on starting ceph-mgr-all
+
+task
+
+script
+ set -e
+ find -L /var/lib/ceph/mgr/ -mindepth 1 -maxdepth 1 -regextype posix-egrep -regex '.*/[A-Za-z0-9]+-[A-Za-z0-9._-]+' -printf '%P\n' \
+ | while read f; do
+ if [ -e "/var/lib/ceph/mgr/$f/done" ] && [ -e "/var/lib/ceph/mgr/$f/upstart" ] && [ ! -e "/var/lib/ceph/mgr/$f/sysvinit" ]; then
+ cluster="${f%%-*}"
+ id="${f#*-}"
+ initctl emit ceph-mgr cluster="$cluster" id="$id"
+ fi
+ done
+end script
--- /dev/null
+description "Ceph Manager (all instances)"
+
+start on starting ceph-all
+stop on stopping ceph-all
--- /dev/null
+description "Ceph Manager"
+
+start on ceph-mgr
+stop on runlevel [!2345] or stopping ceph-mgr-all
+
+respawn
+respawn limit 3 1800
+
+limit nofile 16384 16384
+
+pre-start script
+ set -e
+ test -x /usr/bin/ceph-mgr || { stop; exit 0; }
+ test -d "/var/lib/ceph/mgr/${cluster:-ceph}-$id" || { stop; exit 0; }
+
+ install -d -m0770 -o ceph -g ceph /var/run/ceph
+end script
+
+instance ${cluster:-ceph}/$id
+export cluster
+export id
+
+# this breaks oneiric
+#usage "cluster = name of cluster (defaults to 'ceph'); id = mgr instance id"
+
+exec /usr/bin/ceph-mgr --cluster="${cluster:-ceph}" -i "$id" -f --setuser ceph --setgroup ceph