You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Windows Server 2019 Standard 1809
Also reproduced on Windows 10 Enterprise with dev agent
Issue
Nomad's native service discovery fails to register a service when the service stanza is in a main task and the job has an init task. Both tasks use the raw_exec driver. Nomad fails with the error message "task_services: rpc error: rpc error: service registration insert failed: object missing primary index". The task is not marked as failed.
Moving the service stanza to the task group works.
Seems similar to #13483 (and the linked issue #13493) but this is for two raw_exec tasks instead.
Reproduction steps
Run the first job file below. See error either in ui or server log.
Moving the service stanza to the outer task group works. Run the second job file below.
Expected Result
The service is discoverable:
$ nomad service list
Service Name Tags
some-service []
Actual Result
An error is logged and the service isn't discoverable:
$ nomad service list
No service registrations found
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.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Nomad version
Nomad v1.3.3 (428b2cd)
Operating system and Environment details
Windows Server 2019 Standard 1809
Also reproduced on Windows 10 Enterprise with dev agent
Issue
Nomad's native service discovery fails to register a service when the service stanza is in a main task and the job has an init task. Both tasks use the raw_exec driver. Nomad fails with the error message "task_services: rpc error: rpc error: service registration insert failed: object missing primary index". The task is not marked as failed.
Moving the service stanza to the task group works.
Seems similar to #13483 (and the linked issue #13493) but this is for two raw_exec tasks instead.
Reproduction steps
Run the first job file below. See error either in ui or server log.
Moving the service stanza to the outer task group works. Run the second job file below.
Expected Result
The service is discoverable:
Actual Result
An error is logged and the service isn't discoverable:
Job file (if appropriate)
With service stanza in task:
The actual "work" is just dummy scripts.
With service stanza in task group:
Nomad Server logs (if appropriate)
Reproducing the error on the dev-agent prints the following to the log:
The text was updated successfully, but these errors were encountered: