-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mds: prevent scrubbing for standby-replay MDS #53301
base: main
Are you sure you want to change the base?
Conversation
631bb8b
to
c181dd8
Compare
c181dd8
to
8982199
Compare
@neesingh-rh please ping when this ready for review again. |
I have updated the PR, ready for re-review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* refs/pull/53301/head: mds: prevent scrub start for standby-replay MDS Reviewed-by: Venky Shankar <vshankar@redhat.com>
There was a problem hiding this comment.
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.
Added the test. PTAL |
807985f
to
5f504d4
Compare
# start the scrub and verify | ||
with self.assertRaises(CommandFailedError) as ce: | ||
self.fs.run_scrub(["start", abs_test_path, "recursive"]) | ||
self.assertEqual(ce.exception.exitstatus, errno.EINVAL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.assertEqual(ce.exception.exitstatus, errno.EINVAL) | |
self.assertEqual(ce.exception.exitstatus, errno.EINVAL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and others below
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
qa/tasks/cephfs/test_scrub_checks.py
Outdated
|
||
# start the scrub and verify | ||
with self.assertRaises(CommandFailedError) as ce: | ||
self.fs.run_scrub(["start", abs_test_path, "recursive"]) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
@neesingh-rh ping? |
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. |
In progress!! |
3d6217a
to
28458ef
Compare
a3b7a18
to
af6be74
Compare
@vshankar Here's the run link with the latest changes: https://pulpito.ceph.com/neesingh-2024-04-25_09:36:50-fs:functional-wip-neesingh-testing-240416-distro-default-smithi/ |
jenkins test make check |
@vshankar ping? |
jenkins retest this please |
In my queue for reviews. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR is under test in https://tracker.ceph.com/issues/66327. |
jenkins test make check |
This PR is under test in https://tracker.ceph.com/issues/66522. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jenkins test make check |
2 similar comments
jenkins test make check |
jenkins test make check |
@neesingh-rh could you rebase please? Jenkins tests aren't passing - maybe a rebase would kick it up. |
Fixes: https://tracker.ceph.com/issues/62537 Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
Fixes: https://tracker.ceph.com/issues/62537 Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
Fixes: https://tracker.ceph.com/issues/62537
Signed-off-by: Neeraj Pratap Singh neesingh@redhat.com
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. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
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