Repository navigation
common/io_exerciser: Add support to ceph_test_rados_io_sequence injecting errors for testing how erasure coding deals with error scenarios - #60330
Conversation
d80050d to
6db1ead
Compare
dcab269 to
91bf624
Compare
|
Run of ceph-ci at time of marking ready for review: https://shaman.ceph.com/builds/ceph/wip_JonBailey1993_ceph_test_rados_io_sequence_inject_errors/8f5ed8e0bc14641d0968d4d1697c58ccf1bfdc4b/ |
|
Ceph-ci runs due to compilation failure where operator -> of unique_ptr cannot be called in constexpr function, due to not being constexpr, but clang (which I developed using) allowing it. Have fixed and will push the new fix and rerun. |
91bf624 to
ac252d1
Compare
|
ceph API tests failed due to a compilation issue with the way I was using std::views::iota with clang-14. Pushing an update with a fix. |
ac252d1 to
35bc870
Compare
|
Hi @ronen-fr - I have added you as an assignee, I would appreciate if you could give these changes a review a review when you have time. Changes include adding new OPs and sequences to the ceph_test_rados_io_sequence exerciser to allow testing of non-good path IO and recovery paths by injecting read and write errors into the OSD so other paths through the IO path will be tested when those sequences are run (along with a new command line parameter to indicate you want to test recovery paths). |
| @@ -0,0 +1,321 @@ | |||
| #include <memory> | |||
There was a problem hiding this comment.
A basic question here: why invent our own JSON structures? there are stable C++ libraries for JSON data manipulation (there is boost::json, which I do not have first hand experience with; there is Nlohmann's (which
I did use a few times), and there are others. Is there a reason to invent our own?
There was a problem hiding this comment.
BTW - Nlohmann is used by Jaegertracing, which is (for now?) part of our codebase.
There was a problem hiding this comment.
I was using the json_spirit library which we use elsewhere in Ceph and was just trying to encapsulate code which I kept repeating into one place rather than it being spread throughout ceph_test_rados_io_sequence and duplicated in other classes, such as decoding the strings into the various types of the structures I wanted to use.
It was originally meant to be more a class for just storing structs that I would decode the json strings into, but looking back I've slowly absorbed the json decoding logic of json_spirit into it.
I'm happy to change this over to Nlohmann json which might match the desired interface I was after with the structs better anyway if we want, as building a new JSON library wasn't my intention here.
There was a problem hiding this comment.
I've added a new commit changing the JSON so it completely takes of advantage of ceph_json.h in the way we use it in other parts of the code. If you are happy with these changes I've made, let me know and I'll be happy to merge it in.
|
LGTM - apart from that one style comment |
|
ceph API tests Looks like an error occurred cloning the repository ([172.21.3.232+irvingi03]). Will rekick the Jenkins API tests. |
|
jenkins test api |
|
ceph API tests Filesystem looks to be full on test machine ([172.21.3.230+irvingi05]). Will rerun the api tests (again). Is there somewhere things like this should be reported? |
|
jenkins test api |
|
ceph API tests
Original issue again |
|
jenkins test api |
77626fc to
c5aa5d6
Compare
|
jenkins test make check arm64 |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
Implement inheritence for ceph::io_exerciser::IoOp to allow better differentiation between the different Op types and allow more complex Operations to be implemented Signed-off-by: Jon Bailey <[email protected]>
Error inject interfaces for EC reads and writes using ceph tell osd.<n> interface Signed-off-by: Bill Scales <[email protected]>
…equence interactive mode Add injecterror commands that can be used in interactive mode to inject read and write errors as well as clear them Signed-off-by: Jon Bailey <[email protected]>
Add sequences to test IOs with simple error injects, along with some small fixes for previous error inject implementation. Signed-off-by: Jon Bailey <[email protected]>
Signed-off-by: Jon Bailey <[email protected]>
…tures.h Signed-off-by: Jon Bailey <[email protected]>
…ion::SeededRandomGenerator Signed-off-by: Jon Bailey <[email protected]>
…eph_json.h fully. Also moved and renamed JSONStructures files so they structures are more easily identifiable and usable by others if desired. Signed-off-by: Jon Bailey <[email protected]>
…shing running Signed-off-by: Jon Bailey <[email protected]>
…6 and random values are generated thereafter Signed-off-by: Jon Bailey <[email protected]>
a89b0a4 to
8fb7829
Compare
|
I am planning to commit this on Friday (10th January 2025) so long as no more comments are made, as this PR is approved. If any changes are requested, let me know/comment before then. I have rebased to the latest main and tested here: https://shaman.ceph.com/builds/ceph/wip_JonBailey1993_ceph_test_rados_io_sequence_inject_error_rebased/b4e4c3546cd09daec76dba14708017cc65bf9a8b/ along with local testing and I'm satisfied it is behaving as desired from my testing. |
common/io_exerciser: Add support to ceph_test_rados_io_sequence for error injects
Adds support to the ceph_test_rados_io_sequence application so that it can simulate OSDs returning errors. It does this by sending commands through the ceph admin socket to inject different types of error responses in OSDs.
The application currently implements this in interactive mode, and in automated mode through some simple tests that take an existing test and perform it with an OSD injecting an error throughout the test run.
This PR contains commits from #59926 (as it depends on them for interactive mode implementation of new code) - if that one gets reviewed and merged first, I will rebase this PR so there is less to review here.
Signed-off-by: JonBailey1993 [email protected]
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e