Skip to content

mds: prevent scrubbing for standby-replay MDS - #53301

Merged
vshankar merged 2 commits into
ceph:mainfrom
neesingh-rh:wip-62537
Jul 9, 2024
Merged

vshankar merged 2 commits into
ceph:mainfrom
neesingh-rh:wip-62537

Conversation

@neesingh-rh

@neesingh-rh neesingh-rh commented Sep 6, 2023 •

Copy link
Copy Markdown
Contributor

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

Signed-off-by: Neeraj Pratap Singh [email protected]

Contribution Guidelines

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

@github-actions github-actions Bot added the cephfs Ceph File System label Sep 6, 2023
Comment thread src/mds/MDSRank.cc Resolved
@neesingh-rh
neesingh-rh force-pushed the wip-62537 branch 2 times, most recently from 631bb8b to c181dd8 Compare September 13, 2023 09:46
@vshankar

Copy link
Copy Markdown
Contributor

Comment thread src/mds/MDSRank.cc Resolved
Comment thread src/mds/MDSRank.cc Resolved
@vshankar

vshankar commented Oct 4, 2023

Copy link
Copy Markdown
Contributor

@neesingh-rh please ping when this ready for review again.

@neesingh-rh

Copy link
Copy Markdown
Contributor Author

@neesingh-rh please ping when this ready for review again.

I have updated the PR, ready for re-review.

@mchangir mchangir 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

vshankar added a commit to vshankar/ceph that referenced this pull request Oct 7, 2023
* refs/pull/53301/head:
	mds: prevent scrub start for standby-replay MDS

Reviewed-by: Venky Shankar <[email protected]>

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

@neesingh-rh LGTM -- please add a test.

@github-actions github-actions Bot added the tests label Oct 10, 2023
@neesingh-rh

Copy link
Copy Markdown
Contributor Author

@neesingh-rh LGTM -- please add a test.

Added the test. PTAL

Comment thread src/mds/MDSRank.cc Resolved
Comment thread qa/tasks/cephfs/test_scrub_checks.py Resolved
Comment thread qa/tasks/cephfs/test_scrub_checks.py Resolved
Comment thread qa/tasks/cephfs/test_scrub_checks.py Outdated

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.

Suggested change
self.assertEqual(ce.exception.exitstatus, errno.EINVAL)
self.assertEqual(ce.exception.exitstatus, errno.EINVAL)

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.

and others below

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We should be checking for the error status only after getting the command fail exit status. I guess it should be this way only. https://github.com/ceph/ceph/blob/quincy/qa/tasks/cephfs/test_scrub_checks.py#L354

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.

ce would be available inside with .., isn't it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

with.. is an alternative for try-catch, how can the statement be executed after the exception is encountered at the run_scrub only. Pls correct me if you mean something else.

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.

I guess this is fine too

Comment thread qa/tasks/cephfs/test_scrub_checks.py Outdated

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.

I'm puzzled. Is this test not racing with the MDS becoming active?

I also expected to see a scrub command directed at the standby-replay daemon.

@vshankar vshankar Apr 2, 2024 •

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.

Spoke to @neesingh-rh - this needs fixing. Fetch the s-r mds daemons id and do a ceph tell mds.<> scrub start to the s-r daemon.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated the PR with the proposed changes.

@vshankar

Copy link
Copy Markdown
Contributor

@neesingh-rh ping?

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@vshankar

vshankar commented Jul 3, 2024

Copy link
Copy Markdown
Contributor

jenkins test make check

@vshankar

vshankar commented Jul 4, 2024

Copy link
Copy Markdown
Contributor

@neesingh-rh please relook the make check failure.

@vshankar

vshankar commented Jul 5, 2024

Copy link
Copy Markdown
Contributor

@neesingh-rh I see you added a change to fix a failing dashboard test and then removed it??

@neesingh-rh

Copy link
Copy Markdown
Contributor Author

@neesingh-rh I see you added a change to fix a failing dashboard test and then removed it??

Nope, I pushed a commit by mistake that wasn't part of this PR. I added it locally just for testing.

@neesingh-rh

Copy link
Copy Markdown
Contributor Author

vstart_runner results:

2024-07-04 11:42:00,758.758 INFO:__main__:Stopped test: test_scrub_when_mds_is_inactive (tasks.cephfs.test_scrub_checks.TestScrubControls.test_scrub_when_mds_is_inactive) in 63.529271s
2024-07-04 11:42:00,758.758 INFO:__main__:test_scrub_when_mds_is_inactive (tasks.cephfs.test_scrub_checks.TestScrubControls.test_scrub_when_mds_is_inactive) ... ok
2024-07-04 11:42:00,758.758 INFO:__main__:
2024-07-04 11:42:00,758.758 INFO:__main__:----------------------------------------------------------------------
2024-07-04 11:42:00,758.758 INFO:__main__:Ran 1 test in 63.530s
2024-07-04 11:42:00,758.758 INFO:__main__:
2024-07-04 11:42:00,758.758 INFO:__main__:OK
2024-07-04 11:42:00,758.758 INFO:__main__:

@vshankar

vshankar commented Jul 8, 2024

Copy link
Copy Markdown
Contributor

jenkins test dashboard

@vshankar

vshankar commented Jul 8, 2024

Copy link
Copy Markdown
Contributor

jenkins test docs

@vshankar

vshankar commented Jul 9, 2024

Copy link
Copy Markdown
Contributor

jenkins test make check

@vshankar
vshankar dismissed batrick’s stale review July 9, 2024 05:39

Comments addressed and approved.

@vshankar
vshankar merged commit 69704e9 into ceph:main Jul 9, 2024
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

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants