Repository navigation
src/test/osd: create ceph_test_rados_io_sequence testing tool - #59857
JonBailey1993 merged 4 commits into
Conversation
5ce5fed to
41fd338
Compare
Creation of ceph_test_radios_io_sequence tool. Application creates IO sequences using seeded random numbers. IO sequences are varied in IO offset, length, IO order and data patterns to try stress erasure coding specifically and detect defects earlier in the development cycle. We feel the creation of this as a new tool is benificial for several reasons: * Existing test tools either generate completely random I/O (with different offsets and lengths) or test very uniform I/O (either read/write whole object or read/writes with fixed length). This is very inefficient (relies on brute force) for testing boundary conditions. The I/O sequence test tool generates sequences of I/Os to specifically test boundary conditions * Existing test tools only generate RADOS requests that contain a single read or write request. Recent regressions found in EC show that clients (e.g. RBD with LUKs) can generate RADOS requests that contain multiple reads or writes. This tool will sometimes generate requests with 2 or 3 I/O operations * Quality of data patterns when writing to objects and validation of data for reading is not as great as desired in existing test tools. This means that code bugs where the wrong part of an object is read/written may not be detected. This tool creates more sophisticated data patterns and keeps a model of the object to track the expected contents of the object. * For erasure coding there are many choices of erasure code profile, this tool can create pools and exercise multiple different profiles in parallel to speed up testing. The test tool is located in src/test/osd, as the new tool is used explicitly for testing the erasure coding implementation of OSDs. A lot of the logic for generating IO Sequences has been stored in a new location, io_exerciser, located in src/common. The thinking behind storing the code here is we feel it is useful to share between other applications. It is abstracted to a level it shouldn't be necissairy to have to be only used with only the new ceph_test_rados_io_sequence application and we would like to be able to integrate with other tools such as ceph_test_rados or possibly rados bench as well in future PRs to enhance testing done with those tools. Signed-off-by: Jon Bailey <[email protected]>
41fd338 to
afb6399
Compare
Removes use of const members to allow possibility of moving. Changes strings that were passed by value to now be const ref. Adds readability improvements to shorten repeated use of long namespace names in cpp files. Use std::generator for initialisation of seeds instead of previous for loop Signed-off-by: Jon Bailey <[email protected]>
|
nice work! |
|
LGTM apart from some style comments. |
Will check through comments this morning and update code in places. Thanks for taking the time to review this. |
Removed dataGenerationSingleton. Changed stringstream to use of fmt::format Made enums into enum classes Signed-off-by: Jon Bailey <[email protected]>
Have addressed all comments now, either by resolving in code or with a reply to the comment |
|
ceph API tests check failed. Failed during build step installing dashboard nodeenv: Looking further down the logs, looks like connection was interrupted during download of node Will retrigger ceph API tests as looks to have been a network glitch during building from my inspection here. |
|
jenkins test api |
|
make check (arm64) check failed. Failure reason looks similar to the last test Same step was above and in progress: Failure reason looks to be the same, with extra text in the middle due to presumably another thread starting a different build step while the previous one was working towards the failure
I believe this is the same network glitch on the build system and will retrigger the make check (arm64) test |
|
jenkins test make check arm64 |
|
Looks like API tests failed due to a timeout again... Dashboard (or any code relating to Ceph itself) has not been modified in this PR (All code is new and creating a new application), so I believe these changes are not the cause of this issue. |
|
jenkins test api |
|
jenkins test make check arm64 |
1 similar comment
|
jenkins test make check arm64 |
|
|
|
jenkins test make check arm64 |
|
|
||
| bool RadosIo::readyForIoOp(IoOp &op) | ||
| { | ||
| ceph_assert(lock.is_locked_by_me()); //Must be called with lock held |
There was a problem hiding this comment.
Line fails build complaining about missing function is_locked_by_me().
Build fails when doing a DEBUG build
There was a problem hiding this comment.
I have a PR open to fix this here: #60211, as this code has now unfortunately merged with this line in.
However I noticed the opposite when opening the PR - that the build fails when doing a RELEASE/RelWithDebInfo build and succeeds when doing a DEBUG build. Can I confirm the build type you are doing please? If it is debug, are you able to provide any more information?
There was a problem hiding this comment.
I was doing DEBUG build (which activates the assert code) and failed with a complain about non-existing member function is_locked_by_me() for BOOST::lock.
I comment out the assert line in my code and now it builds fine
src/test/osd: Create ceph_test_rados_io_sequence tool
Application creates IO sequences using seeded random numbers. IO sequences are varied in IO offset, length, IO order and data patterns to try stress erasure coding specifically and detect defects earlier in the development cycle.
We feel the creation of this as a new tool is benificial for several reasons:
The test tool is located in src/test/osd, as the new tool is used explicitly for testing the erasure coding implementation of OSDs. A lot of the logic for generating IO Sequences has been stored in a new location, io_exerciser, located in src/common. The thinking behind storing the code here is we feel it is useful to share between other applications. It is abstracted to a level it shouldn't be necissairy to have to be only used with only the new ceph_test_rados_io_sequence application and we would like to be able to integrate with other tools such as ceph_test_rados or possibly rados bench as well in future PRs to enhance testing done with those tools.
Signed-off-by: Jon Bailey [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