Set RBD default features based on distro
In some jobs, we run tests that use "rbd map". On older kernels, this will not work if newer RBD features are used. (Specifically, fast-diff on bionic.) On older distros, enable fewer features by default. Closes-Bug: #1921897 Change-Id: Iff1c5210b0279379eb9612b206bdf456dd6f132e (cherry picked from commit35e1ff5cf4
) (cherry picked from commit3db789ae6c
) (cherry picked from commitfe4c6269f9
) (cherry picked from commit00fd7f3121
)
This commit is contained in:
parent
6ffd7b04c1
commit
0f89989126
|
@ -57,7 +57,11 @@ MDS_ID=${MDS_ID:-a}
|
|||
MGR_ID=${MGR_ID:-x}
|
||||
|
||||
# RBD configuration defaults
|
||||
CEPH_RBD_DEFAULT_FEATURES=${CEPH_RBD_DEFAULT_FEATURES:-"layering, exclusive-lock, object-map, fast-diff"}
|
||||
if [[ ${DISTRO} =~ (bionic|xenial) ]]; then
|
||||
CEPH_RBD_DEFAULT_FEATURES=${CEPH_RBD_DEFAULT_FEATURES:-"layering, exclusive-lock"}
|
||||
else
|
||||
CEPH_RBD_DEFAULT_FEATURES=${CEPH_RBD_DEFAULT_FEATURES:-"layering, exclusive-lock, object-map, fast-diff"}
|
||||
fi
|
||||
|
||||
# Glance
|
||||
GLANCE_CEPH_USER=${GLANCE_CEPH_USER:-glance}
|
||||
|
|
Loading…
Reference in New Issue