Skip to content

msg/mds: print more debug logs from protocol layer#57857

Merged
batrick merged 2 commits intoceph:mainfrom
lxbsz:wip-65309-1
Jul 23, 2024
Merged

msg/mds: print more debug logs from protocol layer#57857
batrick merged 2 commits intoceph:mainfrom
lxbsz:wip-65309-1

Conversation

@lxbsz
Copy link
Member

@lxbsz lxbsz commented Jun 4, 2024

The bug is for many time the MDS sent out the beacon msg to monitors,
and from the mds and msgr logs we can see that the beacon msg was
really sent out, more exactly is the msg had been enqueued to the protocol
sender queue. But we don't know whether this msg had been sent out or
stuck in the route, and the monitors received it after minutes.

We need to know whether it's a bug in protocol code and need more debug
logs from it.

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

@lxbsz lxbsz requested review from a team, batrick, gregsfortytwo and vshankar June 4, 2024 01:46
@lxbsz lxbsz requested a review from a team as a code owner June 4, 2024 01:46
@github-actions github-actions bot added cephfs Ceph File System core tests labels Jun 4, 2024
Copy link
Member

@batrick batrick left a comment

Choose a reason for hiding this comment

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

mon.yaml too?

Why mgr.yaml?

Please change URL: in commit message to Related: or similar.

mgr:
debug mgr: 20
debug ms: 1
debug ms: 2
Copy link
Member

Choose a reason for hiding this comment

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

If we are changing qa/cephfs/conf then why do we need these changes?

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought the conf will be overrode by this ?

Copy link
Member

Choose a reason for hiding this comment

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

no, they are merged together

Copy link
Member Author

Choose a reason for hiding this comment

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

Okay.

@lxbsz
Copy link
Member Author

lxbsz commented Jun 5, 2024

mon.yaml too?

Why mgr.yaml?

Please change URL: in commit message to Related: or similar.

Actually this could happen in other components too in theory. For now let's do it in mds only and I will remove the change for mon and mgr.

lxbsz added 2 commits June 5, 2024 10:19
We have hitting the issue, which is the messages are stuck in the
sender queue, many times. We just suspect it's a bug of the protocol
code and we need to know exactly whether the msgs are sent out or
not.

Related: https://tracker.ceph.com/issues/65309
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Since we have hit this many times in cephfs tests, just increase
the debug_ms log level for now.

Related: https://tracker.ceph.com/issues/65309
Signed-off-by: Xiubo Li <xiubli@redhat.com>
@lxbsz lxbsz requested a review from batrick June 5, 2024 02:20
@batrick
Copy link
Member

batrick commented Jul 3, 2024

This PR is under test in https://tracker.ceph.com/issues/66822.

@batrick
Copy link
Member

batrick commented Jul 23, 2024

./7786768/remote/smithi193/log/8c7125b8-39d1-11ef-bcab-c7b262605968/ceph-mds.l.log.gz:2024-07-04T06:58:29.805+0000 7f4fe61f6640  2 --2- [v2:172.21.15.193:6832/3835154050,v1:172.21.15.193:6833/3835154050] >> [v2:172.21.15.193:3300/0,v1:172.21.15.193:6789/0] conn(0x561666f3b180 0x561667b1a000 secure :-1 s=READY pgs=52 cs=0 l=1 rev1=1 crypto rx=0x561662d639b0 tx=0x5616670b7140 comp rx=0 tx=0).write_message sending message m=0x561666e01800 seq=1 mon_getmap magic: 0
./7786768/remote/smithi193/log/8c7125b8-39d1-11ef-bcab-c7b262605968/ceph-mds.l.log.gz:2024-07-04T06:58:29.805+0000 7f4fe61f6640  2 --2- [v2:172.21.15.193:6832/3835154050,v1:172.21.15.193:6833/3835154050] >> [v2:172.21.15.193:3300/0,v1:172.21.15.193:6789/0] conn(0x561666f3b180 0x561667b1a000 secure :-1 s=READY pgs=52 cs=0 l=1 rev1=1 crypto rx=0x561662d639b0 tx=0x5616670b7140 comp rx=0 tx=0).write_message sending message m=0x561667b323c0 seq=2 mon_subscribe({config=0+,monmap=0+})
./7786768/remote/smithi193/log/8c7125b8-39d1-11ef-bcab-c7b262605968/ceph-mds.l.log.gz:2024-07-04T06:58:29.805+0000 7f4fe61f6640  2 --2- [v2:172.21.15.193:6832/3835154050,v1:172.21.15.193:6833/3835154050] >> [v2:172.21.15.193:3300/0,v1:172.21.15.193:6789/0] conn(0x561666f3b180 0x561667b1a000 secure :-1 s=READY pgs=52 cs=0 l=1 rev1=1 crypto rx=0x561662d639b0 tx=0x5616670b7140 comp rx=0 tx=0).write_message sending message m=0x561666deac40 seq=3 auth(proto 2 2 bytes epoch 0)
./7786768/remote/smithi193/log/8c7125b8-39d1-11ef-bcab-c7b262605968/ceph-mds.l.log.gz:2024-07-04T06:58:29.805+0000 7f4fe61f6640  2 --2- [v2:172.21.15.193:6832/3835154050,v1:172.21.15.193:6833/3835154050] >> [v2:172.21.15.193:3300/0,v1:172.21.15.193:6789/0] conn(0x561666f3b180 0x561667b1a000 secure :-1 s=READY pgs=52 cs=0 l=1 rev1=1 crypto rx=0x561662d639b0 tx=0x5616670b7140 comp rx=0 tx=0).write_message sending message m=0x561667b325a0 seq=4 mon_subscribe({mdsmap=0+})
./7786768/remote/smithi193/log/8c7125b8-39d1-11ef-bcab-c7b262605968/ceph-mds.l.log.gz:2024-07-04T06:58:29.806+0000 7f4fe61f6640  2 --2- [v2:172.21.15.193:6832/3835154050,v1:172.21.15.193:6833/3835154050] >> [v2:172.21.15.193:3300/0,v1:172.21.15.193:6789/0] conn(0x561666f3b180 0x561667b1a000 secure :-1 s=READY pgs=52 cs=0 l=1 rev1=1 crypto rx=0x561662d639b0 tx=0x5616670b7140 comp rx=0 tx=0).write_message sending message m=0x561666df2600 seq=5 mdsbeacon(24550/l up:boot seq=1 v0)
./7786768/remote/smithi193/log/8c7125b8-39d1-11ef-bcab-c7b262605968/ceph-mds.l.log.gz:2024-07-04T06:58:29.808+0000 7f4fe61f6640  2 --2- [v2:172.21.15.193:6832/3835154050,v1:172.21.15.193:6833/3835154050] >> [v2:172.21.15.193:3300/0,v1:172.21.15.193:6789/0] conn(0x561666f3b180 0x561667b1a000 secure :-1 s=READY pgs=52 cs=0 l=1 rev1=1 crypto rx=0x561662d639b0 tx=0x5616670b7140 comp rx=0 tx=0).write_message sending message m=0x561667b32d20 seq=6 mon_subscribe({mgrmap=0+})
...

works as advertised.

@batrick batrick merged commit f4083b7 into ceph:main Jul 23, 2024
Copy link
Contributor

@pereman2 pereman2 left a comment

Choose a reason for hiding this comment

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

NitzanMordhai pushed a commit to NitzanMordhai/ceph that referenced this pull request Aug 1, 2024
* refs/pull/57857/head:
	qa: set debug_ms=2 for cephfs tests
	msg: decrease the level to print the sending msgs from the protocol

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
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.

4 participants