Ceph set minimum client version
This patch adds a new VAR for when the user wants to set the minimum client version used in a Manila/Glance/Nova/Cinder test job in addition to using devstack. A new configuration option, CEPH_MIN_ CLIENT _VERSION, has been introduced to specify a Ceph-minium client version that allows proper handling when deleting images and snapshots with dependencies, etc. The default value is null. Co-Author-By: Sofia Enriquez <lsofia.enriquez@gmail.com> Change-Id: Id8e581893ee4b373b268acc7c59b670985cedc2f
This commit is contained in:
parent
b0418e177f
commit
e222cc9769
|
@ -133,6 +133,9 @@ CEPH_ISCSI_POOL_PG=${CEPH_ISCSI_POOL_PG:-8}
|
|||
# Default is 5000, but Keystone already listens on 5000
|
||||
CEPH_REST_API_PORT=${CEPH_REST_API_PORT:-5001}
|
||||
|
||||
# Set minimum client version
|
||||
CEPH_MIN_CLIENT_VERSION=${CEPH_MIN_CLIENT_VERSION}
|
||||
|
||||
# Connect to an existing Ceph cluster
|
||||
REMOTE_CEPH=$(trueorfalse False REMOTE_CEPH)
|
||||
REMOTE_CEPH_ADMIN_KEY_PATH=\
|
||||
|
@ -484,6 +487,11 @@ function configure_ceph {
|
|||
sudo systemctl enable ceph-osd@${OSD_ID}
|
||||
done
|
||||
|
||||
if [ ! -z "$CEPH_MIN_CLIENT_VERSION" ]; then
|
||||
sudo ceph -c ${CEPH_CONF_FILE} \
|
||||
osd set-require-min-compat-client ${CEPH_MIN_CLIENT_VERSION}
|
||||
fi
|
||||
|
||||
if is_ceph_enabled_for_service manila; then
|
||||
# create a MDS
|
||||
sudo mkdir -p ${CEPH_DATA_DIR}/mds/ceph-${MDS_ID}
|
||||
|
|
Loading…
Reference in New Issue