Patroni is gone from Consul GUI after set "verify_client" as requrired in Patroni
- Dominant language
- Go
- Stars
- 30.1k
- Forks
- 4.6k
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 39
Description
When filing a bug, please include the following headings if possible. Any example text in this template can be deleted.
#### Overview of the Issue
I am using Patroni together with Consul. Everything is running fine till I set "verify_client" as "required" in Patroni, this will check the client certificate for any rest APIs, including Consul's. Once it is enabled, the Patroni service is gone from Consul's GUI with error
#### Reproduction Steps
Set "verify_client" as "required" in patroni.
### Consul info for both Client and Server
Consul client info:

### Operating system and Environment details
RHEL 8.6
### Log Fragments
```
2022-08-29T14:29:27.018+0800 [INFO] agent: Synced check: check=service:pgcluster/[patroni hostname]
2022-08-29T14:35:18.543+0800 [INFO] agent: Synced check: check=service:pgcluster/[patroni hostname]
2022-08-29T14:36:59.559+0800 [INFO] agent: Deregistered service: service=pgcluster/[patroni hostname]
2022-08-29T14:38:12.256+0800 [ERROR] agent.http: Request error: method=PUT url=/v1/agent/service/deregister/pgcluster/[patroni hostname] from=[patroni host ip]:46508 error="Unknown service ID "pgcluster/[patroni hostname]". Ensure that the service ID is passed, not the service name."
2022-08-29T14:38:12.264+0800 [ERROR] agent.http: Request error: method=PUT url=/v1/agent/service/deregister/pgcluster/[patroni hostname] from=[patroni host ip]:46508 error="Unknown service ID "pgcluster/[patroni hostname]". Ensure that the service ID is passed, not the service name."
2022-08-29T14:38:13.045+0800 [INFO] agent: Synced service: service=pgcluster/[patroni hostname]
2022-08-29T14:38:14.738+0800 [WARN] agent: Check is now critical: check=service:pgcluster/[patroni hostname]
2022-08-29T14:38:29.742+0800 [WARN] agent: Check is now critical: check=service:pgcluster/[patroni hostname]
```
Contributor guide
Research direction
No source file, test, or entry point is identified. Reproduce the issue by enabling Patroni's "verify_client" setting as "required" with Consul on RHEL 8.6, then inspect the reported registration and deregistration logs; done means the Patroni service remains visible in Consul's GUI without critical health checks.
Written by the indexing model from the issue text.
Assessment
- Domain
- distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100