Description

Files to create a CentOS VM, using Vagrant and the libvirt provider, which run the SPLAT and ZFS Test suites which are provided as part of SPL and ZFS.

Dependencies

Required:

Optional:

Tested with SPL and ZFS 0.7.13.

These steps may be sufficient to setup a CentOS 7 system:

sudo yum install -y https://releases.hashicorp.com/vagrant/2.2.6/vagrant_2.2.6_x86_64.rpm
sudo yum install -y epel-release
sudo yum install -y ansible
vagrant plugin install vagrant-libvirt

Operating the VM

Create the VM

vagrant up --provider=libvirt

or

./start

Destroy the VM

vagrant destroy

Connect to running VM

vagrant ssh

Re-provision the VM

When it is started, the VM is automatically provisioned using Ansible. Ansible must already be installed on the host.

If the playbook.yml file is updated, re-provision the VM by running:

vagrant provision

For debugging purposes (or to more quickly re-run Ansible on the VM), run:

./run-ansible

Get test results

./get-results

/var/tmp/test_results in the VM will be copied to test_results in the current directory. The output of running zfs-tests.sh will be in test_results/current/tests.log along with the results of the last run. get-results can be run repeatedly without worrying about losing previous results as the ZFS test suite puts the results for each run in a directory whose name is a basic format combined date and 24 hour time ISO 8601 timestamp (e.g., 20191022T020443).

Useful links

Contributors

Christopher Voltz

Copyright

© Copyright 2019 Hewlett Packard Enterprise Development LP