]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph_common.sh: add mgr support to init-ceph
authorSage Weil <sage@redhat.com>
Fri, 24 Feb 2017 19:11:53 +0000 (14:11 -0500)
committerSage Weil <sage@redhat.com>
Mon, 27 Feb 2017 14:56:55 +0000 (09:56 -0500)
This is mainly for the benefit of vstart.

Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph_common.sh

index 69e9b066e8cb3b49be33e408ff206f8fcea49461..20a2db04c4be9695222230bc22d9ca8c7a25649f 100644 (file)
@@ -175,14 +175,16 @@ get_local_name_list() {
     get_local_daemon_list "mon"
     get_local_daemon_list "osd"
     get_local_daemon_list "mds"
+    get_local_daemon_list "mgr"
 }
 
 get_name_list() {
     orig="$*"
 
-    # extract list of monitors, mdss, osds defined in startup.conf
+    # extract list of monitors, mdss, osds, mgrs defined in startup.conf
     allconf="$local "`$CCONF -c $conf -l mon | egrep -v '^mon$' || true ; \
        $CCONF -c $conf -l mds | egrep -v '^mds$' || true ; \
+       $CCONF -c $conf -l mgr | egrep -v '^mgr$' || true ; \
        $CCONF -c $conf -l osd | egrep -v '^osd$' || true`
 
     if [ -z "$orig" ]; then
@@ -195,7 +197,7 @@ get_name_list() {
        type=`echo $f | cut -c 1-3`   # e.g. 'mon', if $item is 'mon1'
        id=`echo $f | cut -c 4- | sed 's/\\.//'`
        case $f in
-           mon | osd | mds)
+           mon | osd | mds | mgr)
                for d in $allconf; do
                    if echo $d | grep -q ^$type; then
                        what="$what $d"