From b53a074536701b9aa1bf7f42a2822651ae8fcc7e Mon Sep 17 00:00:00 2001 From: Mehdi Abaakouk Date: Wed, 30 Mar 2016 10:04:36 +0200 Subject: [PATCH] ceph: Allow to change the image path If we want to put the disk image into a tmpfs, changing CEPH_DATA_DIR won't work because some file operation needed by ceph are not allowed on tmpfs. So, this change allows to change the disk image path only instead of the whole CEPH_DATA_DIR. Change-Id: If92f0bdca16f866a475820cf71a30ded28fb2572 --- devstack/lib/ceph | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devstack/lib/ceph b/devstack/lib/ceph index 1cd6c99..f55d06d 100644 --- a/devstack/lib/ceph +++ b/devstack/lib/ceph @@ -31,7 +31,7 @@ CEPH_RELEASE=${CEPH_RELEASE:-hammer} # Set ``CEPH_DATA_DIR`` to the location of Ceph drives and objects. # Default is the common DevStack data directory. CEPH_DATA_DIR=${CEPH_DATA_DIR:-/var/lib/ceph} -CEPH_DISK_IMAGE=${CEPH_DATA_DIR}/drives/images/ceph.img +CEPH_DISK_IMAGE=${CEPH_DISK_IMAGE:-${CEPH_DATA_DIR}/drives/images/ceph.img} # Set ``CEPH_CONF_DIR`` to the location of the configuration files. # Default is ``/etc/ceph``.