X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Ftest%2Fvstart_wrapper.sh;fp=src%2Fceph%2Fsrc%2Ftest%2Fvstart_wrapper.sh;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=235a81fb4675e4d8ae9a53091dea54b462290676;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/test/vstart_wrapper.sh b/src/ceph/src/test/vstart_wrapper.sh deleted file mode 100755 index 235a81f..0000000 --- a/src/ceph/src/test/vstart_wrapper.sh +++ /dev/null @@ -1,75 +0,0 @@ -#!/bin/bash -# -# Copyright (C) 2013 Cloudwatt -# Copyright (C) 2015 Red Hat -# -# Author: Loic Dachary -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU Library Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Library Public License for more details. -# - -source $CEPH_ROOT/qa/standalone/ceph-helpers.sh - -export CEPH_VSTART_WRAPPER=1 -export CEPH_DIR="${TMPDIR:-$PWD}/td/t-$CEPH_PORT" -export CEPH_DEV_DIR="$CEPH_DIR/dev" -export CEPH_OUT_DIR="$CEPH_DIR/out" -export CEPH_ASOK_DIR="$CEPH_DIR/out" - -export MGR_PYTHON_PATH=$CEPH_ROOT/src/pybind/mgr - -function vstart_setup() -{ - rm -fr $CEPH_DEV_DIR $CEPH_OUT_DIR - mkdir -p $CEPH_DEV_DIR - trap "teardown $CEPH_DIR" EXIT - export LC_ALL=C # some tests are vulnerable to i18n - export PATH="$(pwd):${PATH}" - OBJSTORE_ARGS="" - if [ "bluestore" = "${CEPH_OBJECTSTORE}" ]; then - OBJSTORE_ARGS="-b" - fi - $CEPH_ROOT/src/vstart.sh \ - --short \ - $OBJSTORE_ARGS \ - -o 'paxos propose interval = 0.01' \ - -d -n -l || return 1 - export CEPH_CONF=$CEPH_DIR/ceph.conf - - crit=$(expr 100 - $(ceph-conf --show-config-value mon_data_avail_crit)) - if [ $(df . | perl -ne 'print if(s/.*\s(\d+)%.*/\1/)') -ge $crit ] ; then - df . - cat <