cinderlib/tools/lvm-prepare.sh
Gorka Eguileor e93d054ae7 Prepare for cinder gate test
We want to be able to run cinderlib functional tests on Cinder gates, so
this patch adds a playbook and a tool to convert from Cinder's config
file to the YAML required by our functional tests.

The cinder-gate-run playbook uses cinderlib_ignore_errors variable to
define whether the playbook should fail on errors or should they just be
ignored.

The playbook stores the test run results on the common logs directory so
they are automatically saved by the Cinder gate jobs.
2018-09-05 19:54:26 +02:00

10 lines
222 B
Bash
Executable File

#!/usr/bin/env bash
# Must be run as root
dd if=/dev/zero of=cinder-volumes bs=1048576 seek=22527 count=1
lodevice=`losetup --show -f ./cinder-volumes`
pvcreate $lodevice
vgcreate cinder-volumes $lodevice
vgscan --cache