Skip to content

Commit bd262c3

Browse files
committed
crimson: Use osd_objectstore instead of using crimson_osd_objectstore
Originally the idea with introducing a crimson dedicated configurable was to allow changing the default object store to SeaStore without affecting the Classic option. Moreover, if we were to consider hybrid clusters, different OSD types would require two different dedicated options. Given that cephadm (and possibly other orchestrators) use `--osd-obejctstore` to set the backend - we would prefer to retain (at least for now) this behavior to not break the **existing** cluster deployment methods. Note: A follow up PR would be pushed against cephadm to fully support Seastore as backend option. Fixes: https://tracker.ceph.com/issues/71593 Signed-off-by: Mohit Agrawal <[email protected]>
1 parent ab417e6 commit bd262c3

File tree

6 files changed

+5
-26
lines changed

6 files changed

+5
-26
lines changed

qa/config/crimson_bluestore.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ overrides:
44
conf:
55
osd:
66
# crimson's osd objectstore option
7-
crimson osd objectstore: bluestore
7+
osd objectstore: bluestore
88
debug alienstore: 20
99
bluestore block size: 96636764160
1010
debug bluestore: 20

qa/config/crimson_seastore_rbm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ overrides:
33
conf:
44
osd:
55
# crimson's osd objectstore option
6-
crimson osd objectstore: seastore
6+
osd objectstore: seastore
77
seastore main device type: RANDOM_BLOCK_SSD
88
debug seastore: 20
99
debug seastore onode: 20

qa/config/crimson_seastore_segmented.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ overrides:
33
conf:
44
osd:
55
# crimson's osd objectstore option
6-
crimson osd objectstore: seastore
6+
osd objectstore: seastore
77
debug seastore: 20
88
debug seastore onode: 20
99
debug seastore odata: 20

src/common/options/crimson.yaml.in

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,6 @@
22
---
33

44
options:
5-
- name: crimson_osd_objectstore
6-
type: str
7-
level: advanced
8-
desc: backend type for a Crimson OSD (e.g seastore or bluestore)
9-
default: bluestore
10-
enum_values:
11-
- bluestore
12-
- seastore
13-
- cyanstore
14-
flags:
15-
- create
165
- name: crimson_osd_obc_lru_size
176
type: uint
187
level: advanced

src/crimson/osd/main.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,10 @@ int main(int argc, const char* argv[])
203203
true);
204204
}
205205
auto store = crimson::os::FuturizedStore::create(
206-
local_conf().get_val<std::string>("crimson_osd_objectstore"),
206+
local_conf().get_val<std::string>("osd_objectstore"),
207207
local_conf().get_val<std::string>("osd_data"),
208208
local_conf().get_config_values());
209-
209+
logger().info("passed objectstore is {}", local_conf().get_val<std::string>("osd_objectstore"));
210210
crimson::osd::OSD osd(
211211
whoami, nonce, std::ref(should_stop.abort_source()),
212212
std::ref(*store), cluster_msgr, client_msgr,

src/vstart.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,17 +1022,7 @@ $BLUESTORE_OPTS
10221022
10231023
; kstore
10241024
kstore fsck on mount = true
1025-
EOF
1026-
if [ "$crimson" -eq 1 ]; then
1027-
wconf <<EOF
1028-
crimson osd objectstore = $objectstore
1029-
EOF
1030-
else
1031-
wconf <<EOF
10321025
osd objectstore = $objectstore
1033-
EOF
1034-
fi
1035-
wconf <<EOF
10361026
$SEASTORE_OPTS
10371027
$COSDSHORT
10381028
$(format_conf "${extra_conf}")

0 commit comments

Comments
 (0)