Skip to content

common/io_exerciser: ceph_test_rados_io_sequence plugin/profile support - #61404

Merged
SrinivasaBharath merged 5 commits into
ceph:mainfrom
JonBailey1993:JonBailey1993/ceph_test_rados_io_sequence_plugin_support
Mar 7, 2025
Merged

SrinivasaBharath merged 5 commits into
ceph:mainfrom
JonBailey1993:JonBailey1993/ceph_test_rados_io_sequence_plugin_support

Conversation

@JonBailey1993

Copy link
Copy Markdown
Contributor

common/io_exerciser: Support for using different EC plugins with various different profile values in the ceph_test_rados_io_sequence exerciser.

Plugins and various profile values can be specified on the command line, or left to be generated automatically by the IO Exerciser. Alternatively, an existing profile name can be supplied on the command line rather than having the exerciser create one.

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 x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

@JonBailey1993

Copy link
Copy Markdown
Contributor Author

run-rbd-unit-tests-61.sh failed in make check.

Looking at Jenkins log for that specific test, it complains about undefined symbols in libcls_cas.so

Failed to load class: cas (/home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_cas.so): /home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_cas.so: undefined symbol: _Z26cls_get_manifest_ref_countPvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE Failed to load class: cmpomap (/home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_cmpomap.so): /home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_cmpomap.so: undefined symbol: _Z28cls_cxx_map_get_vals_by_keysPvRKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS6_ESaIS6_EEPSt3mapIS6_N4ceph6buffer7v15_2_04listES8_SaISt4pairIKS6_SH_EEE Failed to load class: fifo (/home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_fifo.so): /home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_fifo.so: undefined symbol: _Z20cls_gen_random_bytesPci Failed to load class: log (/home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_log.so): /home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_log.so: undefined symbol: _Z24cls_cxx_map_write_headerPvPN4ceph6buffer7v15_2_04listE Failed to load class: rgw (/home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_rgw.so): /home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_rgw.so: undefined symbol: _Z19cls_get_object_infoPv Failed to load class: user (/home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_user.so): /home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libcls_user.so: undefined symbol: _Z24cls_cxx_map_write_headerPvPN4ceph6buffer7v15_2_04listE

This library has not been changed by this PR. Rerunning test.

@JonBailey1993

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@JonBailey1993
JonBailey1993 force-pushed the JonBailey1993/ceph_test_rados_io_sequence_plugin_support branch 2 times, most recently from d9f4ae2 to 2d331e2 Compare January 20, 2025 10:20
@ronen-fr

Copy link
Copy Markdown
Contributor

we do prefer '_' names for variables over camel-casing...

@JonBailey1993

Copy link
Copy Markdown
Contributor Author

we do prefer '_' names for variables over camel-casing...

I am happy to modify this to snake_case

@JonBailey1993
JonBailey1993 force-pushed the JonBailey1993/ceph_test_rados_io_sequence_plugin_support branch 2 times, most recently from 7909ef6 to 2e11f5b Compare January 31, 2025 11:49
@JonBailey1993

Copy link
Copy Markdown
Contributor Author

we do prefer '_' names for variables over camel-casing...

@ronen-fr I have pushed a new commit, variable names should now all be in snake_case now

@JonBailey1993

Copy link
Copy Markdown
Contributor Author

ceph API tests:
Hit infrastructure issues during test
vagrant huge installed-os-jammy xenial amd64) in workspace /home/jenkins-build/build/workspace/ceph-api Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from 8.43.84.3/8.43.84.3:5620
will retrigger

ceph windows tests:
Also Hit infrastructure issues during test
vagrant huge installed-os-jammy xenial amd64) in workspace /home/jenkins-build/build/workspace/ceph-windows-pull-requests Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from 8.43.84.3/8.43.84.3:5620
will retrigger

@JonBailey1993

Copy link
Copy Markdown
Contributor Author

jenkins test api

@JonBailey1993

Copy link
Copy Markdown
Contributor Author

jenkins test windows

@JonBailey1993
JonBailey1993 force-pushed the JonBailey1993/ceph_test_rados_io_sequence_plugin_support branch from 2e11f5b to 756b4bc Compare February 3, 2025 09:58
@JonBailey1993

Copy link
Copy Markdown
Contributor Author

Windows tests failed due to known issue mentioned in ceph slack: https://ceph-storage.slack.com/archives/C1HFJ4VTN/p1738587992015649

Will rebase to fix

@JonBailey1993
JonBailey1993 force-pushed the JonBailey1993/ceph_test_rados_io_sequence_plugin_support branch from 756b4bc to 6dc16e7 Compare February 4, 2025 16:44

@bill-scales bill-scales left a comment

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.

Changes look good, just some typos and unnecessary whitespace

Comment thread src/common/io_exerciser/EcIoSequence.cc Resolved

@bill-scales bill-scales left a comment

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.

Happy with the changes now

@bill-scales

Copy link
Copy Markdown
Contributor

jenkins test windows

@rzarzynski rzarzynski left a comment

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.

Review-in-progress.

Comment thread src/erasure-code/ErasureCodeInterface.h Resolved
Comment thread src/erasure-code/ErasureCodeInterface.h Resolved
Comment thread src/test/osd/CMakeLists.txt Resolved
@JonBailey1993
JonBailey1993 force-pushed the JonBailey1993/ceph_test_rados_io_sequence_plugin_support branch from be21e30 to 5957f1e Compare February 25, 2025 16:43
@JonBailey1993

Copy link
Copy Markdown
Contributor Author

@rzarzynski Comments should now have all been addressed

@rzarzynski rzarzynski left a comment

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.

LGTM. just nits.

Comment thread src/erasure-code/ErasureCodeInterface.h Resolved
@JonBailey1993
JonBailey1993 force-pushed the JonBailey1993/ceph_test_rados_io_sequence_plugin_support branch 2 times, most recently from 0c438c0 to ad38bd5 Compare February 27, 2025 11:26
@JonBailey1993

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@github-actions

github-actions Bot commented Mar 5, 2025

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

jamiepryde and others added 5 commits March 5, 2025 16:15
Add get_minimum_granularity() function to the EC plugin interface,
which returns the minimum size in bytes that can be used for partial writes.
This is based on the minimum size of coding chunk update
that the particular technique supports.

Signed-off-by: Jamie Pryde <[email protected]>
Signed-off-by: Jon Bailey <[email protected]>
Move files for setting up the cpeh_test_rados_io_sequence to their own subfolder of test/osd so they can be grouped together as more files are added in the future.

Signed-off-by: Jon Bailey <[email protected]>
…e class

Split the program option readers out into a seperate class from the main logic controlling the operationg of ceph_test_rados_io_sequence

Signed-off-by: Jon Bailey <[email protected]>
Added new command line options for specifying plugins along with optional readers for them. Added arguments to JSON structures for some optional arguments to encode and decode more information about profiles. Added more choices for random selections of different plugin values and changed structure so profiles are created as part of a pool specifically, encapsulating them.

    Signed-off-by: Jon Bailey <[email protected]>
…os_io_support

Modified variables used in ceph_test_rados_io_sequence to use snake_case instead of camelCase to be consistent with prior work.

Signed-off-by: Jon Bailey <[email protected]>
@JonBailey1993
JonBailey1993 force-pushed the JonBailey1993/ceph_test_rados_io_sequence_plugin_support branch from ad38bd5 to fd18489 Compare March 5, 2025 17:12
@JonBailey1993

Copy link
Copy Markdown
Contributor Author

Rebased on latest main to fix merge conflicts. No changes.

@JonBailey1993

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@Naveenaidu

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants