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

After uninstalling Nomad file locks on the "alloc secrets" directory persists #8814

Open
idrennanvmware opened this issue Sep 2, 2020 · 2 comments
Labels
stage/accepted Confirmed, and intend to work on. No timeline committment though. stage/duplicate theme/client type/bug

Comments

@idrennanvmware
Copy link
Contributor

Nomad version

Nomad v0.12.0 (8f7fbc8)

Operating system and Environment details

PhotonOS3

Issue

After draining a node of allocations, and stopping the Nomad agent entirely - file locks persist on the secrets folders for allocs.

We verified this by logging in to the vm and we are unable to remove the directories from even the command line (see output)

rm: cannot remove '/opt/nomad/alloc/41cf69f3-6a66-9b68-c100-b207e61d9bcf/telegraf-statsd-logging-task/secrets': Device or resource busy
rm: cannot remove '/opt/nomad/alloc/41cf69f3-6a66-9b68-c100-b207e61d9bcf/run-telegraf-with-statsd/secrets': Device or resource busy
rm: cannot remove '/opt/nomad/alloc/45375c6f-ee38-6ef0-73a1-f1dae791046a/fabio/secrets': Device or resource busy
rm: cannot remove '/opt/nomad/alloc/946bc1fa-d8ea-6c05-ed37-b258a4d64b26/journalbeat-task/secrets': Device or resource busy
rm: cannot remove '/opt/nomad/alloc/946bc1fa-d8ea-6c05-ed37-b258a4d64b26/filebeat-task/secrets': Device or resource busy

@idrennanvmware idrennanvmware changed the title After uninstalling Nomad file locks on the "allocs/xxx/secrets" directory persists After uninstalling Nomad file locks on the "alloc secrets" directory persists Sep 2, 2020
@tgross
Copy link
Member

tgross commented Sep 2, 2020

Hi @idrennanvmware! This looks to be another case of #7848. If the client node doesn't get a chance to GC before it's shut down, it's leaving these tmpfs mounts for secrets behind.

@tgross tgross added type/bug theme/client stage/duplicate stage/accepted Confirmed, and intend to work on. No timeline committment though. labels Sep 2, 2020
@idrennanvmware
Copy link
Contributor Author

Gotcha! Thanks @tgross

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage/accepted Confirmed, and intend to work on. No timeline committment though. stage/duplicate theme/client type/bug
Projects
Status: Needs Roadmapping
Development

No branches or pull requests

2 participants