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.
Required:
- Ansible >= 2.8.5
- centos/7 Vagrant box >= v1905.1
- Vagrant >= 2.2.6
- vagrant-libvirt Vagrant provider >= 0.0.45
Optional:
- vagrant-cachier >= 1.2.1
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
vagrant up --provider=libvirt
or
./start
vagrant destroy
vagrant ssh
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-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
).
- Ansible documentation
- Vagrant Ansible Provisioner docs
- Building ZFS
- Custom Packages
- bb-bootstrap.sh
- bb-dependencies.sh
- tests/functional/delegate/setup.ksh
© Copyright 2019 Hewlett Packard Enterprise Development LP