Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

honor task user when execing into raw_exec task #9439

Merged
merged 4 commits into from
Nov 25, 2020
Merged

Conversation

notnoop
Copy link
Contributor

@notnoop notnoop commented Nov 24, 2020

Fix #9210 .

This update the executor so it honors the User when using nomad alloc exec. The bug was that the exec task didn't honor the init command when execing.

I've added a failing test first, with the failure visible in https://app.circleci.com/pipelines/github/hashicorp/nomad/13370/workflows/4ba32530-41fd-4fa0-b73b-fbc5ad76b7f8/jobs/120664 - but succeeds at the end.

Mahmood Ali added 3 commits November 24, 2020 15:46
@notnoop notnoop requested a review from tgross November 24, 2020 21:28
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! 👍

[ci skip]
@notnoop notnoop merged commit edaa165 into master Nov 25, 2020
@notnoop notnoop deleted the b-raw_exec-exec-user branch November 25, 2020 14:34
@github-actions
Copy link

github-actions bot commented Dec 8, 2022

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 Dec 8, 2022
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'nomad alloc exec' with 'raw_exec' driver doesn't respect task 'user' field
2 participants