Skip to content

Commit a302e3b

Browse files
committed
Merge PR ceph#55435 into main
* refs/pull/55435/head: qa: Fix fs/full suite Reviewed-by: Dhairya Parmar <[email protected]> Reviewed-by: Venky Shankar <[email protected]>
2 parents 66b21ca + 27e9a15 commit a302e3b

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

qa/suites/fs/full/tasks/mgr-osd-full.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
1616
tasks:
1717
- workunit:
1818
cleanup: true

qa/workunits/fs/full/subvolume_clone.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ set -ex
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"
4646
df -h
4747
ceph 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
5252
echo "After subvolumes are written"

qa/workunits/fs/full/subvolume_rm.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
set -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"
2121
df -h
2222
ceph 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

2626
ceph osd set-full-ratio 0.2
2727
ceph osd set-nearfull-ratio 0.16

qa/workunits/fs/full/subvolume_snapshot_rm.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ set -ex
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"
3131
df $CEPH_MNT
3232
ceph 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

3737
ceph osd set-full-ratio 0.2
3838
ceph osd set-nearfull-ratio 0.16

0 commit comments

Comments
 (0)