Skip to content

squid: client: check mds down status before getting mds_gid_t from mdsmap #58480

Closed
YiteGu wants to merge 2 commits intoceph:squidfrom
YiteGu:backport-squid
Closed

squid: client: check mds down status before getting mds_gid_t from mdsmap #58480
YiteGu wants to merge 2 commits intoceph:squidfrom
YiteGu:backport-squid

Conversation

@YiteGu
Copy link
Member

@YiteGu YiteGu commented Jul 9, 2024

backport tracker: https://tracker.ceph.com/issues/64606

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
  • 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
  • jenkins test rook e2e

dparmar18 and others added 2 commits July 9, 2024 19:04
…fails

Fixes: https://tracker.ceph.com/issues/64089
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
(cherry picked from commit 564dba3)
(cherry picked from commit e99486e)
Get mds_gid_t from up of MDSMap, will cause to core dump if target
mds_rank_t does not exist up map:

from: src/mds/MDSMap.h
  const auto& get_info(mds_rank_t m) const {
    return mds_info.at(up.at(m));
  }

reproduct:
1. ceph fs fail <fs_name>
2. curl -X GET "example.com:8080/api/cephfs/1/clients" ...
up.at(m) will cause to core dump.

Fixes: https://tracker.ceph.com/issues/61844
Signed-off-by: Yite Gu <yitegu0@gmail.com>
(cherry picked from commit 878463e)
@YiteGu YiteGu requested a review from a team as a code owner July 9, 2024 11:07
@YiteGu YiteGu requested review from Pegonzal and aaSharma14 and removed request for a team July 9, 2024 11:07
@github-actions github-actions bot added this to the squid milestone Jul 9, 2024
@dparmar18 dparmar18 requested a review from a team July 11, 2024 08:23
Copy link
Member

@joscollin joscollin left a comment

Choose a reason for hiding this comment

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

There are no backport trackers for this. Can't do QA for this PR. Please fix it.

@YiteGu
Copy link
Member Author

YiteGu commented Jul 11, 2024

There are no backport trackers for this. Can't do QA for this PR. Please fix it.

This PR had tracker(https://tracker.ceph.com/issues/64606), How to let QA know it?

@joscollin
Copy link
Member

There are no backport trackers for this. Can't do QA for this PR. Please fix it.

This PR had tracker(https://tracker.ceph.com/issues/64606), How to let QA know it?

You need to update the trackers appropriately. Look at other PRs how it's done.
I think this PR needs a dashboard QA rather than fs suite.

@nizamial09 nizamial09 changed the title squid: client: check mds down status before getting mds_gid_t from mdsmap squid: client: check mds down status before getting mds_gid_t from mdsmap Jul 12, 2024
@nizamial09
Copy link
Member

jenkins test dashboard

@nizamial09
Copy link
Member

jenkins test dashboard cephadm

@nizamial09
Copy link
Member

I think this PR needs a dashboard QA rather than fs suite.

we rely mostly on the jenkins dashboard e2es for approving the PR. If that passes then I don't have any issues with merging this one.

Btw @YiteGu you'll need to update the descriptions with proper trackers. You can check these examples on how it look like. There's also a guide that describes the process which says about a ceph-backport.sh script that kind of automates everything for you.

@YiteGu
Copy link
Member Author

YiteGu commented Jul 15, 2024

I think this PR needs a dashboard QA rather than fs suite.

we rely mostly on the jenkins dashboard e2es for approving the PR. If that passes then I don't have any issues with merging this one.

Btw @YiteGu you'll need to update the descriptions with proper trackers. You can check these examples on how it look like. There's also a guide that describes the process which says about a ceph-backport.sh script that kind of automates everything for you.

created new backport PR by ceph-backport.sh, close this.

@YiteGu YiteGu closed this Jul 15, 2024
@YiteGu YiteGu deleted the backport-squid branch July 16, 2024 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants