Skip to content

mon/MDSMonitor: return zero when mds is absent for "mds fail" - #37159

Merged
batrick merged 1 commit into
ceph:masterfrom
rishabh-d-dave:fix-t-47447
Sep 16, 2020
Merged

batrick merged 1 commit into
ceph:masterfrom
rishabh-d-dave:fix-t-47447

Conversation

@rishabh-d-dave

@rishabh-d-dave rishabh-d-dave commented Sep 15, 2020 •

Copy link
Copy Markdown
Contributor

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

Related PR: #32581.

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

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 api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

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

Why is this a new failure due to #32581? The commit should have an explanation.

@rishabh-d-dave

Copy link
Copy Markdown
Contributor Author

@batrick @neha-ojha
Tests with teuthology were successful - https://pulpito.ceph.com/rishabh-2020-09-15_16:27:25-rados-wip-rishabh-fix-t-47447-distro-basic-smithi/

2020-09-15T16:45:55.044 INFO:teuthology.orchestra.run.smithi187.stderr:2020-09-15T16:45:55.038+0000 7fbe78920700  1 -- 172.21.15.187:0/1699250608 shutdown_connections
2020-09-15T16:45:55.044 INFO:teuthology.orchestra.run.smithi187.stderr:2020-09-15T16:45:55.038+0000 7fbe78920700  1 -- 172.21.15.187:0/1699250608 wait complete.
2020-09-15T16:45:55.055 INFO:tasks.cephfs_test_runner:test_osd_cannot_recover (tasks.mgr.test_progress.TestProgress) ... ok
2020-09-15T16:45:55.056 INFO:tasks.cephfs_test_runner:Starting test: test_osd_healthy_recovery (tasks.mgr.test_progress.TestProgress)
2020-09-15T16:45:55.057 INFO:teuthology.orchestra.run.smithi187:> sudo adjust-ulimits ceph-coverage /home/ubuntu/cephtest/archive/coverage timeout 120 ceph --cluster ceph --log-early log 'Starting test tasks.mgr.test_progress.TestProgress.test_osd_healthy_recovery'

@rishabh-d-dave

Copy link
Copy Markdown
Contributor Author

jenkins test api

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

LGTM with #37159 (review) addressed

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

As discussed in IRC, you changed the return value of ceph mds fail when the gid does not exist:

ceph/src/mon/MDSMonitor.cc

Lines 1457 to 1460 in ebdb8e5

mds_gid_t gid = gid_from_arg(fsmap, who, ss);
if (gid == MDS_GID_NONE) {
return -EINVAL;
}

That's the reason why it now breaks this test. The test code you're changing should remain the same.

@rishabh-d-dave rishabh-d-dave changed the title qa/mgr: don't run "mds fail" before calling delete_all_filesystems() src/mon: return zero when mds is absent for "mds fail" Sep 15, 2020
@rishabh-d-dave

Copy link
Copy Markdown
Contributor Author

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

@rishabh-d-dave could you replace "src/mon" with "mon/MDSMonitor" in the title of the commit message?

... instead of EINVAL.

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

Copy link
Copy Markdown
Contributor Author

@rishabh-d-dave could you replace "src/mon" with "mon/MDSMonitor" in the title of the commit message?

Replaced.

@tchaikov tchaikov changed the title src/mon: return zero when mds is absent for "mds fail" mon/MDSMonitor: return zero when mds is absent for "mds fail" Sep 16, 2020
@tchaikov
tchaikov dismissed their stale review September 16, 2020 13:17

dismissed

@batrick

batrick commented Sep 16, 2020

Copy link
Copy Markdown
Member

jenkins test make check

@rishabh-d-dave

Copy link
Copy Markdown
Contributor Author

@batrick make check passed.

@batrick
batrick merged commit 08c9cb8 into ceph:master Sep 16, 2020
rishabh-d-dave added a commit to rishabh-d-dave/ceph that referenced this pull request Sep 18, 2020
mds_cluster.mds_fail() runs command "mds fail" not "fs fail". The reason
for failure was PR ceph#32581 which accidentally changed the return code
from 0 to EINVAL. Since this was reversed in PR ceph#37159, the change
introduced by 04ed58f is not only incorrect but also redundant.

Signed-off-by: Rishabh Dave <[email protected]>
@rishabh-d-dave
rishabh-d-dave deleted the fix-t-47447 branch September 23, 2020 02:26
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.

5 participants