Skip to content

Commit

Permalink
Merge pull request ceph#60328 from cbodley/wip-mstart-doc
Browse files Browse the repository at this point in the history
rgw: document and label mstart.sh and related scripts

Reviewed-by: Patrick Donnelly <[email protected]>
Reviewed-by: Shilpa Jagannath <[email protected]>
  • Loading branch information
cbodley authored Oct 18, 2024
2 parents 2bffb22 + c78d1ba commit 6c16896
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ README* @ceph/doc-writers
/src/cls/rgw_gc @ceph/rgw
/src/cls/user @ceph/rgw
/src/cls/version @ceph/rgw
/src/mrgw.sh @ceph/rgw
/src/mrun @ceph/rgw
/src/mstart.sh @ceph/rgw
/src/mstop.sh @ceph/rgw
/src/rgw @ceph/rgw
/src/s3select @ceph/rgw
/src/spawn @ceph/rgw
Expand Down
3 changes: 3 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@ rgw:
- src/cls/rgw_gc/**
- src/cls/timeindex/**
- src/mrgw.sh
- src/mrun
- src/mstart.sh
- src/mstop.sh
- src/rgw/**
- src/test/cls_rgw/**
- src/test/librgw_*
Expand Down
2 changes: 2 additions & 0 deletions src/mrgw.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

# Start/restart a radosgw instance on the given mstart.sh cluster.

set -e

rgw_frontend=${RGW_FRONTEND:-"beast"}
Expand Down
2 changes: 2 additions & 0 deletions src/mrun
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

# Run a ceph command against the given mstart.sh cluster.

[ $# -lt 2 ] && echo "usage: $0 <name> <command> [params...]" && exit 1

root=`dirname $0`
Expand Down
28 changes: 28 additions & 0 deletions src/mstart.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
#!/bin/sh

# Deploy a vstart.sh cluster in a named subdirectory. This makes it possible to
# start multiple clusters in different subdirectories. See mstop.sh for cleanup.
#
# Example:
#
# ~/ceph/build $ MON=1 OSD=1 RGW=1 MDS=0 MGR=0 ../src/mstart.sh c1 -n -d
# ~/ceph/build $ MON=1 OSD=1 RGW=1 MDS=0 MGR=0 ../src/mstart.sh c2 -n -d
#
# ~/ceph/build $ ls run
# c1 c2
# ~/ceph/build $ ls run/c1
# asok ceph.conf dev keyring out
#
# ~/ceph/build $ ../src/mrun c1 radosgw-admin user list
# [
# "56789abcdef0123456789abcdef0123456789abcdef0123456789abcdef01234",
# "testx$9876543210abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
# "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
# "testacct1user",
# "test",
# "testacct2root",
# "testacct1root",
# "testid"
# ]
#
# ~/ceph/build $ ../src/mstop.sh c1
# ~/ceph/build $ ../src/mstop.sh c2

usage="usage: $0 <name> [vstart options]..\n"

usage_exit() {
Expand Down
2 changes: 2 additions & 0 deletions src/mstop.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

# Stop a named cluster started by mstart.sh

set -e

script_root=`dirname $0`
Expand Down

0 comments on commit 6c16896

Please sign in to comment.