Repository navigation
Erasure code online consistency checker - #62170
Conversation
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
b95561c to
7b22d6c
Compare
3caf689 to
3b26dcf
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
3b26dcf to
9095e38
Compare
9095e38 to
462afff
Compare
aainscow
left a comment
There was a problem hiding this comment.
Primary concern is the last of support for new EC. If you are planning on adding this later, then I think all of the interfaces into ECxxx need to go through ECSwitch, or you are going to have to invent your own form of switcher.
Other than that I have some concerns about the choice of data structures. Its not critical, but I think code could be tidier with some improvements,.
2f6e105 to
4cdf9a6
Compare
|
@aainscow I've implemented (almost) all of the suggested changes including support for new EC and LRC, would you be able to have another look please? I have not changed the approach of using string OIDs as Bill has suggested I should leave snapshot support as potential future work. |
4cdf9a6 to
52be9f8
Compare
Reviewer has LGTM'd latest changes
|
jenkins test signed |
|
jenkins test submodules |
|
jenkins test make check |
|
jenkins test make check arm64 |
|
jenkins test api |
|
jenkins test windows |
52be9f8 to
94895bc
Compare
|
Strange linker error showing on the API tests only, but not the make checks. ECEncoderSwitch.cc headers were slightly out of order (ECEncoderSwitch.h was not the first header), not sure that's why it's failed but I've fixed and re-pushed to see what happens |
94895bc to
c0f29c7
Compare
|
Retriggering for fresh logs to diagnose |
|
jenkins test api |
|
jenkins test make check arm64 |
There was a problem hiding this comment.
why did you need to go through the 'oss'?
There was a problem hiding this comment.
Admittedly I just followed the existing messaging examples. I assumed I needed to flush the formatted JSON out to the oss before passing it to mon_command. Is there another way?
…jects within an erasure coded pool. A new test-only inject tells the EC backend to return both data and parity shards to the client so that they can be checked for consistency by the new tool. Supports both optimized and unoptimized EC pools. Signed-off-by: Connor Fawcett <[email protected]>
c0f29c7 to
14a11de
Compare
|
@ronen-fr Thanks for taking the time to review! I think I have addressed everything in the latest push (aside from the oss/JSONFormatter comment which I could use more clarity on). ETA: Have merged, but can address further comments in future changes as we have more improvements for the consistency checker planned |
|
jenkins test make check arm64 |
| install(TARGETS | ||
| ceph_ec_consistency_checker | ||
| DESTINATION ${CMAKE_INSTALL_BINDIR}) |
There was a problem hiding this comment.
it looks like this broke the rpm builds on main https://shaman.ceph.com/builds/ceph/main/
error: Installed (but unpackaged) file(s) found:
/usr/bin/ceph_ec_consistency_checker
/usr/lib/debug/usr/bin/ceph_ec_consistency_checker-20.3.0-1388.gc706bacd.el9.x86_64.debug
if this is meant to be installed in ceph packages and containers, please add it to one of the packages in ceph.spec.in
This pull request introduces an online version of the consistency checking tool for erasure coded objects in ceph. The objective of the tool is to provide a means of live checking for cases where a parity update has not been properly applied to an EC object. It achieves this by reading back both the data and parity shards of an object that are stored on the OSDs, encoding the data shards and comparing these to the read-in parity shards.
A new inject called a parity read inject is defined in the OSD code. When armed, this new inject will modify the read result of the next read for the specified object so that the entire object is returned to the client, both data and parity chunks combined. A simple command line utility has been added, this takes the pool name, length, offset, oid, block size and stripe unit of a given object, it will then perform a parity read and compare on the object and return a pass or fail result on the command line. It is intended that this checker will be integrated into the IO exerciser as a next step.
This PR includes a first draft of the consistency checker, it is incomplete but I think it is far enough along to be reviewed before spending more time on it. The current implementation supports most good path cases where all shards are available on legacy EC pools. Future commits will provide support for the new EC, LRC, and other edge cases which aren't currently supported.
Integration with the IO exerciser has been implemented in #62985
Small example of the utility, first a failure as the config option is unset, meaning the parity data is not returned:
Then, with the config option set:
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 test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job Definition