-
Notifications
You must be signed in to change notification settings - Fork 2k
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
volume mount propagation mode isn't provided to task #15524
Comments
Hi @shumin1027! I think this was fixed in #15096, which if I'm reading correctly was released in Nomad 1.4.3. Can you confirm which version of Nomad you're running? |
@tgross The version is I need to set ......
volume "cvmfs" {
type = "csi"
source = "cvmfs-volume"
......
}
task "ubuntu" {
volume_mount {
volume = "cvmfs"
destination = "/cvmfs"
read_only = true
propagation_mode = "rshared"
}
}
...... I don't know how to configure, there is also no example configuration given for this in the docs https://developer.hashicorp.com/nomad/docs/job-specification/volume_mount#volume_mount-parameters |
@tgross The
nomad/client/allocrunner/taskrunner/volume_hook.go Lines 81 to 86 in fc4abf2
nomad/client/allocrunner/taskrunner/volume_hook.go Lines 172 to 179 in fc4abf2
|
Looking at the code, the example you gave here looks right: volume_mount {
volume = "cvmfs"
destination = "/cvmfs"
read_only = true
propagation_mode = "rshared"
} See I've adjusted the title slightly so that it's a little more obvious what this impacts. |
@tgross The correct configuration parameters should be like this,: volume_mount {
volume = "cvmfs"
destination = "/cvmfs"
read_only = true
propagation_mode = "host-to-task"
}
nomad/nomad/structs/volumes.go Lines 13 to 17 in f452441
nomad/drivers/docker/driver.go Lines 712 to 719 in f452441
|
Closed by #15626 |
I have a problem when trying to use
cvmfs-csi
in nomad , the csi plugin works fine, but it seems that it cannot be automatically mounted in the application container, may be because missingrslave
orrshared
in the container mountHere is the issue: cvmfs-contrib/cvmfs-csi#52
The
CSI volume
mount needs to support "mount propagation" option,such as:k8s volume mount propagation
docker bind propagation
The text was updated successfully, but these errors were encountered: