Comments (3)
There are several cases to take into account.
I describe them according to the output of the mount -l
command.
fs_spec on fs_mntpoint type fs_type (fs_options)
where
- <fs_spec> describes the remote filesystem to be mounted;
- <fs_mntpoint> describes the mountpoint for the filesystem;
- <fs_type> describes the type of the filesystem;
- <fs_options> lists the mount options for the filesystem.
This is what I have found by grepping for 'eos' in different contexts where we will the testing framework. 1-2-3 are production cases, 4-5 are for ScienceBox deployments.
- eos+<instance-name> on /eos/<instance-name> type fuse
Example:eosuser on /eos/user type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
- <instance-name> can be whatever. Typically a string of letters+digits
- home-<letter> on /eos/home-<letter> type fuse:
Example:home-x on /eos/home-x type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
- <letter> is a letter in [a-z], lowercase
-
project-<letter> on /eos/project-<letter> type fuse:
Same as above, just with project instead of home.
Example:project-x on /eos/project-x type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
-
eosdocker on /eos/<whatever> type fuse:
Example:eosdocker on /eos/up2u type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
-
eosdocker on /tmp/sciencebox/eos_mount/docker type fuse:
Example:eosdocker on /tmp/sciencebox/eos_mount/docker type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
This is currently hard-coded in the setup script of ScienceBox.
from testingframework.
Grepping for 'eos', it might also appear a configuration line for automount // autofs:
/etc/auto.eos on /eos type autofs (rw,relatime,fd=17,pgrp=11698,timeout=300,minproto=5,maxproto=5,indirect,pipe_ino=77838)
This should not be taken into account for the sanity of eos mounts.
I would suggest discarding lines with "autofs" in the type field.
from testingframework.
All in all, my suggestion is to issue the mount -l
command and then parse the output properly in python.
eos+<instance-name> // home-<letter> // project-<letter> should be relatively easy to spot with regular expressions.
One could also foresee to pass some args to the function to specify <fs_spec> or <fs_mntpoint> if results with regexps are not reliable
from testingframework.
Related Issues (9)
- CVMFS tests from cvmfs container
- EOS test_mount_sanity.py should spawn a subprocess
- Duplicated code in storage tests
- exit_code functions
- !! Make the framework modular wrt yaml content !!
- Deduplicate parameters in tests.yaml
- Describe requirements to run the framework
- Explicit mode type instead of number
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from testingframework.