mon, osd: set subsystem prefix for logging MonCap and OSDCap#50312
mon, osd: set subsystem prefix for logging MonCap and OSDCap#50312
Conversation
808a319 to
400a885
Compare
400a885 to
6e3f93a
Compare
5b4c908 to
90d32ae
Compare
|
jenkins test make check arm64 |
batrick
left a comment
There was a problem hiding this comment.
I support adding debugging facilities here, good initiative.
Am I correct that every caller of these caps is using g_ceph_context? I'd prefer to do away with this argument entirely and hard-code g_ceph_context wherever needed.
Yes.
Hardcode as in create data member in class/struct, right? I like this idea, I think its indeed better. @rzarzynski Any opinion? |
No. |
|
👍 for |
90d32ae to
bae1799
Compare
|
@batrick @rzarzynski Please take a look. |
|
jenkins test make check |
bae1799 to
411ad68
Compare
411ad68 to
4cf6b6f
Compare
@athanatos ping |
|
You are most likely missing a package in your build environment -- one of the ones related to address sanitizer most likely. You should also be using a recent version of gcc -- 12 if you can. |
|
This is marked as ready for testing (approved + "needs-qa"), but I'm seeing some comments that it might not be ready. Let me know if it's ready. |
|
MDS changes LGTM. |
5c33d66 to
e47f9a6
Compare
|
I am dropping the changes in |
e47f9a6 to
77e2ed6
Compare
77e2ed6 to
d43b2e7
Compare
With this patch following is how log entries from MonCap.cc look -
2023-04-10T22:15:25.746+0530 7fa5debf46c0 20 MonCap is_capable service=mon command= read addr v2:192.168.29.90:40719/0 on cap allow *
2023-04-10T22:15:25.746+0530 7fa5debf46c0 20 MonCap allow so far , doing grant allow *
2023-04-10T22:15:25.746+0530 7fa5debf46c0 20 MonCap allow all
And this is how same log entries from MonCap.cc look without this patch -
2023-04-10T22:23:32.214+0530 7f1fb27f46c0 20 is_capable service=mon command= read addr v2:192.168.29.90:40164/0 on cap allow *
2023-04-10T22:23:32.214+0530 7f1fb27f46c0 20 allow so far , doing grant allow *
2023-04-10T22:23:32.214+0530 7f1fb27f46c0 20 allow all
Signed-off-by: Rishabh Dave <ridave@redhat.com>
d43b2e7 to
aacc9fc
Compare
|
@ljflores this is ready now. |
|
jenkins test make check arm64 |
|
jenkins test make check arm64 |
|
Rados suite results: http://pulpito.front.sepia.ceph.com/?branch=wip-yuri7-testing-2023-04-19-1343 Failures, unrelated: Details: |
|
jenkins test windows |
|
jenkins test make check arm64 |
1 similar comment
|
jenkins test make check arm64 |
Set subsys and prefix for logging in MonCap and OSDCap
Figured out this set of changes while working on PR #41779.
With this patch following is how log entries from MonCap.cc look -
And this is how same log entries from MonCap.cc look without this patch -
Here are the links to these log entries in the codebase -
https://github.com/ceph/ceph/blob/main/src/mon/MonCap.cc#L459
https://github.com/ceph/ceph/blob/main/src/mon/MonCap.cc#L471
https://github.com/ceph/ceph/blob/main/src/mon/MonCap.cc#L484
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 pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows