Nomad native service health checks fail when using interpolated service address in job #18574
Labels
stage/accepted
Confirmed, and intend to work on. No timeline committment though.
theme/service-discovery/nomad
theme/service-discovery
type/bug
Projects
Nomad version
1.6.2
Issue
Reproduction steps
Expected Result
The health checker uses the variable address from the service catalog (/v1/service/:name output:)
![Screenshot_2023-09-25_at_6 34 35_PM](https://private-user-images.githubusercontent.com/5265661/270510918-da1568a9-f183-4939-ac36-c3e7e810b54f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ2OTU3MjIsIm5iZiI6MTcyNDY5NTQyMiwicGF0aCI6Ii81MjY1NjYxLzI3MDUxMDkxOC1kYTE1NjhhOS1mMTgzLTQ5MzktYWMzNi1jM2U3ZTgxMGI1NGYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjZUMTgwMzQyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzE1ZDFmN2E4MDJkY2NjNzM5ZWU0OGM3YTQ5OGExNjZjMDIwMTQ1MDg1YTAzMGQ2ZmRmMWIzN2I0M2ZhMjVhMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.MIwSxAtRg534V2LGXohWV8CHSBewxGWgtPrHVObEKQI)
Actual Result
The health checks always fail with a parse error (using the string literal value)
Job file (if appropriate)
The text was updated successfully, but these errors were encountered: