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))
|
' skipping'.format(path))
|
||||||
return
|
return
|
||||||
|
|
||||||
if os.path.exists(os.path.join(path, 'upstart')):
|
for t in ['upstart', 'systemd']:
|
||||||
log('Path {} is already configured as an OSD - bailing'.format(path))
|
if os.path.exists(os.path.join(path, t)):
|
||||||
return
|
log('Path {} is already used as an OSD dir - bailing'.format(path))
|
||||||
|
return
|
||||||
|
|
||||||
if cmp_pkgrevno('ceph', "0.56.6") < 0:
|
if cmp_pkgrevno('ceph', "0.56.6") < 0:
|
||||||
log('Unable to use directories for OSDs with ceph < 0.56.6',
|
log('Unable to use directories for OSDs with ceph < 0.56.6',
|
||||||
|
|
Loading…
Reference in New Issue