Changeset View
Changeset View
Standalone View
Standalone View
winery-test-environment/README.md
- This file was added.
This purpose of these instructions is to run `tox -e py3` in an | |||||
environment that has access to a ceph cluster. It enables tests that | |||||
would be otherwise be skipped and increases code coverage. | |||||
The environment is composed of eight machines named ceph1 to ceph8. | |||||
# Installation | |||||
* pip install -r requirements.txt | |||||
* ansible-galaxy install geerlingguy.docker | |||||
# Create the machines | |||||
## libvirt | |||||
* ensure virsh is available | |||||
* ./build-vms.sh | |||||
If the internet cnx is slow it may take a while before the OSD show up | |||||
because they require downloading large docker images. | |||||
## grid5000 | |||||
* follow the instructions at https://docs.softwareheritage.org/devel/swh-objstorage/winery.html | |||||
* fed4fire.sh test7.zip | |||||
# Install the machines | |||||
* ansible-playbook -i inventory context/setup.yml ceph.yml bootstrap.yml osd.yml tests.yml | |||||
# Run the tests | |||||
It copies the content of the repository and "ssh ceph1 tox -e py3" | |||||
* tox -e winery | |||||
# Login into a machine | |||||
For each host found in context/ssh-config | |||||
* ssh -i context/cluster_key -F context/ssh-config ceph1 | |||||
# Destroy | |||||
## libvirt | |||||
* ./build-vms.sh stop $(seq 1 8) | |||||
## grid5000 | |||||
It will expire on its own |