Galera startup crash fix, temporal removal of revert snapshot (Galera does not survive revert)

and add cores saving from tests themselves.
This commit is contained in:
Timofey Turenko
2017-12-21 17:20:41 +02:00
parent 4fd8ebd9eb
commit 5c7845c381
12 changed files with 58 additions and 33 deletions

View File

@ -9,7 +9,7 @@ function checkExitStatus {
rm $lockFilePath
echo "Snapshot lock file was deleted due to an error"
exit 1
fi
fi
}
set -x
@ -52,9 +52,9 @@ if [ $? != 0 ]; then
${MDBCI_VM_PATH}/scripts/clean_vms.sh $name
${script_dir}/create_config.sh
checkExitStatus $? "Error creating configuration" $snapshot_lock_file
checkExitStatus $? "Error creating configuration" $snapshot_lock_file
. ${script_dir}/configure_backend.sh
echo "Creating snapshot from new config"
$HOME/mdbci/mdbci snapshot take --path-to-nodes $name --snapshot-name $snapshot_name
fi
@ -67,7 +67,7 @@ ${mdbci_dir}/repository-config/maxscale-ci.sh $target repo.d
${mdbci_dir}/mdbci sudo --command 'yum remove maxscale -y' $name/maxscale
${mdbci_dir}/mdbci sudo --command 'yum clean all' $name/maxscale
${mdbci_dir}/mdbci setup_repo --product maxscale $name/maxscale --repo-dir $repo_dir
${mdbci_dir}/mdbci setup_repo --product maxscale $name/maxscale --repo-dir $repo_dir
${mdbci_dir}/mdbci install_product --product maxscale $name/maxscale --repo-dir $repo_dir
checkExitStatus $? "Error installing Maxscale" $snapshot_lock_file
@ -80,11 +80,12 @@ make
./check_backend --restart-galera
checkExitStatus $? "Failed to check backends" $snapshot_lock_file
ulimit -c unlimited
ctest $test_set -VV -D Nightly
cp core.* ${logs_publish_dir}
${script_dir}/copy_logs.sh
# Removing snapshot_lock
rm ${snapshot_lock_file}