New DRBDmanage version 0.50.

Requires new -utils, too...
Change-Id: Idf159c3de860e621ae6df9b9b4e6951ab7309031
This commit is contained in:
Philipp Marek 2015-09-28 09:29:37 +02:00
parent 9fc59ec9be
commit 56783dc273

View File

@ -8,12 +8,18 @@ function pre_install_drbd_devstack {
mkdir "${FILES}"
fi
packages=('drbd-utils_8.9.3-1_amd64.deb' 'drbd8-utils_8.9.3-1_amd64.deb' 'drbd-dkms_9.0.0-2_all.deb' 'python-drbdmanage_0.44.1_all.deb')
packages=(
drbd8-utils_8.9.4-1_amd64.deb
drbd-dkms_9.0.0-2_all.deb
drbd-utils_8.9.4-1_amd64.deb
python-drbdmanage_0.50-1.1_all.deb
)
# get packages
for p in "${packages[@]}"; do
if [[ ! -f "${FILES}/${p}" ]]; then
# If there are newer packages, change the download number here.
wget "http://openstack-ci-pkgs.linbit.com/packages/002/trusty/$p" -O "${FILES}/${p}"
wget "http://openstack-ci-pkgs.linbit.com/packages/003/trusty/$p" -O "${FILES}/${p}"
fi
done
# install packages
@ -35,17 +41,18 @@ function pre_install_drbd_devstack {
function install_drbd_devstack {
# Install the service.
# write /etc/drbdmanage*.conf
#echo "drbdctrl-vg = $DRBD_DRBDCTRL_VG" >> /etc/drbdmanaged.conf
#echo "volume-group = $DRBD_DATA_VG" >> /etc/drbdmanaged-lvm.conf
sudo sed -i "s/^drbdctrl-vg\s*=.*/drbdctrl-vg = ${DRBD_DRBDCTRL_VG}/g" /etc/drbdmanaged.conf
sudo sed -i "s/^volume-group\s*=.*/volume-group = ${DRBD_DATA_VG}/g" /etc/drbdmanaged-lvm.conf
sudo sed -i "s/^volume-group\s*=.*/volume-group = ${DRBD_DATA_VG}/g" /etc/drbdmanaged-lvm-thinpool.conf
sudo sed -i "s/^volume-group\s*=.*/volume-group = ${DRBD_DATA_VG}/g" /etc/drbdmanaged-lvm-thinlv.conf
# Write DRBDmanage configuration;
# use the single-thinpool driver for these tests.
sudo sed -i "s/^drbdctrl-vg\s*=.*/drbdctrl-vg = ${DRBD_DRBDCTRL_VG}/g" /etc/drbdmanaged.cfg
echo "
[LOCAL]
storage-plugin = drbdmanage.storage.lvm_thinlv.LvmThinLv
force=1
# Use the single-thinpool driver for these tests.
# sudo sed -i "s/^storage-plugin\s*=.*/storage-plugin = drbdmanage.storage.lvm_thinpool_ng.LvmThinPoolNg/g" /etc/drbdmanaged.conf
sudo sed -i "s/^storage-plugin\s*=.*/storage-plugin = drbdmanage.storage.lvm_thinlv.LvmThinLv/g" /etc/drbdmanaged.conf
[Plugin:ThinLV]
volume-group = $DRBD_DATA_VG
pool-name = drbdthinpool
" | sudo tee /etc/drbdmanaged.cfg
# allow the stack user access to drbdmanage
sudo tee /etc/dbus-1/system.d/org.drbd.drbdmanaged-stack.conf > /dev/null << "EOF"
@ -173,6 +180,7 @@ function configure_drbd_devstack {
sudo drbdmanage shutdown --quiet
sudo drbdmanage debug 'set loglevel=debug'
sudo drbdmanage nodes
# FIXME: multi-node setups