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

client: cleanup empty task directory when using unveil filesystem isolation #23237

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

shoenig
Copy link
Member

@shoenig shoenig commented Jun 6, 2024

This PR fixes a bug where Nomad client would leave behind an empty directory
created on behalf of tasks making use of the unveil filesystem isolation
mode (i.e. using exec2 task driver). Once unmounting is complete, we should
remember to also delete the directory.

Fixes #22433

…lation

This PR fixes a bug where Nomad client would leave behind an empty directory
created on behalf of tasks making use of the unveil filesystem isolation
mode (i.e. using exec2 task driver). Once unmounting is complete, we should
remember to also delete the directory.

Fixes #22433
@shoenig shoenig force-pushed the cleanup-task-parent-alloc-mounts-dir branch from 8f52e82 to 9460cbc Compare June 6, 2024 13:30
@shoenig shoenig added this to the 1.8.1 milestone Jun 6, 2024
@shoenig shoenig marked this pull request as ready for review June 6, 2024 13:57
@shoenig shoenig requested review from tgross and jrasell June 6, 2024 13:57
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@shoenig shoenig merged commit 45da80b into main Jun 6, 2024
19 checks passed
@shoenig shoenig deleted the cleanup-task-parent-alloc-mounts-dir branch June 6, 2024 15:47
@shoenig shoenig added the backport/1.8.x backport to 1.8.x release line label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.8.x backport to 1.8.x release line
Projects
None yet
Development

Successfully merging this pull request may close these issues.

task directories under alloc_mounts are left behind
2 participants