File tree Expand file tree Collapse file tree 4 files changed +11
-11
lines changed
Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ overrides:
1212 debug mds : 20
1313 osd : # force bluestore since it's required for ec overwrites
1414 osd objectstore : bluestore
15- bluestore block size : 1073741824
15+ bluestore block size : 2147483648
1616tasks :
1717- workunit :
1818 cleanup : true
Original file line number Diff line number Diff line change 77# Hence the subsequent subvolume commands on the clone fails with
88# 'MetadataMgrException: -2 (section 'GLOBAL' does not exist)' traceback.
99
10- # The osd is of the size 1GB . The full-ratios are set so that osd is treated full
11- # at around 600MB. The subvolume is created and 100MB is written.
10+ # The osd is of the size 2GiB . The full-ratios are set so that osd is treated full
11+ # at around 1.2GB. The subvolume is created and 200MB is written.
1212# The subvolume is snapshotted and cloned ten times. Since the clone delay is set to 15 seconds,
1313# all the clones reach pending state for sure. Among ten clones, only few succeed and rest fails
1414# with ENOSPACE.
@@ -46,7 +46,7 @@ echo "After ratios are set"
4646df -h
4747ceph osd df
4848
49- for i in {1..100}; do sudo dd if=/dev/urandom of=$CEPH_MNT$subvol_path_0 /1MB_file -$i status=progress bs=1M count=1 conv=fdatasync; done
49+ for i in {1..100}; do sudo dd if=/dev/urandom of=$CEPH_MNT$subvol_path_0 /2MB_file -$i status=progress bs=1M count=2 conv=fdatasync; done
5050
5151# For debugging
5252echo " After subvolumes are written"
Original file line number Diff line number Diff line change 22set -ex
33
44# This testcase tests the scenario of the 'ceph fs subvolume rm' mgr command
5- # when the osd is full. The command used to hang. The osd is of the size 1GB .
6- # The subvolume is created and 500MB file is written. The full-ratios are
5+ # when the osd is full. The command used to hang. The osd is of the size 2GiB .
6+ # The subvolume is created and 1GB file is written. The full-ratios are
77# set below 500MB such that the osd is treated as full. Now the subvolume is
88# is removed. This should be successful with the introduction of FULL
99# capabilities which the mgr holds.
@@ -21,7 +21,7 @@ echo "Before write"
2121df -h
2222ceph osd df
2323
24- sudo dd if=/dev/urandom of=$CEPH_MNT$subvol_path /500MB_file -1 status=progress bs=1M count=500
24+ sudo dd if=/dev/urandom of=$CEPH_MNT$subvol_path /1GB_file -1 status=progress bs=1M count=1000
2525
2626ceph osd set-full-ratio 0.2
2727ceph osd set-nearfull-ratio 0.16
Original file line number Diff line number Diff line change 77# snapshot rm of the same snapshot fails with 'MetadataMgrException: -2 (section 'GLOBAL' does not exist)'
88# traceback.
99
10- # The osd is of the size 1GB . The subvolume is created and 800MB file is written.
11- # Then full-ratios are set below 500MB such that the osd is treated as full.
10+ # The osd is of the size 2GiB . The subvolume is created and 1.6GB file is written.
11+ # Then full-ratios are set below 1GiB such that the osd is treated as full.
1212# The subvolume snapshot is taken which succeeds as no extra space is required
1313# for snapshot. Now, the removal of the snapshot fails with ENOSPACE as it
1414# fails to remove the snapshot metadata set. The snapshot removal fails
@@ -31,8 +31,8 @@ echo "Before write"
3131df $CEPH_MNT
3232ceph osd df
3333
34- # Write 800MB file and set full ratio to around 200MB
35- ignore_failure sudo dd if=/dev/urandom of=$CEPH_MNT$subvol_path /800MB_file -1 status=progress bs=1M count=800 conv=fdatasync
34+ # Write 1.6GB file and set full ratio to around 400MB
35+ ignore_failure sudo dd if=/dev/urandom of=$CEPH_MNT$subvol_path /1.6GB_file -1 status=progress bs=1M count=1600 conv=fdatasync
3636
3737ceph osd set-full-ratio 0.2
3838ceph osd set-nearfull-ratio 0.16
You can’t perform that action at this time.
0 commit comments