Skip to content

qa/suites: run cephfs-mirror in foreground under valgrind - #70716

Merged
kotreshhr merged 1 commit into
ceph:mainfrom
karthik-us1:fix_valgrind_daemon_restart
Sep 23, 2026
Merged

kotreshhr merged 1 commit into
ceph:mainfrom
karthik-us1:fix_valgrind_daemon_restart

Conversation

@karthik-us1

Copy link
Copy Markdown
Contributor

Without --foreground, cephfs-mirror daemonizes (Prefork). Teuthology's valgrind wrapper uses --trace-children=no, so memcheck only follows the short-lived parent and never instruments the real worker. After restart_mirror_daemon() → daemon.start(), the new worker can exit while asok still returns Connection refused, and archived valgrind XML is from the parent rather than the mirror process under test.

Set run_in_foreground: True so cephfs-mirror stays one process under memcheck across start/restart.

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

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.

Without --foreground, cephfs-mirror daemonizes (Prefork). Teuthology's
valgrind wrapper uses --trace-children=no, so memcheck only follows the
short-lived parent and never instruments the real worker. After
restart_mirror_daemon() → daemon.start(), the new worker can exit while
asok still returns Connection refused, and archived valgrind XML is from
the parent rather than the mirror process under test.

Set run_in_foreground: True so cephfs-mirror stays one process under
memcheck across start/restart.

Fixes: https://tracker.ceph.com/issues/77622
Signed-off-by: Karthik U S <[email protected]>
@github-actions github-actions Bot added cephfs Ceph File System tests labels Jul 30, 2026
@karthik-us1
karthik-us1 requested a review from kotreshhr July 30, 2026 14:56
@karthik-us1

Copy link
Copy Markdown
Contributor Author

The test runs with foreground cephfs-mirror passed in all valgrind test runs here:

[ Note: only the failing test case was run in all these test runs with the foreground flag and some extra JSON type checks and debug logs. Since the JSON parsing did not raise any exceptions, omitted that in the PR.]

@kotreshhr

Copy link
Copy Markdown
Contributor

The test runs with foreground cephfs-mirror passed in all valgrind test runs here:

[ Note: only the failing test case was run in all these test runs with the foreground flag and some extra JSON type checks and debug logs. Since the JSON parsing did not raise any exceptions, omitted that in the PR.]

@karthik-us1 Could you please schedule a full run with this? Though this needs to be taken in for valgrind to exercise mirror daemon, the valgrind tests were failing because of mirror daemon crash (but not sure why the crash wasn't being logged?) that's fixed here #70752 With this fix, I see the valgrind tests are passing https://pulpito-ng.ceph.com/runs/khiremat-2026-08-01_04:13:42-fs-wip-khiremat-70752-mirror-crash-01072026-distro-default-trial

cc: @vshankar

@kotreshhr kotreshhr self-assigned this Aug 1, 2026
@karthik-us1

Copy link
Copy Markdown
Contributor Author

@kotreshhr

Copy link
Copy Markdown
Contributor

This PR has been added to main integration testing by khiremat started 2026-09-09-16:42.

@kotreshhr

Copy link
Copy Markdown
Contributor

@kotreshhr
kotreshhr merged commit 3780535 into ceph:main Sep 23, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cephfs Ceph File System tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants