Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nfs in cloudmesh-pi-cluster #63

Open
6 tasks done
laszewsk opened this issue May 23, 2022 · 4 comments
Open
6 tasks done

nfs in cloudmesh-pi-cluster #63

laszewsk opened this issue May 23, 2022 · 4 comments
Assignees
Labels
1 priority one (highest) bug Something isn't working

Comments

@laszewsk
Copy link
Member

laszewsk commented May 23, 2022

  • (high priority) allow --username== in commandline so you can set username [default: pi]
  • (medium priority) find out how to pass to pytest --username= and --hostname=
    • document how to
    • pytest on specified hostnames
    • we can assume if --username not specified username is pi
    • we can assume that if --hostname is not specified its red
@laszewsk laszewsk added bug Something isn't working 1 priority one (highest) labels May 23, 2022
@jpfleischer
Copy link
Member

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
Copy link
Member

@laszewsk
Copy link
Member Author

please describe what this does

@jpfleischer
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 priority one (highest) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants