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
osd: add option to dump pg log to pg command #46571
Conversation
Currently we need to stop the cluster and use ceph_objectstore_tool to dump pg log with that commit we will be able to dump pg logs with PG command Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
|
||
f->open_object_section("op_log"); | ||
f->open_object_section("pg_log_t"); | ||
recovery_state.get_pg_log().get_log().dump(f.get()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably need to be holding the pg lock here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, this is PrimaryLogPG::do_command. Check that the caller is already holding the lock, but I think it is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, osd.cc will do the lock on pg before calling the do_command
jenkins test make check |
jenkins test api |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should backport this. Let's create a tracker for it.
jenkins test make check |
|
0 related failures yuriw-2022-06-23_14:17:25-rados-wip-yuri6-testing-2022-06-22-1419-distro-default-smithijobid: [6894622, 6894626, 6894629, 6894631] jobid: [6894623, 6894627, 6894630, 6894632] jobid: [6894628, 6894633, 6894631] DEAD job jobid: 6894621 yuriw-2022-06-23_03:08:39-rados-wip-yuri6-testing-2022-06-22-1419-distro-default-smithijobid: [6893579, 6893654, 6893734, 6893811] jobid: [6893583, 6893664, 6893743, 6893822, 6893822] jobid: [6893667, 6893824] jobid: [6893596] jobid: [6893630] |
Currently we need to stop the cluster and use ceph_objectstore_tool to dump pg log
with that commit we will be able to dump pg logs with PG command
Fixes: https://tracker.ceph.com/issues/56153
Signed-off-by: Nitzan Mordechai nmordech@redhat.com
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 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