Skip to content

qa/cephfs: increase number of files to cloned in test_clone_stats.py - #66558

Merged
vshankar merged 4 commits into
ceph:mainfrom
rishabh-d-dave:qa-clone-prog-bar
Jul 1, 2026
Merged

vshankar merged 4 commits into
ceph:mainfrom
rishabh-d-dave:qa-clone-prog-bar

Conversation

@rishabh-d-dave

Copy link
Copy Markdown
Contributor

There's a race condition between cloning operation and clone progress
reporter thread to open the subvolume, former does so to copy/clone
files and latter to get details of the source and destination subvolume.

A low number of files in the snapshot gives clone progress reporter
thread less or no chance to fetch and process the details needed to
display the progress bar. This causes tests to fails when progress bar
isn't displayed in the output of "ceph status" output.

Increasing the number of files will give clone progress reporter more
time to display the progress bar and therefore these unnecessary test
failures wlll reduce/stop.

This failure wasn't seen earlier because Python code was being used to
copy files which was comparatively slow (compared to C++ code that was
merged to copy files as a part of fscrypt work) which allowed enough
time to clone progress reporter thread to process stats and display
clone progress bar.

Fixes: https://tracker.ceph.com/issues/74082

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

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@rishabh-d-dave
rishabh-d-dave requested a review from a team December 8, 2025 17:36
@github-actions github-actions Bot added the pybind label Dec 8, 2025

@joscollin joscollin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rishabh-d-dave
Why reducing the file_size then?

@vshankar
vshankar requested a review from a team January 9, 2026 08:16
@vshankar

Copy link
Copy Markdown
Contributor

@rishabh-d-dave - would you mind checking @joscollin comment.

@vshankar

Copy link
Copy Markdown
Contributor

@rishabh-d-dave - would you mind checking @joscollin comment.

@rishabh-d-dave gentle nudge.

@rishabh-d-dave

Copy link
Copy Markdown
Contributor Author

@rishabh-d-dave Why reducing the file_size then?

@joscollin @vshankar Hey, I forgot to catch up to this and find out the cause behind this. Sorry about that. Thanks for the ping.

@joscollin We've increased file number to allow progress reporter thread more chances to get necessary info. But simply increasing number of files would dramatically increase size of data being cloned from 3 GB to 30 GB which is unnecessary. Therefore, I've reduced the file size.

@rishabh-d-dave

Copy link
Copy Markdown
Contributor Author

@rishabh-d-dave Why reducing the file_size then?

@joscollin @vshankar Hey, I forgot to catch up to this and find out the cause behind this. Sorry about that. Thanks for the ping.

@joscollin We've increased file number to allow progress reporter thread more chances to get necessary info. But simply increasing number of files would dramatically increase size of data being cloned from 3 GB to 30 GB which is unnecessary. Therefore, I've reduced the file size.

@joscollin ping

@joscollin

Copy link
Copy Markdown
Member

@rishabh-d-dave Why reducing the file_size then?

@joscollin @vshankar Hey, I forgot to catch up to this and find out the cause behind this. Sorry about that. Thanks for the ping.

@joscollin We've increased file number to allow progress reporter thread more chances to get necessary info. But simply increasing number of files would dramatically increase size of data being cloned from 3 GB to 30 GB which is unnecessary. Therefore, I've reduced the file size.

Got it.

@joscollin joscollin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes looks good to me.

@vshankar vshankar 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.

Otherwise LGTM.

Comment thread src/pybind/mgr/volumes/fs/stats_util.py Resolved
Comment thread src/pybind/mgr/volumes/fs/stats_util.py Resolved
There's a race condition between cloning operation and clone progress
reporter thread to open the subvolume, former does so to copy/clone
files and latter to get details of the source and destination subvolume.

A low number of files in the snapshot gives clone progress reporter
thread less or no chance to fetch and process the details needed to
display the progress bar. This causes tests to fails when progress bar
isn't displayed in the output of "ceph status" output.

Increasing the number of files will give clone progress reporter more
time to display the progress bar and therefore these unnecessary test
failures wlll reduce/stop.

This failure wasn't seen earlier because Python code was being used to
copy files which was comparatively slow (compared to C++ code that was
merged to copy files as a part of fscrypt work) which allowed enough
time to clone progress reporter thread to process stats and display
clone progress bar.

Fixes: https://tracker.ceph.com/issues/74082
Signed-off-by: Rishabh Dave <[email protected]>
Currently tests wait for 10 seconds for clone progress bar to appear and
it usually takes 8 seconds to find it. In case of the host where test is
being run is slow, the progress bar can take more time to appear and the
test can fail unnecessarily. To avoid this, increase the waiting
duration.

Signed-off-by: Rishabh Dave <[email protected]>
@rishabh-d-dave

Copy link
Copy Markdown
Contributor Author

@vshankar I've incorporated both the suggested changes.

@vshankar

Copy link
Copy Markdown
Contributor

This PR has been added to main integration testing by vshankar started 2026-06-16-11:08.

@vshankar vshankar 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.

@vshankar

Copy link
Copy Markdown
Contributor

jenkins test make check arm64

@vshankar
vshankar merged commit fc9f864 into ceph:main Jul 1, 2026
6 checks passed
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.

3 participants