-
Notifications
You must be signed in to change notification settings - Fork 570
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
icinga2 pki request does not invoke JSON RPC #6981
Comments
Hello @kbabioch and thank you for reporting! It sounds like we've already done the solution for your problem. Best, |
Ok, just let me know if there is something for me to test. I'm really interested in what is causing this ;-). |
This issue seems to have been addressed by #7005. |
@kbabioch snapshot packages are available, in order to test please follow the instructions at https://icinga.com/docs/icinga2/snapshot/doc/21-development/#snapshot-packages-nightly-builds |
I consider this being fixed with 2.11. |
I've noticed that getting certificates signed using the
pki
subcommand and the API on the master node, is unreliable and often times out. Invoking the same command multiple times will eventually work.The basic setup looks like this. I'm not using any tickets here on purpose, to keep it as simple as possible.
Icinga 2 running on
mon1
withapi
feature, which looks something like this:icinga2
onmon1
icinga2 feature enable debuglog
icinga2 feature enable mainlog
icinga2 api setup
icinga2
On the client node (
client1
), I'm essentially doing this:icinga2
onclient1
The last command seems to be not working reliable. Sometimes it works, sometimes it times out.
Expected Behavior
I expect to have a CSR request on the master node (
icinga ca list
), which I can then manually sign. On the client this looks something like this:On the server this is happening:
Note that in this case, after the initial handshake the JSON RPC request for signing a certificate can be seen.
Current Behavior
Most of the time there will be no such request, though. The command simply times out on the client after 10 seconds, with the following error message:
The debug log on the server looks like this:
Note that after the initial handshare there is no JSON RPC request, and nothing seems to happen.
Possible Solution
Sometimes it helps to restart the server and re-running the same command multiple times. Usually it will work after a couple of times.
Context
I've initially stumbled upon this bug, since the
icinga2 node wizard
command was not working for me in some cases. I could narrow it down to the instructions mentioned above.Your Environment
The text was updated successfully, but these errors were encountered: