" CEPH_SHA1=" + sha1 +
" CEPH_TAG=" + (tag or '') +
" CEPH_BRANCH=" + (branch or '') +
+ " CEPH_FLAVOR=" + gitbuilder.flavor +
" GITBUILDER_URL=" + url +
" BUILD_FLAVOR=" + build_flavor +
" HTTP_FLAVOR=" + http_flavor +
perl -pi -e "s/^gitbuilder_host:.*/gitbuilder_host: $$ip/" ~/.teuthology.yaml
mkdir -p ${D}/${@D} ; touch ${D}/$@
-ceph-${CEPH_PKG_TYPE}-${CEPH_DIST}-${CEPH_ARCH}-basic-${CEPH_SHA1}: packages-repository
+ceph-${CEPH_PKG_TYPE}-${CEPH_DIST}-${CEPH_ARCH}-${CEPH_FLAVOR}-${CEPH_SHA1}: packages-repository
openstack server create --image 'teuthology-${CEPH_OS_TYPE}-${CEPH_OS_VERSION}' --flavor ${BUILD_FLAVOR} --key-name teuthology --security-group teuthology --property ownedby=${MY_IP} --user-data ${CEPH_OS_TYPE}-${CEPH_OS_VERSION}-user-data.txt --wait $@ ; sleep 30
set -ex ; \
trap "openstack server delete $@" EXIT ; \
for delay in 1 2 4 8 8 8 8 8 8 8 8 8 16 16 16 16 16 32 32 32 64 128 256 512 ; do if ssh -o 'ConnectTimeout=3' $$ip bash -c '"grep -q READYTORUN /var/log/cloud-init*.log"' ; then break ; else sleep $$delay ; fi ; done ; \
scp make-${CEPH_PKG_TYPE}.sh common.sh ubuntu@$$ip: ; \
packages_repository=$(call get_ip,${<F}) ; \
- ssh -tt -A ubuntu@$$ip bash ./make-${CEPH_PKG_TYPE}.sh $$packages_repository ${CEPH_DIST} ${CEPH_GIT_URL} ${CEPH_SHA1}
+ ssh -tt -A ubuntu@$$ip bash ./make-${CEPH_PKG_TYPE}.sh $$packages_repository ${CEPH_DIST} ${CEPH_GIT_URL} ${CEPH_SHA1} ${CEPH_FLAVOR}
mkdir -p ${D}/${@D} ; touch ${D}/$@
clobber:
git_submodules || return 1
install_deps || return 1
}
+
+function flavor2configure() {
+ local flavor=$1
+
+ if test $flavor = notcmalloc ; then
+ echo --without-tcmalloc --without-cryptopp
+ fi
+}
codename=$2
git_ceph_url=$3
sha1=$4
+flavor=$5
sudo apt-get update
sudo apt-get install -y git
# options (otherwise parts of the source tree will be left out).
#
./autogen.sh
- ./configure --with-rocksdb --with-ocf \
+ ./configure $(flavor2configure $flavor) \
+ --with-rocksdb --with-ocf \
--with-nss --with-debug --enable-cephfs-java \
--with-lttng --with-babeltrace
#
# as
#
arch=x86_64
- base=ceph-deb-$codename-$arch-basic
+ base=ceph-deb-$codename-$arch-$flavor
sha1_dir=$codename/$base/sha1/$sha1
mkdir -p $sha1_dir/conf
cat > $sha1_dir/conf/distributions <<EOF
codename=$2
git_ceph_url=$3
sha1=$4
+flavor=$5
sudo yum install -y git
# as
#
arch=x86_64
-base=ceph-rpm-$codename-$arch-basic
+base=ceph-rpm-$codename-$arch-$flavor
function setup_rpmmacros() {
if ! grep -q find_debuginfo_dwz_opts $HOME/.rpmmacros ; then
#
sudo yum install -y bzip2
./autogen.sh
- ./configure --with-debug --with-radosgw --with-fuse --with-libatomic-ops --with-gtk2 --with-nss
+ ./configure $(flavor2configure $flavor) --with-debug --with-radosgw --with-fuse --with-libatomic-ops --with-gtk2 --with-nss
#
# use distdir= to set the name of the top level directory of the
# tarbal to match the desired version