Open laszewsk opened 2 years ago
introducing pytest to create your nfs with an easy one-liner. this command creates a shared file system nfs and distributes it to workers. it creates the nfs in a folder called Stuff located on manager at ~/Stuff.
https://github.com/cloudmesh/cloudmesh-pi-cluster/blob/nfs/tests/test_nfs.py
do
(ENV3) pi@red:~cm/cloudmesh-pi-cluster $ pytest -v --capture=no tests/test_nfs.py --username=pi --hostname=red,red0[1-3]
you can even leave out --username
and --hostname
so that username defaults to pi, and hostname defaults to red,red0[1-2]
this has parameters that are passed to pytest. you can change these parameters.
we are able to accomplish this with conftest.py. https://github.com/cloudmesh/cloudmesh-pi-cluster/blob/nfs/tests/conftest.py
please describe what this does
please describe what this does
This pytest uses the cms pi nfs
commands to install an nfs file system available on every node. It uses username
and hostname
parameters to test the installation with such parameters.