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
Additional context
Relevant logs from system demonstrating behaviour attached, note the log entries for Consul showing the service status around the operations performed on Vault (SIGHUP and restart).
The HAProxy entries are included since data from Consul is used by consul-template to configure HAProxy for HA. Vault_ServiceDeregistered_Logs.log
EDIT1: added additional steps around restart to reproduction steps, removed template comment from additional context section.
The text was updated successfully, but these errors were encountered:
I think I've got the same issue. It started after upgrading vault from 1.16.3 to 1.17.2
I'm using logrotate to manage the audit logs, and it sends a SIGHUP to vault, which is then causing the service deregistration. It doesn't re-register until I go in and manually restart vault.
My suspicion is the behavior was introduced by #17598
Sep 04 00:00:02 hostname systemd[1]: vault.service: Sent signal SIGHUP to main process 2354486 (vault) on client request.
Sep 04 00:00:02 hostname vault[2354486]: ==> Vault reload triggered
Sep 04 00:00:02 hostname consul[2354476]: 2024-09-04T00:00:02.244Z [INFO] agent: Deregistered service: service=vault:10.0.0.105:8200
My initial testing indicates that adding service_registration into the vault config works around this issue, but it's always been the case before that using the Consul storage backend automatically included the service registration.
Describe the bug
Service status/registration in Consul is lost on reload/SIGHUP.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Upon reload if the service is deregistered with Consul, it should be re-registered when Vault has successfully launched.
Environment:
vault status
): 1.17.3 (and 1.17.2)vault version
): 1.17.3 (and 1.17.2)Vault server configuration file(s):
Additional context
Relevant logs from system demonstrating behaviour attached, note the log entries for Consul showing the service status around the operations performed on Vault (SIGHUP and restart).
The HAProxy entries are included since data from Consul is used by consul-template to configure HAProxy for HA.
Vault_ServiceDeregistered_Logs.log
EDIT1: added additional steps around restart to reproduction steps, removed template comment from additional context section.
The text was updated successfully, but these errors were encountered: