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

Add chroot_bindings for exec driver to configure bind-mounts #2333

Closed
wants to merge 1 commit into from
Closed

Add chroot_bindings for exec driver to configure bind-mounts #2333

wants to merge 1 commit into from

Conversation

ashald
Copy link

@ashald ashald commented Feb 17, 2017

Addresses #2115.

As ability to bind-mount parts of host FS while running under exec driver is essential for our organization to be able to adopt Nomad I decided to give it a shot. I've made a build from this branch and it runs without an issue on dozens of hosts while we continue our experiments with Nomad. Would be amazing if it could become a part of Nomad itself.

In terms of the implementation I think it's done although it'd be nice to add few tests. Also I'm not sure about styling - whether config option name is appropriate and so on so I decided to bounce this PR with Hashicorp and community. If it's something you don't mind to merge into the core I'd be glad to polish the PR unless you're happy with it or handle the sources to you (well, I already did that :) ) if you prefer to finish it on your own.

Please let me know what you think.

@chelseakomlo
Copy link
Contributor

Hi @ashald, thanks for this PR.

Looking at the Travis build, it looks like there are a couple errors (see below). Do you mind fixing these up?

client/allocdir/task_dir_linux_test.go:28: td.unmountSpecialDirs undefined (type *TaskDir has no field or method unmountSpecialDirs)
client/allocdir/task_dir_linux_test.go:60: td.unmountSpecialDirs undefined (type *TaskDir has no field or method unmountSpecialDirs)
client/allocdir/task_dir_linux_test.go:69: td.unmountSpecialDirs undefined (type *TaskDir has no field or method unmountSpecialDirs)

@ashald
Copy link
Author

ashald commented Feb 22, 2018

@chelseakomlo I was told that there are plans for "platform-level" support for volumes planned in Nomad in future and therefore this PR doesn't make any sense as it will be fundamentally incompatible with how volumes will be managed in Nomad. Therefore I abandoned this patch and going to close the PR.

@ashald ashald closed this Feb 22, 2018
@prologic
Copy link

Would someone from Hashicorp mind answering the following?

Given that #5377 and #5378 were only created a week ago; Can I resurrect this old PR onto current master and get tests working as a short-term work-around for "lack of volumes" in Nomad? We are blocked by this missing feature and we have two choices a) Switch from exec to docker Execution Driver or b) Resurrect this PR (both of which are likely equally as much work for us)

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants