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
This commit is contained in:
parent
60ae7c53c7
commit
35e1ff5cf4
|
@ -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