Repository navigation
qa/cephfs: add test for concurrent readdir and rename from multiple clients #61338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../.qa |
34 changes: 34 additions & 0 deletions
34
qa/suites/fs/bugs/concurrent_rename_and_readdir/bluestore-bitmap.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
|
|
1 change: 1 addition & 0 deletions
1
qa/suites/fs/bugs/concurrent_rename_and_readdir/centos_9.stream.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| .qa/distros/podman/centos_9.stream.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../.qa |
17 changes: 17 additions & 0 deletions
17
qa/suites/fs/bugs/concurrent_rename_and_readdir/cluster/1a1s-mds-4c-client.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../.qa/ |
7 changes: 7 additions & 0 deletions
7
qa/suites/fs/bugs/concurrent_rename_and_readdir/conf/client.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
9 changes: 9 additions & 0 deletions
9
qa/suites/fs/bugs/concurrent_rename_and_readdir/conf/mds.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
6 changes: 6 additions & 0 deletions
6
qa/suites/fs/bugs/concurrent_rename_and_readdir/conf/mgr.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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
10
qa/suites/fs/bugs/concurrent_rename_and_readdir/conf/mon.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
5 changes: 5 additions & 0 deletions
5
qa/suites/fs/bugs/concurrent_rename_and_readdir/conf/osd.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| overrides: | ||
| ceph: | ||
| cluster-conf: | ||
| osd: | ||
| osd op complaint time: 180 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| .qa/cephfs/begin/3-kernel.yaml |
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../.qa |
1 change: 1 addition & 0 deletions
1
qa/suites/fs/bugs/concurrent_rename_and_readdir/overrides/ignorelist_health.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| .qa/cephfs/overrides/ignorelist_health.yaml |
1 change: 1 addition & 0 deletions
1
...uites/fs/bugs/concurrent_rename_and_readdir/overrides/ignorelist_wrongly_marked_down.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| .qa/cephfs/overrides/ignorelist_wrongly_marked_down.yaml |
5 changes: 5 additions & 0 deletions
5
qa/suites/fs/bugs/concurrent_rename_and_readdir/overrides/pg-warn.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
1 change: 1 addition & 0 deletions
1
qa/suites/fs/bugs/concurrent_rename_and_readdir/overrides/pg_health.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| .qa/cephfs/overrides/pg_health.yaml |
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../.qa |
1 change: 1 addition & 0 deletions
1
qa/suites/fs/bugs/concurrent_rename_and_readdir/tasks/0-from/.qa
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../.qa |
31 changes: 31 additions & 0 deletions
31
qa/suites/fs/bugs/concurrent_rename_and_readdir/tasks/0-from/quincy.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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.
1 change: 1 addition & 0 deletions
1
qa/suites/fs/bugs/concurrent_rename_and_readdir/tasks/1-volume/.qa
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../.qa/ |
5 changes: 5 additions & 0 deletions
5
qa/suites/fs/bugs/concurrent_rename_and_readdir/tasks/1-volume/0-create.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
1 change: 1 addition & 0 deletions
1
qa/suites/fs/bugs/concurrent_rename_and_readdir/tasks/1-volume/1-allow_standby_replay/.qa
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../.qa/ |
4 changes: 4 additions & 0 deletions
4
...uites/fs/bugs/concurrent_rename_and_readdir/tasks/1-volume/1-allow_standby_replay/no.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
4 changes: 4 additions & 0 deletions
4
...ites/fs/bugs/concurrent_rename_and_readdir/tasks/1-volume/1-allow_standby_replay/yes.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
1 change: 1 addition & 0 deletions
1
qa/suites/fs/bugs/concurrent_rename_and_readdir/tasks/1-volume/2-inline/.qa
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../.qa/ |
4 changes: 4 additions & 0 deletions
4
qa/suites/fs/bugs/concurrent_rename_and_readdir/tasks/1-volume/2-inline/no.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
4 changes: 4 additions & 0 deletions
4
qa/suites/fs/bugs/concurrent_rename_and_readdir/tasks/1-volume/2-inline/yes.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
6 changes: 6 additions & 0 deletions
6
qa/suites/fs/bugs/concurrent_rename_and_readdir/tasks/1-volume/4-verify.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
3 changes: 3 additions & 0 deletions
3
qa/suites/fs/bugs/concurrent_rename_and_readdir/tasks/2-client.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| tasks: | ||
| - kclient: | ||
| - print: "**** done client" |
5 changes: 5 additions & 0 deletions
5
qa/suites/fs/bugs/concurrent_rename_and_readdir/tasks/3-workunit.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| tasks: | ||
| - workunit: | ||
| clients: | ||
| all: | ||
| - suites/concurrent_readdir_rename.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| 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 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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 🤷