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

common: ping existing admin socket before unlink (emperor) #1247

Closed
wants to merge 2 commits into from
Closed

common: ping existing admin socket before unlink (emperor) #1247

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Feb 15, 2014

When a daemon initializes it tries to create an admin socket and unlinks
any pre-existing file, regardless. If such a file is in use, it causes
the existing daemon to loose its admin socket.

The AdminSocketClient::ping is implemented to probe an existing socket,
using the "0" message. The AdminSocket::bind_and_listen function is
modified to call ping() on when it finds existing file. It unlinks the
file only if the ping fails.

http://tracker.ceph.com/issues/7188 fixes: #7188

Backport: emperor, dumpling
Reviewed-by: Sage Weil sage@inktank.com
Signed-off-by: Loic Dachary loic@dachary.org
(cherry picked from commit 4560078)

@liewegas
Copy link
Member

will just cherry-pick -x when the time comes

@liewegas liewegas closed this Feb 16, 2014
Sage Weil and others added 2 commits March 5, 2014 14:19
mon: OSDMonitor: don't crash if formatter is invalid during osd crush dump
When a daemon initializes it tries to create an admin socket and unlinks
any pre-existing file, regardless. If such a file is in use, it causes
the existing daemon to loose its admin socket.

The AdminSocketClient::ping is implemented to probe an existing socket,
using the "0" message. The AdminSocket::bind_and_listen function is
modified to call ping() on when it finds existing file. It unlinks the
file only if the ping fails.

http://tracker.ceph.com/issues/7188 fixes: #7188

Backport: emperor, dumpling
Reviewed-by: Sage Weil <sage@inktank.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit 4560078)
@ghost
Copy link
Author

ghost commented Mar 8, 2014

@ircolle suggested it's now ready to backport

@ghost ghost reopened this Mar 8, 2014
@ghost ghost closed this Mar 8, 2014
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant