mirror of
https://github.com/ceph/ceph
synced 2025-01-19 01:21:49 +00:00
cephadm: set CEPH_USE_RANDOM_NONCE if using --init
This ensures that daemon messenger nonces don't collide by using PIDs that are no longer unique for the IP address. Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
d18f60854e
commit
576823bcb6
@ -3030,6 +3030,7 @@ class CephContainer:
|
||||
cmd_args.append('--cap-add=SYS_PTRACE')
|
||||
if self.init:
|
||||
cmd_args.append('--init')
|
||||
envs += ['-e', 'CEPH_USE_RANDOM_NONCE=1']
|
||||
if self.cname:
|
||||
cmd_args.extend(['--name', self.cname])
|
||||
if self.envs:
|
||||
@ -3070,6 +3071,7 @@ class CephContainer:
|
||||
])
|
||||
if self.init:
|
||||
cmd_args.append('--init')
|
||||
envs += ['-e', 'CEPH_USE_RANDOM_NONCE=1']
|
||||
if self.envs:
|
||||
for env in self.envs:
|
||||
envs.extend(['-e', env])
|
||||
|
Loading…
Reference in New Issue
Block a user