-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Configuration repositories should be mounted first #176
Comments
Also the config repository must appear first on the list, which is not possible to control when using the module (I suspect it adds them in alphabetical order instead) |
As long as we have - Do we still need the order in fstab to be correct? Part of problem here is when puppet calls |
I was told by people in the cvmfs team (i.e. my only source is a private mattermost message) that the config repository also had to appear first in the list (I will test without anyways and report back). |
Its kind of irrelevant. if we put the puppet of cvmfs-config before say atlas the it will be first anyway in fstab. Fixing existing installations for order in fstab is frankly to hard but they should be fine anyway on reboot since on reboot tis the systemd items that matter. |
Indeed this point is tricky.
Hard to know what to do other than: class{'cvmfs':
mount_method => 'mount',
}
cvmfs::mount{'ams.cern.ch':
config_repo = 'cvmfs-config.cern.ch',
} could be made to work but a little long winded - I guess in reality when people explicitly I'm also tempted to remove the ambiguity between the two way things get mounted.
If I simply wrote the For transition a unit in 🤔 |
That could work. cvmfs only allows one config repository per client 1, which is not expected to change, so for the module interface it would probably be nice to have something like: cvmfs::cvmfs_hash:
cvmfs-config.cern.ch:
{ config_repo => true, }
atlas.cern.ch:
{ }
# [...] Footnotes |
One per client. That's a very useful bit of info. Can be an attribute to the main class then. Making it backwards compatible will be a small pain for people who have it mounted explicitly already but I'm sure nothing that cannot be solved. Will put something together next week. |
However given the mount has options maybe what you suggest better. Will work it out. |
This patch only comes into play when using the `mount_method` of `mount` rather than the default autofs. It is now possible to specify that one particular repository on a client is the configuration repository and must be mounted first before all other repositories. This should happen during puppets initial configuration of CvmFS and also at reboot. ```puppet class{'cvmfs': mount_method => 'mount', config_repo => 'cvmfs-config.example.org', } cmvfs::mount{'myrepo.example.org':} cmvfs::mount{'cvmfs-config.example.org':} ``` In this example the repository `cvmfs-config.example.org` will be mounted before `myrepo.example.org`. Note there is all ways at most one configuration repository per client. Fixes: voxpupuli#176
This patch only comes into play when using the `mount_method` of `mount` rather than the default autofs. It is now possible to specify that one particular repository on a client is the configuration repository and must be mounted first before all other repositories. This should happen during puppets initial configuration of CvmFS and also at reboot. ```puppet class{'cvmfs': mount_method => 'mount', config_repo => 'cvmfs-config.example.org', } cmvfs::mount{'myrepo.example.org':} cmvfs::mount{'cvmfs-config.example.org':} ``` In this example the repository `cvmfs-config.example.org` will be mounted before `myrepo.example.org`. Note there is all ways at most one configuration repository per client. Fixes: voxpupuli#176
When cvmfs repositories are mounted through
/etc/fstab
entries, the configuration repository should be mounted first:https://cvmfs.readthedocs.io/en/stable/cpt-configure.html#:~:text=If%20a%20configuration,mounts.%20For%20example%3A
Currently one has to manually patch each non-config repository like this
but it would be preferable to have the module do this automatically. Perhaps only requiring the user to specify which of the entries that is the config-repository.
The text was updated successfully, but these errors were encountered: