Confusing error message while reloading the configuration with the SIGHUP signal. #194
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-http-gw#194
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If the configuration file in the "server" section describes addresses without TLS support, then when the configuration is reloaded with the SIGHUP signal, a confusing message is written to the log: "failed to reload server parameters {"error": "invalid servers configuration: no known server found"}".
Expected Behavior
When restarting the configuration without TLS support, no confusing messages are written to the log.
Current Behavior
When restarting the configuration without TLS support, a confusing message is written to the log: "failed to reload server parameters {"error": "invalid servers configuration: no known server found"}".
Possible Solution
Steps to Reproduce (for bugs)
Yay! I'm not the only one!
This behavior is confusing but known and documented. SIGHUP reloading is not supported for
server
endpoints. I've tripped over this too: #168Yes, but this message only appears if there are no TLS server endpoints in the configuration. If the "server.address.tls.enabled" flag is set, nothing unnecessary is written to the log. I think it would be a good idea to avoid displaying the above error message in cases where a non-TLS configuration is used.
Ah, it's a separate thing then. I've misread the OP.
@KurlesHS Is this applicable for S3 Gateway too?
Yes, in s3-gw, the method responsible for updating server endpoint settings is one-to-one, as in http-gw.