Merge "[CEPH] OSD directory permission fixes"
This commit is contained in:
commit
7bc6f0adbd
@ -99,6 +99,11 @@ if [ "${OSD_BLUESTORE:-0}" -ne 1 ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# NOTE(supamatt): Just in case permissions do not align up, we recursively set them correctly.
|
||||||
|
if [ $(stat -c%U ${OSD_PATH}) != ceph ]; then
|
||||||
|
chown -R ceph. ${OSD_PATH};
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${OSD_BLUESTORE:-0}" -ne 1 ]; then
|
if [ "${OSD_BLUESTORE:-0}" -ne 1 ]; then
|
||||||
# NOTE(supamatt): This function is a workaround to Ceph upstream bug #21142
|
# NOTE(supamatt): This function is a workaround to Ceph upstream bug #21142
|
||||||
osd_pg_interval_fix
|
osd_pg_interval_fix
|
||||||
|
@ -72,6 +72,11 @@ if [[ -n "$(find /var/lib/ceph/osd -prune -empty)" ]]; then
|
|||||||
crush_location
|
crush_location
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# NOTE(supamatt): Just in case permissions do not align up, we recursively set them correctly.
|
||||||
|
if [ $(stat -c%U ${OSD_PATH}) != ceph ]; then
|
||||||
|
chown -R ceph. ${OSD_PATH};
|
||||||
|
fi
|
||||||
|
|
||||||
# NOTE(supamatt): This function is a workaround to Ceph upstream bug #21142
|
# NOTE(supamatt): This function is a workaround to Ceph upstream bug #21142
|
||||||
osd_pg_interval_fix
|
osd_pg_interval_fix
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user