Adding an option for a pre-workload script that is run before the IO exerciser#329
Merged
harriscr merged 1 commit intoceph:masterfrom Mar 4, 2025
Merged
Adding an option for a pre-workload script that is run before the IO exerciser#329harriscr merged 1 commit intoceph:masterfrom
harriscr merged 1 commit intoceph:masterfrom
Conversation
Signed-off-by: Chris Harris(harriscr@uk.ibm.com)
lee-j-sanders
approved these changes
Feb 25, 2025
Member
lee-j-sanders
left a comment
There was a problem hiding this comment.
I've been using this feature for a few days now, and it works very well.
Looks good to me. Approved.
Merged
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds the "pre_workload_script" to a workload specified in the configuration yaml file. It is specific to the workload, and has no effect outside of the workloads section of the yaml file.
For more information see the workloads documentation in CBT.
It is the user responsibility to make sure that the script is available at the same path for all clients used in the test run.
The script must exit with a return code that matches the OS schema i.e. for Linux return code 0 is good, and anything else is considered bad.
The script is run on every client using the standard common.pdsh() method in CBT.
This has been tested locally with a script that deletes and recreates volumes for a workload to run on before the fio IO is run. See the below output snippet gtom the cbt log file that shows the script being scheduled and run:
I will update teuthology runs here once they have completed