-
Notifications
You must be signed in to change notification settings - Fork 2
/
radosgw-admin-data-sync.sh
executable file
·26 lines (20 loc) · 3.24 KB
/
radosgw-admin-data-sync.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
BIN=/home/owasserm/ceph/build/
$BIN/bin/radosgw-admin --log-to-stderr --format json -n client.0 -k $BIN/ceph.client.radosgw.keyring realm create --rgw-realm realm0 --default
$BIN/bin/radosgw-admin --log-to-stderr --format json -n client.1 -k $BIN/ceph.client.radosgw.keyring zone set --rgw-zonegroup region0 --rgw-zone r0z1 < r0z1.json
$BIN/bin/radosgw-admin --log-to-stderr --format json -n client.1 -k $BIN/ceph.client.radosgw.keyring zone set --rgw-zonegroup region0 --rgw-zone r0z0 < r0z0.json
$BIN/bin/radosgw-admin --log-to-stderr --format json -n client.1 -k $BIN/ceph.client.radosgw.keyring zonegroup set < region0.json
$BIN/bin/radosgw-admin --log-to-stderr --format json -n client.1 -k $BIN/ceph.client.radosgw.keyring zonegroup default --rgw-zonegroup region0
$BIN/bin/radosgw-admin --log-to-stderr --format json -n client.0 -k $BIN/ceph.client.radosgw.keyring zone set --rgw-zonegroup region0 --rgw-zone r0z1 < r0z1.json
$BIN/bin/radosgw-admin --log-to-stderr --format json -n client.0 -k $BIN/ceph.client.radosgw.keyring zone set --rgw-zonegroup region0 --rgw-zone r0z0 < r0z0.json
$BIN/bin/radosgw-admin --log-to-stderr --format json -n client.0 -k $BIN/ceph.client.radosgw.keyring zonegroup set < region0.json
$BIN/bin/radosgw-admin --log-to-stderr --format json -n client.0 -k $BIN/ceph.client.radosgw.keyring zonegroup default --rgw-zonegroup region0
$BIN/bin/radosgw-admin --log-to-stderr --format json -n client.0 -k $BIN/ceph.client.radosgw.keyring zone default --rgw-zone=r0z0
$BIN/bin/radosgw-admin --log-to-stderr --format json -n client.1 -k $BIN/ceph.client.radosgw.keyring zone default --rgw-zone=r0z0
$BIN/bin/radosgw-admin --log-to-stderr --format json -n client.0 -n client.0 -k $BIN/ceph.client.radosgw.keyring period update --commit
$BIN/bin/radosgw-admin --log-to-stderr --format json -n client.1 -k $BIN/ceph.client.radosgw.keyring user create --uid client1-system-user --access-key $SYSTEM_ACCESS_KEY --secret $SYSTEM_SECRET_KEY --display-name client1-system-user --system --rgw-zone=r0z1
$BIN/bin/radosgw-admin --log-to-stderr --format json -n client.0 -k $BIN/ceph.client.radosgw.keyring user create --uid client1-system-user --access-key $SYSTEM_ACCESS_KEY --secret $SYSTEM_SECRET_KEY --display-name client1-system-user --system
$BIN/bin/radosgw-admin --log-to-stderr --format json -n client.1 -k $BIN/ceph.client.radosgw.keyring user create --uid client0-system-user --access-key $SYSTEM_ACCESS_KEY --secret $SYSTEM_SECRET_KEY --display-name client0-system-user --system --rgw-zone=r0z1
$BIN/bin/radosgw-admin --log-to-stderr --format json -n client.0 -k $BIN/ceph.client.radosgw.keyring user create --uid client0-system-user --access-key $SYSTEM_ACCESS_KEY --secret $SYSTEM_SECRET_KEY --display-name client0-system-user --system
$BIN/bin/radosgw-admin --log-to-stderr --format json -n client.0 -k ./ceph.client.radosgw.keyring user create --uid foo --display-name Foo --email [email protected] --access-key $SYSTEM_ACCESS_KEY --secret $SYSTEM_SECRET_KEY --max-buckets 4
#$BIN/bin/radosgw -n client.0 --log-file $BIN/out/rgw.client.0.log --rgw-frontends="civetweb port=7280" -k $BIN/ceph.client.radosgw.keyring --rgw-zone r0z0
#$BIN/bin/radosgw -n client.1 --log-file $BIN/out/rgw.client.1.log --rgw-frontends="civetweb port=7281" -k $BIN/ceph.client.radosgw.keyring --rgw-zone r0z1