Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
1 change: 1 addition & 0 deletions qa/suites/fs/bugs/concurrent_rename_and_readdir/.qa
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
overrides:
ceph:
fs: xfs
conf:
osd:
osd objectstore: bluestore
bluestore block size: 96636764160
bluestore fsck on mount: true
bluestore allocator: bitmap
# lower the full ratios since we can fill up a 100gb osd so quickly
mon osd full ratio: .9
mon osd backfillfull_ratio: .85
mon osd nearfull ratio: .8
osd failsafe full ratio: .95
# this doesn't work with failures bc the log writes are not atomic across the two backends
# bluestore bluefs env mirror: true
bdev enable discard: true
bdev async discard: true
ceph-deploy:
fs: xfs
bluestore: yes
conf:
osd:
osd objectstore: bluestore
bluestore block size: 96636764160
bluestore fsck on mount: true
# lower the full ratios since we can fill up a 100gb osd so quickly
mon osd full ratio: .9
mon osd backfillfull_ratio: .85
mon osd nearfull ratio: .8
osd failsafe full ratio: .95
bdev enable discard: true
bdev async discard: true

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
roles:
- - host.a
- osd.0
- osd.1
- client.0
- - host.b
- osd.2
- osd.3
- client.1
- - host.c
- osd.4
- osd.5
- client.2
- - host.d
- osd.6
- osd.7
- client.3
Empty file.
1 change: 1 addition & 0 deletions qa/suites/fs/bugs/concurrent_rename_and_readdir/conf/.qa
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
overrides:
ceph:
cluster-conf:
client:
client mount timeout: 600
rados mon op timeout: 900
rados osd op timeout: 900
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
overrides:
ceph:
cluster-conf:
mds:
mds op complaint time: 180
mds verify scatter: true
osd op complaint time: 180
rados mon op timeout: 900
rados osd op timeout: 900
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
overrides:
ceph:
cluster-conf:
mgr:
client mount timeout: 30
mon warn on pool no app: false
10 changes: 10 additions & 0 deletions qa/suites/fs/bugs/concurrent_rename_and_readdir/conf/mon.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
overrides:
ceph:
cluster-conf:
mon:
mon op complaint time: 120
# cephadm can take up to 5 minutes to bring up remaining mons
# This needs to be set before cluster-conf configs are applied.
conf:
mon:
mon down mkfs grace: 300
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
overrides:
ceph:
cluster-conf:
osd:
osd op complaint time: 180
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
overrides:
ceph:
conf:
global:
mon pg warn min per osd: 0
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
meta:
- desc: |
setup ceph/quincy

tasks:
- install:
branch: quincy
exclude_packages:
- ceph-volume
- print: "**** done install task..."
- cephadm:
image: quay.ceph.io/ceph-ci/ceph:quincy
roleless: true
compiled_cephadm_branch: quincy
conf:
osd:
#set config option for which cls modules are allowed to be loaded / used
osd_class_load_list: "*"
osd_class_default_list: "*"
- print: "**** done end installing quincy cephadm ..."
- cephadm.shell:
host.a:
- ceph config set mgr mgr/cephadm/use_repo_digest true --force
- print: "**** done cephadm.shell ceph config set mgr..."
- cephadm.shell:
host.a:
- ceph orch status
- ceph orch ps
- ceph orch ls
- ceph orch host ls
- ceph orch device ls
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
tasks:
- cephadm.shell:
host.a:
- ceph fs volume create cephfs --placement=4
- ceph fs dump
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tasks:
- cephadm.shell:
host.a:
- ceph fs set cephfs allow_standby_replay false
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tasks:
- cephadm.shell:
host.a:
- ceph fs set cephfs allow_standby_replay true
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tasks:
- cephadm.shell:
host.a:
- ceph fs set cephfs inline_data false
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tasks:
- cephadm.shell:
host.a:
- ceph fs set cephfs inline_data true --yes-i-really-really-mean-it
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
tasks:
- cephadm.shell:
host.a:
- ceph fs dump
- ceph --format=json fs dump | jq -e ".filesystems | length == 1"
- while ! ceph --format=json mds versions | jq -e ". | add == 4"; do sleep 1; done
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tasks:
- kclient:
- print: "**** done client"
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
tasks:
- workunit:
clients:
all:
- suites/concurrent_readdir_rename.sh
33 changes: 33 additions & 0 deletions qa/workunits/suites/concurrent_readdir_rename.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env bash

set -ex

mkdir -p ./dir0/new1
mkdir -p ./dir0/new2
touch ./dir0/new1/file{0..9}

count=0

while true ;
do
for i in file0 file1 file2 file3 file4 file5 file6 file7 file8 file9

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for i in file0 file1 file2 file3 file4 file5 file6 file7 file8 file9
for i in file{0..9}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a valid suggestion, but, this reproducer is basically copied from a (downstream) report 🤷

do
echo _____ $i ;
date -u;
ls -l ./dir0/new1/ ./dir0/new2/
/usr/bin/mv -f ./dir0/new1/$i ./dir0/new2/
done

for i in file0 file1 file2 file3 file4 file5 file6 file7 file8 file9

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do
date -u;
echo _____ $i ;
ls -l ./dir0/new1/ ./dir0/new2/
/usr/bin/mv -f ./dir0/new2/$i ./dir0/new1/
done

count=$((count+1))
if [ "$count" -gt 10000 ]; then
break
fi
done