-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Nomad's native service registration fails if raw_exec and docker drivers are combined in the same task group #13483
Comments
Hi @groggemans and thanks for raising this issue along with a great reproduction. I have been able to confirm this problem locally and have identified the fix required. I will raise a PR shortly with this once I have written a test case to cover this behaviour. |
@jrasell is this supposed to be part of 1.3.2? in any case i am still observing it there too with the following job
|
Ah sorry for that. Yes, the initial plan was to have it shipped in 1.3.2 but the backport never happened, so this was shipped in 1.3.4. Apologies for the confusion. |
i can confirm this now works in 1.3.5 |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Nomad version
Nomad v1.3.1 (2b054e3)
Operating system and Environment details
Linux + docker
Issue
Using native service registration fails if a raw_exec and docker tasks are combined.
(using two docker tasks in the same task group isn't an issue)
Reproduction steps
Below example jobs runs two counting loops in a sh script, one in a container, the other directly on the host.
There is a dummy port and service registration that's not actually used, but that does not make a difference. (The initial discovery was with a job that actually used the port, but it's not needed to replicate the behavior)
I discovered it with a pretask hook as the raw_exec task, but using an actually long living task seems to have the same effect.
Expected Result
The service is registered and can be checked with
nomad service list
.Actual Result
The service fails to register with below error;
Job file (if appropriate)
The text was updated successfully, but these errors were encountered: