cloudmesh / cloudmesh-pi-burn

Burns many SD cards so we can build a Raspberry PI cluster
Other
18 stars 12 forks source link

nfs in cloudmesh-pi-cluster #63

Open laszewsk opened 2 years ago

laszewsk commented 2 years ago
jpfleischer commented 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

jpfleischer commented 2 years ago

Documentation: https://github.com/cloudmesh/cloudmesh-pi-cluster/blob/nfs/README-nfs-pytest.md

laszewsk commented 2 years ago

please describe what this does

jpfleischer commented 2 years ago

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.