ddiss/rapido.git
7 years agocut_fstests: add seq command to images
David Disseldorp [Wed, 11 Jan 2017 10:31:48 +0000 (11:31 +0100)]
cut_fstests: add seq command to images

Signed-off-by: David Disseldorp <ddiss@suse.de>
7 years agocut_fstests: add missing fstests dependencies
David Disseldorp [Tue, 10 Jan 2017 18:17:07 +0000 (19:17 +0100)]
cut_fstests: add missing fstests dependencies

hexdump, sync and xfs_db are needed.

Signed-off-by: David Disseldorp <ddiss@suse.de>
7 years agolio_local_autorun.sh: expose /dev/vdb if present
David Disseldorp [Wed, 4 Jan 2017 14:58:34 +0000 (15:58 +0100)]
lio_local_autorun.sh: expose /dev/vdb if present

Expose dmdelay loopback device as LUN1, and use LUN2+ for all remaining
/dev/vdX devices (currently only vda and vdb are checked for existence).

Signed-off-by: David Disseldorp <ddiss@suse.de>
7 years agokernel/vanilla_config: update to 4.9.0 latest
David Disseldorp [Thu, 22 Dec 2016 15:54:33 +0000 (16:54 +0100)]
kernel/vanilla_config: update to 4.9.0 latest

Signed-off-by: David Disseldorp <ddiss@suse.de>
7 years agotcmu_rbd_loop: add tcmu-runner rbd img cutter and autorun
David Disseldorp [Mon, 19 Dec 2016 20:45:03 +0000 (21:45 +0100)]
tcmu_rbd_loop: add tcmu-runner rbd img cutter and autorun

The tcmu_rbd_loop VM image is cut with the LIO tcmu kernel module,
tcmu-runner binary (with rbd backend), librados/librbd, and a few extra
dependencies. The tcmu-runner binary and corresponding libraries are
pulled from compiled source using the new TCMU_RUNNER_SRC rapido.conf
parameter.

On boot, the autorun script configures a backstore exposing
CEPH_RBD_IMAGE via the LIO loopback fabric.

Fixes: https://github.com/ddiss/rapido/issues/4
Signed-off-by: David Disseldorp <ddiss@suse.de>
7 years agoruntime.vars: fix cmake vstart.sh dev and out paths
David Disseldorp [Thu, 15 Dec 2016 18:16:32 +0000 (19:16 +0100)]
runtime.vars: fix cmake vstart.sh dev and out paths

For Ceph cmake builds, vstart.sh is run from the build subdirectory, so
the dev/ and out/ paths end up there too.

Signed-off-by: David Disseldorp <ddiss@suse.de>
7 years agocephfs_fuse: add ceph-fuse img cutter and autorun
David Disseldorp [Thu, 15 Dec 2016 17:05:56 +0000 (18:05 +0100)]
cephfs_fuse: add ceph-fuse img cutter and autorun

The ceph-fuse VM image is cut with the fuse kernel module, ceph-fuse
binary and a few extra dependencies. On boot, the autorun script mounts
the default cephFS filesystem under /mnt/cephfs.

Signed-off-by: David Disseldorp <ddiss@suse.de>
7 years agokernel/config: build fuse as module
David Disseldorp [Thu, 15 Dec 2016 16:45:55 +0000 (17:45 +0100)]
kernel/config: build fuse as module

Signed-off-by: David Disseldorp <ddiss@suse.de>
7 years agoruntime.vars: add ceph-fuse paths
David Disseldorp [Thu, 15 Dec 2016 16:40:10 +0000 (17:40 +0100)]
runtime.vars: add ceph-fuse paths

To be used by upcoming ceph-fuse image generator.

Signed-off-by: David Disseldorp <ddiss@suse.de>
7 years agotools/br_setup.sh: unwind network changes on error
David Disseldorp [Wed, 14 Dec 2016 14:00:57 +0000 (15:00 +0100)]
tools/br_setup.sh: unwind network changes on error

Cleanup on error, rather than bailing with a partial roll-out.

Fixes: https://github.com/ddiss/rapido/issues/1
Signed-off-by: David Disseldorp <ddiss@suse.de>
7 years agotools/bridge: use ip instead of brctl
David Disseldorp [Wed, 14 Dec 2016 13:13:52 +0000 (14:13 +0100)]
tools/bridge: use ip instead of brctl

The ip command is capable of bridge network setup, so use it instead of
requiring the extra brctl dependency.

Fixes: https://github.com/ddiss/rapido/issues/3
Signed-off-by: David Disseldorp <ddiss@suse.de>
7 years agolio_local_autorun.sh: don't try to set vendor_id
David Disseldorp [Tue, 13 Dec 2016 13:52:43 +0000 (14:52 +0100)]
lio_local_autorun.sh: don't try to set vendor_id

LIO backstore vendor ID changes aren't currently supported in upstream
kernel, so drop this behaviour for now.

Signed-off-by: David Disseldorp <ddiss@suse.de>
7 years agocut_lio_local.sh: build/use loop device as module
David Disseldorp [Tue, 13 Dec 2016 13:49:25 +0000 (14:49 +0100)]
cut_lio_local.sh: build/use loop device as module

It's currently only used by lio_local, so makes sense to keep as a
separate module.

Signed-off-by: David Disseldorp <ddiss@suse.de>
7 years agokernel/vanilla_config: update from 4.9.0-rc6 to 4.9.0
David Disseldorp [Tue, 13 Dec 2016 01:05:13 +0000 (02:05 +0100)]
kernel/vanilla_config: update from 4.9.0-rc6 to 4.9.0

Signed-off-by: David Disseldorp <ddiss@suse.de>
7 years agorapido: initial release
David Disseldorp [Mon, 12 Dec 2016 19:33:54 +0000 (20:33 +0100)]
rapido: initial release

As documented in readme.txt, Rapido is a utility for rapid testing of
Linux kernel changes. It was initially targeted at Ceph RBD and CephFS
kernel client functionality, but now also covers a number of standalone
use cases.

The scripts that make up Rapido are in themselves quite brainless. Most
of the heavy lifting is instead performed by:
- Dracut
  + Generates a VM image, with kernel-modules and minimal user-space.
- QEMU / KVM
  + Boots a given Dracut VM image and compiled Linux kernel on the local
    system.

Signed-off-by: David Disseldorp <ddiss@suse.de>