Add protection for dir based osd, to avoid it being re-initialized
Change-Id: Id1f3a78bb3108a77f7e2e1d1866657d50ee9dff1 Closes-Bug: #1841021
This commit is contained in:
parent
cf0131d0bf
commit
6d21a5d0fd
|
@ -1944,9 +1944,10 @@ def osdize_dir(path, encrypt=False, bluestore=False):
|
|||
' skipping'.format(path))
|
||||
return
|
||||
|
||||
if os.path.exists(os.path.join(path, 'upstart')):
|
||||
log('Path {} is already configured as an OSD - bailing'.format(path))
|
||||
return
|
||||
for t in ['upstart', 'systemd']:
|
||||
if os.path.exists(os.path.join(path, t)):
|
||||
log('Path {} is already used as an OSD dir - bailing'.format(path))
|
||||
return
|
||||
|
||||
if cmp_pkgrevno('ceph', "0.56.6") < 0:
|
||||
log('Unable to use directories for OSDs with ceph < 0.56.6',
|
||||
|
|
Loading…
Reference in New Issue