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 a no_overlay option for the rkt task config. #2694

Closed
wants to merge 4 commits into from

Conversation

kmalec
Copy link
Contributor

@kmalec kmalec commented Jun 7, 2017

Directly relates to rkt/rkt#1922 - for various reasons, I have to keep up with RHEL 7 systems, and --no-overlay for rkt run seems to help with the bug above.

Copy link
Member

@schmichael schmichael left a comment

Choose a reason for hiding this comment

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

Have you built Nomad and tested this feature on an affected system?

@@ -88,6 +88,9 @@ The `rkt` driver supports the following configuration in the job spec:

* `debug` - (Optional) Enable rkt command debug option.

* `no_overlay` - (Optional) When enabled, will use --no-overlay=true flag for 'rkt run'.
Copy link
Member

Choose a reason for hiding this comment

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

Backticks around the command line flag:

... use `--no-overlay=true` flag for ...

@kmalec
Copy link
Contributor Author

kmalec commented Jun 7, 2017

The build I actually have running, but checking some test jobs from yesterday, I see a few alloc/UUID/task-name/secrets leftover tmpfs mounts in one of the systems.
rkt gc runs fine now, so --no-overlay hopefully helps, but I'm not sure where those secrets mounts come from. My environment is a bit volatile right now, maybe unrelated to this change.

@schmichael
Copy link
Member

Fixed conflicts and am waiting on Travis.

@kmalec
Copy link
Contributor Author

kmalec commented Jun 9, 2017

Okay, I did some more basic tests with a simple centos7 ACI on RHEL7.3 host.

  • the no_overlay option resolves the GC issue referenced in the commit - for the price of performance hit of not using overlayfs, I can now rkt gc without those Device or resource busy on stage2 rootfs
  • the leaking mountpoints of Nomad (tmpfs tmpfs 1.0M 0 1.0M 0% /data/nomad-data/alloc/e81f7fec-0d56-5970-6af2-3019343201b9/linuk-task/secrets) don't seem to be caused by this commit, as they happen with 0.5.6 client agent too. Not sure if that's tracked yet.

Was just worried this PR could be the cause of those mountpoints, but no :)

@schmichael schmichael mentioned this pull request Jun 9, 2017
@schmichael
Copy link
Member

Closing in favor of #2702 -- I had to fix a merge conflict and needed to push up the changes. Sorry! Will get #2702 merged as soon as Travis passes.

@schmichael schmichael closed this Jun 9, 2017
@github-actions
Copy link

github-actions bot commented Apr 1, 2023

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 Apr 1, 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.

None yet

2 participants