summaryrefslogtreecommitdiffstats
path: root/src/ceph/qa/mon/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'src/ceph/qa/mon/bootstrap')
-rwxr-xr-xsrc/ceph/qa/mon/bootstrap/host.sh29
-rwxr-xr-xsrc/ceph/qa/mon/bootstrap/initial_members.sh39
-rwxr-xr-xsrc/ceph/qa/mon/bootstrap/initial_members_asok.sh66
-rwxr-xr-xsrc/ceph/qa/mon/bootstrap/simple.sh36
-rwxr-xr-xsrc/ceph/qa/mon/bootstrap/simple_expand.sh60
-rwxr-xr-xsrc/ceph/qa/mon/bootstrap/simple_expand_monmap.sh44
-rwxr-xr-xsrc/ceph/qa/mon/bootstrap/simple_single_expand.sh54
-rwxr-xr-xsrc/ceph/qa/mon/bootstrap/simple_single_expand2.sh40
-rwxr-xr-xsrc/ceph/qa/mon/bootstrap/single_host.sh29
-rwxr-xr-xsrc/ceph/qa/mon/bootstrap/single_host_multi.sh39
10 files changed, 0 insertions, 436 deletions
diff --git a/src/ceph/qa/mon/bootstrap/host.sh b/src/ceph/qa/mon/bootstrap/host.sh
deleted file mode 100755
index ad4e327..0000000
--- a/src/ceph/qa/mon/bootstrap/host.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh -ex
-
-cwd=`pwd`
-cat > conf <<EOF
-[global]
-mon host = 127.0.0.1:6789
-
-[mon]
-admin socket =
-log file = $cwd/\$name.log
-debug mon = 20
-debug ms = 1
-EOF
-
-rm -f mm
-fsid=`uuidgen`
-
-rm -f keyring
-ceph-authtool --create-keyring keyring --gen-key -n client.admin
-ceph-authtool keyring --gen-key -n mon.
-
-ceph-mon -c conf -i a --mkfs --fsid $fsid --mon-data mon.a -k keyring
-
-ceph-mon -c conf -i a --mon-data $cwd/mon.a
-
-ceph -c conf -k keyring health
-
-killall ceph-mon
-echo OK \ No newline at end of file
diff --git a/src/ceph/qa/mon/bootstrap/initial_members.sh b/src/ceph/qa/mon/bootstrap/initial_members.sh
deleted file mode 100755
index 2dfa9e9..0000000
--- a/src/ceph/qa/mon/bootstrap/initial_members.sh
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/sh -ex
-
-cwd=`pwd`
-cat > conf <<EOF
-[mon]
-admin socket =
-log file = $cwd/\$name.log
-debug mon = 20
-debug ms = 1
-mon initial members = a,b,d
-EOF
-
-rm -f mm
-monmaptool --create mm \
- --add a 127.0.0.1:6789 \
- --add b 127.0.0.1:6790 \
- --add c 127.0.0.1:6791
-
-rm -f keyring
-ceph-authtool --create-keyring keyring --gen-key -n client.admin
-ceph-authtool keyring --gen-key -n mon.
-
-ceph-mon -c conf -i a --mkfs --monmap mm --mon-data $cwd/mon.a -k keyring
-ceph-mon -c conf -i b --mkfs --monmap mm --mon-data $cwd/mon.b -k keyring
-ceph-mon -c conf -i c --mkfs --monmap mm --mon-data $cwd/mon.c -k keyring
-
-ceph-mon -c conf -i a --mon-data $cwd/mon.a
-ceph-mon -c conf -i c --mon-data $cwd/mon.b
-ceph-mon -c conf -i b --mon-data $cwd/mon.c
-
-ceph -c conf -k keyring --monmap mm health
-
-ceph -c conf -k keyring --monmap mm health
-if ceph -c conf -k keyring --monmap mm mon stat | grep a= | grep b= | grep c= ; then
- break
-fi
-
-killall ceph-mon
-echo OK
diff --git a/src/ceph/qa/mon/bootstrap/initial_members_asok.sh b/src/ceph/qa/mon/bootstrap/initial_members_asok.sh
deleted file mode 100755
index 618f4c5..0000000
--- a/src/ceph/qa/mon/bootstrap/initial_members_asok.sh
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh -ex
-
-cwd=`pwd`
-cat > conf <<EOF
-[mon]
-log file = $cwd/\$name.log
-debug mon = 20
-debug ms = 1
-debug asok = 20
-mon initial members = a,b,d
-admin socket = $cwd/\$name.asok
-EOF
-
-rm -f mm
-fsid=`uuidgen`
-
-rm -f keyring
-ceph-authtool --create-keyring keyring --gen-key -n client.admin
-ceph-authtool keyring --gen-key -n mon.
-
-ceph-mon -c conf -i a --mkfs --fsid $fsid --mon-data $cwd/mon.a -k keyring
-ceph-mon -c conf -i b --mkfs --fsid $fsid --mon-data $cwd/mon.b -k keyring
-ceph-mon -c conf -i c --mkfs --fsid $fsid --mon-data $cwd/mon.c -k keyring
-
-ceph-mon -c conf -i a --mon-data $cwd/mon.a --public-addr 127.0.0.1:6789
-ceph-mon -c conf -i b --mon-data $cwd/mon.c --public-addr 127.0.0.1:6790
-ceph-mon -c conf -i c --mon-data $cwd/mon.b --public-addr 127.0.0.1:6791
-
-sleep 1
-
-if timeout 5 ceph -c conf -k keyring -m localhost mon stat | grep "a,b,c" ; then
- echo WTF
- exit 1
-fi
-
-ceph --admin-daemon mon.a.asok add_bootstrap_peer_hint 127.0.0.1:6790
-
-while true; do
- if ceph -c conf -k keyring -m 127.0.0.1 mon stat | grep 'a,b'; then
- break
- fi
- sleep 1
-done
-
-ceph --admin-daemon mon.c.asok add_bootstrap_peer_hint 127.0.0.1:6790
-
-while true; do
- if ceph -c conf -k keyring -m 127.0.0.1 mon stat | grep 'a,b,c'; then
- break
- fi
- sleep 1
-done
-
-ceph-mon -c conf -i d --mkfs --fsid $fsid --mon-data $cwd/mon.d -k keyring
-ceph-mon -c conf -i d --mon-data $cwd/mon.d --public-addr 127.0.0.1:6792
-ceph --admin-daemon mon.d.asok add_bootstrap_peer_hint 127.0.0.1:6790
-
-while true; do
- if ceph -c conf -k keyring -m 127.0.0.1 mon stat | grep 'a,b,c,d'; then
- break
- fi
- sleep 1
-done
-
-killall ceph-mon
-echo OK
diff --git a/src/ceph/qa/mon/bootstrap/simple.sh b/src/ceph/qa/mon/bootstrap/simple.sh
deleted file mode 100755
index 2121301..0000000
--- a/src/ceph/qa/mon/bootstrap/simple.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh -e
-
-cwd=`pwd`
-cat > conf <<EOF
-[mon]
-admin socket =
-EOF
-
-rm -f mm
-monmaptool --create mm \
- --add a 127.0.0.1:6789 \
- --add b 127.0.0.1:6790 \
- --add c 127.0.0.1:6791
-
-rm -f keyring
-ceph-authtool --create-keyring keyring --gen-key -n client.admin
-ceph-authtool keyring --gen-key -n mon.
-
-ceph-mon -c conf -i a --mkfs --monmap mm --mon-data $cwd/mon.a -k keyring
-ceph-mon -c conf -i b --mkfs --monmap mm --mon-data $cwd/mon.b -k keyring
-ceph-mon -c conf -i c --mkfs --monmap mm --mon-data $cwd/mon.c -k keyring
-
-ceph-mon -c conf -i a --mon-data $cwd/mon.a
-ceph-mon -c conf -i c --mon-data $cwd/mon.b
-ceph-mon -c conf -i b --mon-data $cwd/mon.c
-
-while true; do
- ceph -c conf -k keyring --monmap mm health
- if ceph -c conf -k keyring --monmap mm mon stat | grep 'quorum 0,1,2'; then
- break
- fi
- sleep 1
-done
-
-killall ceph-mon
-echo OK
diff --git a/src/ceph/qa/mon/bootstrap/simple_expand.sh b/src/ceph/qa/mon/bootstrap/simple_expand.sh
deleted file mode 100755
index 519d8ae..0000000
--- a/src/ceph/qa/mon/bootstrap/simple_expand.sh
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/sh -ex
-
-cwd=`pwd`
-cat > conf <<EOF
-[mon]
-admin socket =
-log file = $cwd/\$name.log
-debug mon = 20
-debug ms = 1
-EOF
-
-rm -f mm
-monmaptool --create mm \
- --add a 127.0.0.1:6789 \
- --add b 127.0.0.1:6790 \
- --add c 127.0.0.1:6791
-
-rm -f keyring
-ceph-authtool --create-keyring keyring --gen-key -n client.admin
-ceph-authtool keyring --gen-key -n mon.
-
-ceph-mon -c conf -i a --mkfs --monmap mm --mon-data $cwd/mon.a -k keyring
-ceph-mon -c conf -i b --mkfs --monmap mm --mon-data $cwd/mon.b -k keyring
-ceph-mon -c conf -i c --mkfs --monmap mm --mon-data $cwd/mon.c -k keyring
-
-ceph-mon -c conf -i a --mon-data $cwd/mon.a
-ceph-mon -c conf -i c --mon-data $cwd/mon.b
-ceph-mon -c conf -i b --mon-data $cwd/mon.c
-
-ceph -c conf -k keyring --monmap mm health
-
-## expand via a kludged monmap
-monmaptool mm --add d 127.0.0.1:6792
-ceph-mon -c conf -i d --mkfs --monmap mm --mon-data $cwd/mon.d -k keyring
-ceph-mon -c conf -i d --mon-data $cwd/mon.d
-
-while true; do
- ceph -c conf -k keyring --monmap mm health
- if ceph -c conf -k keyring --monmap mm mon stat | grep 'quorum 0,1,2,3'; then
- break
- fi
- sleep 1
-done
-
-# again
-monmaptool mm --add e 127.0.0.1:6793
-ceph-mon -c conf -i e --mkfs --monmap mm --mon-data $cwd/mon.e -k keyring
-ceph-mon -c conf -i e --mon-data $cwd/mon.e
-
-while true; do
- ceph -c conf -k keyring --monmap mm health
- if ceph -c conf -k keyring --monmap mm mon stat | grep 'quorum 0,1,2,3,4'; then
- break
- fi
- sleep 1
-done
-
-
-killall ceph-mon
-echo OK
diff --git a/src/ceph/qa/mon/bootstrap/simple_expand_monmap.sh b/src/ceph/qa/mon/bootstrap/simple_expand_monmap.sh
deleted file mode 100755
index da24c02..0000000
--- a/src/ceph/qa/mon/bootstrap/simple_expand_monmap.sh
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/sh -ex
-
-cwd=`pwd`
-cat > conf <<EOF
-[mon]
-admin socket =
-EOF
-
-rm -f mm
-monmaptool --create mm \
- --add a 127.0.0.1:6789 \
- --add b 127.0.0.1:6790 \
- --add c 127.0.0.1:6791
-
-rm -f keyring
-ceph-authtool --create-keyring keyring --gen-key -n client.admin
-ceph-authtool keyring --gen-key -n mon.
-
-ceph-mon -c conf -i a --mkfs --monmap mm --mon-data $cwd/mon.a -k keyring
-ceph-mon -c conf -i b --mkfs --monmap mm --mon-data $cwd/mon.b -k keyring
-ceph-mon -c conf -i c --mkfs --monmap mm --mon-data $cwd/mon.c -k keyring
-
-ceph-mon -c conf -i a --mon-data $cwd/mon.a
-ceph-mon -c conf -i c --mon-data $cwd/mon.b
-ceph-mon -c conf -i b --mon-data $cwd/mon.c
-
-ceph -c conf -k keyring --monmap mm health
-
-## expand via a kludged monmap
-monmaptool mm --add d 127.0.0.1:6792
-ceph-mon -c conf -i d --mkfs --monmap mm --mon-data $cwd/mon.d -k keyring
-ceph-mon -c conf -i d --mon-data $cwd/mon.d
-
-while true; do
- ceph -c conf -k keyring --monmap mm health
- if ceph -c conf -k keyring --monmap mm mon stat | grep d=; then
- break
- fi
- sleep 1
-done
-
-killall ceph-mon
-
-echo OK
diff --git a/src/ceph/qa/mon/bootstrap/simple_single_expand.sh b/src/ceph/qa/mon/bootstrap/simple_single_expand.sh
deleted file mode 100755
index 99fe564..0000000
--- a/src/ceph/qa/mon/bootstrap/simple_single_expand.sh
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh -ex
-
-cwd=`pwd`
-cat > conf <<EOF
-[mon]
-admin socket =
-log file = $cwd/\$name.log
-debug mon = 20
-debug ms = 1
-EOF
-
-rm -f mm
-monmaptool --create mm \
- --add a 127.0.0.1:6789
-
-rm -f keyring
-ceph-authtool --create-keyring keyring --gen-key -n client.admin
-ceph-authtool keyring --gen-key -n mon.
-
-ceph-mon -c conf -i a --mkfs --monmap mm --mon-data $cwd/mon.a -k keyring
-
-ceph-mon -c conf -i a --mon-data $cwd/mon.a
-
-ceph -c conf -k keyring --monmap mm health
-
-## expand via a kludged monmap
-monmaptool mm --add d 127.0.0.1:6702
-ceph-mon -c conf -i d --mkfs --monmap mm --mon-data $cwd/mon.d -k keyring
-ceph-mon -c conf -i d --mon-data $cwd/mon.d
-
-while true; do
- ceph -c conf -k keyring --monmap mm health
- if ceph -c conf -k keyring --monmap mm mon stat | grep 'quorum 0,1'; then
- break
- fi
- sleep 1
-done
-
-# again
-monmaptool mm --add e 127.0.0.1:6793
-ceph-mon -c conf -i e --mkfs --monmap mm --mon-data $cwd/mon.e -k keyring
-ceph-mon -c conf -i e --mon-data $cwd/mon.e
-
-while true; do
- ceph -c conf -k keyring --monmap mm health
- if ceph -c conf -k keyring --monmap mm mon stat | grep 'quorum 0,1,2'; then
- break
- fi
- sleep 1
-done
-
-
-killall ceph-mon
-echo OK
diff --git a/src/ceph/qa/mon/bootstrap/simple_single_expand2.sh b/src/ceph/qa/mon/bootstrap/simple_single_expand2.sh
deleted file mode 100755
index 28d0c56..0000000
--- a/src/ceph/qa/mon/bootstrap/simple_single_expand2.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/sh -ex
-
-cwd=`pwd`
-cat > conf <<EOF
-[mon]
-admin socket =
-log file = $cwd/\$name.log
-debug mon = 20
-debug ms = 1
-EOF
-
-rm -f mm
-ip=`host \`hostname\` | awk '{print $4}'`
-monmaptool --create mm \
- --add a $ip:6779
-
-rm -f keyring
-ceph-authtool --create-keyring keyring --gen-key -n client.admin
-ceph-authtool keyring --gen-key -n mon.
-
-ceph-mon -c conf -i a --mkfs --monmap mm --mon-data $cwd/mon.a -k keyring
-
-ceph-mon -c conf -i a --mon-data $cwd/mon.a
-
-ceph -c conf -k keyring --monmap mm health
-
-## expand via a local_network
-ceph-mon -c conf -i d --mkfs --monmap mm --mon-data $cwd/mon.d -k keyring
-ceph-mon -c conf -i d --mon-data $cwd/mon.d --public-network 127.0.0.1/32
-
-while true; do
- ceph -c conf -k keyring --monmap mm health
- if ceph -c conf -k keyring --monmap mm mon stat | grep 'quorum 0,1'; then
- break
- fi
- sleep 1
-done
-
-killall ceph-mon
-echo OK
diff --git a/src/ceph/qa/mon/bootstrap/single_host.sh b/src/ceph/qa/mon/bootstrap/single_host.sh
deleted file mode 100755
index c40b561..0000000
--- a/src/ceph/qa/mon/bootstrap/single_host.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh -ex
-
-cwd=`pwd`
-cat > conf <<EOF
-[global]
-mon host = 127.0.0.1:6789
-
-[mon]
-admin socket =
-log file = $cwd/\$name.log
-debug mon = 20
-debug ms = 1
-EOF
-
-rm -f mm
-fsid=`uuidgen`
-
-rm -f keyring
-ceph-authtool --create-keyring keyring --gen-key -n client.admin
-ceph-authtool keyring --gen-key -n mon.
-
-ceph-mon -c conf -i a --mkfs --fsid $fsid --mon-data $cwd/mon.a -k keyring
-
-ceph-mon -c conf -i a --mon-data $cwd/mon.a
-
-ceph -c conf -k keyring health
-
-killall ceph-mon
-echo OK \ No newline at end of file
diff --git a/src/ceph/qa/mon/bootstrap/single_host_multi.sh b/src/ceph/qa/mon/bootstrap/single_host_multi.sh
deleted file mode 100755
index 864f3b1..0000000
--- a/src/ceph/qa/mon/bootstrap/single_host_multi.sh
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/sh -ex
-
-cwd=`pwd`
-cat > conf <<EOF
-[global]
-
-[mon]
-admin socket =
-log file = $cwd/\$name.log
-debug mon = 20
-debug ms = 1
-mon host = 127.0.0.1:6789 127.0.0.1:6790 127.0.0.1:6791
-EOF
-
-rm -f mm
-fsid=`uuidgen`
-
-rm -f keyring
-ceph-authtool --create-keyring keyring --gen-key -n client.admin
-ceph-authtool keyring --gen-key -n mon.
-
-ceph-mon -c conf -i a --mkfs --fsid $fsid --mon-data $cwd/mon.a -k keyring --public-addr 127.0.0.1:6789
-ceph-mon -c conf -i b --mkfs --fsid $fsid --mon-data $cwd/mon.b -k keyring --public-addr 127.0.0.1:6790
-ceph-mon -c conf -i c --mkfs --fsid $fsid --mon-data $cwd/mon.c -k keyring --public-addr 127.0.0.1:6791
-
-ceph-mon -c conf -i a --mon-data $cwd/mon.a
-ceph-mon -c conf -i b --mon-data $cwd/mon.b
-ceph-mon -c conf -i c --mon-data $cwd/mon.c
-
-ceph -c conf -k keyring health -m 127.0.0.1
-while true; do
- if ceph -c conf -k keyring -m 127.0.0.1 mon stat | grep 'a,b,c'; then
- break
- fi
- sleep 1
-done
-
-killall ceph-mon
-echo OK \ No newline at end of file