Project

General

Profile

Bug #13107

ceph-fuse: handle multiple mounts on the same host (don't set nonce with only PID)

Added by Greg Farnum over 8 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

See #13032. It's possible for multiple processes on the same host to have the same PID if they're in separate namespaces, and if that occurs the clients and servers will get stuck in reconnect loops.

History

#1 Updated by John Spray over 8 years ago

Hah, if I recall correctly I was a bit scandalised back in 2014 when I found out we treated a PID as a nonce :-) Set it with /dev/random instead?

#2 Updated by Greg Farnum over 8 years ago

Yeah, Josh is working on a fix for this in all the clients. libcephfs apparently already solves this problem with 48 bits of random and 16 bits of PID. :)

#3 Updated by Greg Farnum almost 8 years ago

  • Status changed from New to Resolved

This got fixed when #13032 did!

Also available in: Atom PDF