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

osd: Sign in early SIGHUP signal #19958

Merged
merged 2 commits into from Feb 7, 2018

Conversation

renhwztetecs
Copy link
Contributor

In the process of starting the osd process,if system just call the
logratote("killall -q -1 ceph-mon ceph-mgr ceph-mds ceph-osd ceph-fuse radosgw...")
it will cause osd'init failed to start,
in addition, osd init slower than before, will increase the chances of the error.
Other modules(mon\mds\mgr...) also have type problems, but the most serious osd problem,
I can then make other modules similar changes.

Signed-off-by: huanwen ren ren.huanwen@zte.com.cn

@renhwztetecs renhwztetecs force-pushed the renhw-wip-osd-sighup branch 2 times, most recently from 00db0d9 to 233f01b Compare January 16, 2018 10:36
@tchaikov
Copy link
Contributor

makes sense to me. might need to update the commit message to note down the rationale of the change, also the point of moving the calls to register the sighandler is to register the SIGHUP before the first blocking call, which is, OSD::peek_meta() i guess.

@renhwztetecs
Copy link
Contributor Author

@tchaikov
thank you, I add Fixes: http://tracker.ceph.com/issues/22746 in the commit info

@renhwztetecs renhwztetecs force-pushed the renhw-wip-osd-sighup branch 7 times, most recently from 032dde2 to e0767f0 Compare January 24, 2018 06:43
In the process of starting the osd process,if system just call the
logratote("killall -q -1 ceph-mon ceph-mgr ceph-mds ceph-osd ceph-fuse radosgw...")
it will cause osd'init failed to start,
in addition, osd init slower than before, will increase the chances of the error.
Other modules(mon\mds\mgr...) also have type problems, but the most serious osd problem,
I can then make other modules similar changes.

Fixes: http://tracker.ceph.com/issues/22746
Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
@renhwztetecs
Copy link
Contributor Author

@tchaikov
maybe need to be placed after g_ceph_context is initialized, before new osd, as it is now.
ping @jcsp

@jcsp
Copy link
Contributor

jcsp commented Jan 25, 2018

Yep, seems sensible that these calls should come right after common_init_finish

@tchaikov
Copy link
Contributor

tchaikov commented Feb 2, 2018

@renhwztetecs as we discussed, this change also applies to other daemons of ceph whose log messages are logroated. do you want to do it in this PR, or leave it for future? i am good either way =)

@renhwztetecs
Copy link
Contributor Author

@tchaikov
ok ,I will add other in this PR.

Contains the following process:
ceph-mon ceph-mgr ceph-mds ceph-fuse radosgw.

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
@renhwztetecs
Copy link
Contributor Author

added it

@tchaikov tchaikov merged commit bcbcdd2 into ceph:master Feb 7, 2018
@renhwztetecs renhwztetecs deleted the renhw-wip-osd-sighup branch October 9, 2019 05:36
@renhwztetecs renhwztetecs restored the renhw-wip-osd-sighup branch November 23, 2021 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants