Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.
After registering a service with checks at the agent/service/register endpoint, the check definition is not reflected when using the agent health/service/id/:service-id endpoint.
@Wnthr , looking into this. The check definitions - DeregisterCriticalServiceAfter, interval, TCP are in output with default values, actual values provided during service registration are not displayed in output.
Overview of the Issue
After registering a service with checks at the
agent/service/register
endpoint, the check definition is not reflected when using theagent health/service/id/:service-id
endpoint.Reproduction Steps
Steps to reproduce this issue, eg:
Registering service using
curl --request PUT --data @pulp-lb.json http://127.0.0.1:8500/v1/agent/service/register?replace-existing-checks=true
Output from
http://127.0.0.1:8500/v1/agent/health/service/id/pulp-lb
Consul info for Client (no Server in test setup)
Client info
``` # consul info agent: check_monitors = 6 check_ttls = 0 checks = 10 services = 4 build: prerelease = revision = 7736539d version = 1.17.2 version_metadata = consul: acl = disabled bootstrap = true known_datacenters = 1 leader = true leader_addr = 10.0.0.100:8300 server = true raft: applied_index = 14527 commit_index = 14527 fsm_pending = 0 last_contact = 0 last_log_index = 14527 last_log_term = 10 last_snapshot_index = 0 last_snapshot_term = 0 latest_configuration = [{Suffrage:Voter ID:25010851-3a85-32f0-a6d0-fcf94dd3f0e5 Address:10.0.0.100:8300}] latest_configuration_index = 0 num_peers = 0 protocol_version = 3 protocol_version_max = 3 protocol_version_min = 0 snapshot_version_max = 1 snapshot_version_min = 0 state = Leader term = 10 runtime: arch = amd64 cpu_count = 2 goroutines = 223 max_procs = 2 os = linux version = go1.21.6 serf_lan: coordinate_resets = 0 encrypted = false event_queue = 1 event_time = 10 failed = 0 health_score = 0 intent_queue = 1 left = 0 member_time = 10 members = 1 query_queue = 0 query_time = 1 serf_wan: coordinate_resets = 0 encrypted = false event_queue = 0 event_time = 1 failed = 0 health_score = 0 intent_queue = 0 left = 0 member_time = 1 members = 1 query_queue = 0 query_time = 1 ``` Client config JSON ``` { "retry_join" : ["10.0.0.100"], "data_dir": "/opt/consul/data", "log_level": "INFO", "server": true, "node_name": "master", "addresses": { "https": "10.0.0.100" }, "bind_addr": "10.0.0.100", "ui": true, "bootstrap_expect": 1 } ```Operating system and Environment details
Log Fragments