-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Icinga 2 reconnects in a loop for self-signed certificates #7680
Comments
|
This closes the agent connection when the certificate sign requests waits for CA approval. refs #7680
Unfortunately this is not related to the TLS context issue. This issue is about connections which are held open when the Agent/Client is waiting for the certificate sign approval. Every 10 seconds the reconnect timer jumps in and opens a connection, but won't close it. You can reproduce this with the following setup: Master:
Agent:
On the master we started the Icinga 2 daemon in the background so we can monitor the open files/connections:
You will notice that the open files will increase over time (every ~10s by one). When you close the Icinga 2 daemon on the Agent you will also notice that the connections on the master got closed:
(If you wait longer there will be more closed connections). |
This closes the agent connection when the certificate sign requests waits for CA approval. refs #7680
This closes the agent connection when the certificate sign requests waits for CA approval. refs #7680
I see lots of reconnects in an environment, where I have lots of agents that haven't been set up correctly and the certificate is not signed yet, or by another CA.
Icinga 2 reconnects until the open file limit is reached (16384) !!
This might be related to #7532
For now I had to turn of the master connecting to anything...
ref/NC/622991
lsof
log
Your Environment
Include as many relevant details about the environment you experienced the problem in
icinga2 --version
): 2.11.2-1The text was updated successfully, but these errors were encountered: