Skip to content
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

client: always refresh mds feature bits on session open #54030

Merged
merged 1 commit into from Oct 23, 2023

Conversation

vshankar
Copy link
Contributor

@vshankar vshankar commented Oct 16, 2023

Fixes: http://tracker.ceph.com/issues/63188

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 Oct 16, 2023
@vshankar vshankar requested a review from a team October 16, 2023 05:29
Copy link
Contributor

@mchangir mchangir left a comment

Choose a reason for hiding this comment

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

could you rephrase commit title to:
client: always refresh mds feature bits on session open

@vshankar vshankar changed the title client: refresh mds feature bits always on session open client: always refresh mds feature bits on session open Oct 16, 2023
@vshankar
Copy link
Contributor Author

could you rephrase commit title to: client: always refresh mds feature bits on session open

done.

@vshankar vshankar requested a review from a team October 16, 2023 07:09
@dparmar18
Copy link
Contributor

in a cluster with multiple active MDSs, is it possible that different MDSs are on different versions?

@vshankar
Copy link
Contributor Author

in a cluster with multiple active MDSs, is it possible that different MDSs are on different versions?

If you mean different ceph versions, then yes.

@dparmar18
Copy link
Contributor

in a cluster with multiple active MDSs, is it possible that different MDSs are on different versions?

If you mean different ceph versions, then yes.

and the client must be maintaining some table (or some sort of data structure) to keep records of the MDSs and their feature bits right? So that client doesn't get baffled with what and how to communicate with mds.a, mds.b and mds.c if all three are on different ceph versions with possibly different set of feature bits to offer.

@vshankar
Copy link
Contributor Author

in a cluster with multiple active MDSs, is it possible that different MDSs are on different versions?

If you mean different ceph versions, then yes.

and the client must be maintaining some table (or some sort of data structure) to keep records of the MDSs and their feature bits right? So that client doesn't get baffled with what and how to communicate with mds.a, mds.b and mds.c if all three are on different ceph versions with possibly different set of feature bits to offer.

yes - those are maintained per (mds) session.

@dparmar18
Copy link
Contributor

Can we test this out apart from the upgrade tests? Maybe add a dummy feature bit to the MDS and expect client to not crash?

@vshankar
Copy link
Contributor Author

Can we test this out apart from the upgrade tests? Maybe add a dummy feature bit to the MDS and expect client to not crash?

This yaml

fs/upgrade/featureful_client/old_client/{bluestore-bitmap centos_latest clusters/1-mds-2-client-micro conf/{client mds mon osd} overrides/{ignorelist_health ignorelist_wrongly_marked_down multimds/no pg-warn} tasks/{0-octopus 1-client 2-upgrade 3-compat_client/pacific}}

always reproduces this, so I think we can depend on that.

src/client/Client.cc Show resolved Hide resolved
@vshankar
Copy link
Contributor Author

@batrick @dparmar18 fixed and updated. please check.

Copy link
Contributor

@mchangir mchangir left a comment

Choose a reason for hiding this comment

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

LGTM

@vshankar
Copy link
Contributor Author

jenkins test make check

@dparmar18
Copy link
Contributor

@vshankar
Copy link
Contributor Author

https://pulpito.ceph.com/vshankar-2023-10-18_10:34:52-fs-wip-vshankar-testing-20231018.065603-testing-default-smithi/

i hope this includes #53734 which found out this issue

The issue was already seen in #50730 but I got to it rather late esp. when I looked at the core in your run, I figured that its the same issue.

@vshankar
Copy link
Contributor Author

@vshankar
Copy link
Contributor Author

rebase and updated for jenkins tests...

@vshankar
Copy link
Contributor Author

jenkins test api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cephfs Ceph File System
Projects
None yet
5 participants