Skip to content
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

[dev.icinga.com #11122] Connections are not cleaned up properly #3915

Closed
icinga-migration opened this issue Feb 9, 2016 · 3 comments
Closed

[dev.icinga.com #11122] Connections are not cleaned up properly #3915

icinga-migration opened this issue Feb 9, 2016 · 3 comments
Labels
Milestone

Comments

@icinga-migration
Copy link
Member

@icinga-migration icinga-migration commented Feb 9, 2016

This issue has been migrated from Redmine: https://dev.icinga.com/issues/11122

Created by jflach on 2016-02-09 14:04:33 +00:00

Assignee: jflach
Status: Resolved (closed on 2016-02-09 15:00:04 +00:00)
Target Version: 2.4.2
Last Update: 2016-02-23 09:58:45 +00:00 (in Redmine)

Icinga Version: 2.5.0
Backport?: Already backported
Include in Changelog: 1

Master: jfws
Slave: ubuntu
No other Endpoints are connected

Log 'jfws' excerpt:

[2016-02-09 14:53:39 +0100] information/ApiListener: New client connection for identity 'ubuntu'
[2016-02-09 14:53:44 +0100] information/ApiListener: New client connection for identity 'ubuntu'
[2016-02-09 14:53:49 +0100] information/ApiListener: New client connection for identity 'ubuntu'
[2016-02-09 14:53:54 +0100] information/ApiListener: New client connection for identity 'ubuntu'
[2016-02-09 14:53:59 +0100] information/ApiListener: New client connection for identity 'ubuntu'
[2016-02-09 14:54:04 +0100] information/ApiListener: New client connection for identity 'ubuntu'
[2016-02-09 14:54:09 +0100] information/ApiListener: New client connection for identity 'ubuntu'
[2016-02-09 14:54:14 +0100] information/ApiListener: New client connection for identity 'ubuntu'

Here I kill Icinga2 on 'ubuntu'

[2016-02-09 14:54:18 +0100] warning/TlsStream: TLS stream was disconnected.
[2016-02-09 14:54:18 +0100] warning/JsonRpcConnection: API client disconnected for identity 'ubuntu'
[2016-02-09 14:54:18 +0100] warning/TlsStream: TLS stream was disconnected.
[2016-02-09 14:54:18 +0100] warning/JsonRpcConnection: API client disconnected for identity 'ubuntu'
[2016-02-09 14:54:18 +0100] warning/TlsStream: TLS stream was disconnected.
[2016-02-09 14:54:18 +0100] warning/JsonRpcConnection: API client disconnected for identity 'ubuntu'
[2016-02-09 14:54:18 +0100] warning/TlsStream: TLS stream was disconnected.
[2016-02-09 14:54:18 +0100] warning/JsonRpcConnection: API client disconnected for identity 'ubuntu'
[2016-02-09 14:54:18 +0100] warning/TlsStream: TLS stream was disconnected.
[2016-02-09 14:54:18 +0100] warning/TlsStream: TLS stream was disconnected.
[2016-02-09 14:54:18 +0100] warning/TlsStream: TLS stream was disconnected.
[2016-02-09 14:54:18 +0100] warning/JsonRpcConnection: API client disconnected for identity 'ubuntu'
[2016-02-09 14:54:18 +0100] warning/JsonRpcConnection: API client disconnected for identity 'ubuntu'
[2016-02-09 14:54:18 +0100] warning/JsonRpcConnection: API client disconnected for identity 'ubuntu'
[2016-02-09 14:54:18 +0100] warning/TlsStream: TLS stream was disconnected.
[2016-02-09 14:54:18 +0100] warning/JsonRpcConnection: API client disconnected for identity 'ubuntu'

Log 'ubuntu' excerpt:

[2016-02-09 14:53:49 +0100] information/JsonRpcConnection: Reconnecting to API endpoint 'jfws' via host '192.168.56.1' and port '5665'
[2016-02-09 14:53:49 +0100] information/ApiListener: New client connection for identity 'jfws' (unauthenticated)
[2016-02-09 14:53:54 +0100] information/JsonRpcConnection: Reconnecting to API endpoint 'jfws' via host '192.168.56.1' and port '5665'
[2016-02-09 14:53:54 +0100] information/ApiListener: New client connection for identity 'jfws' (unauthenticated)
[2016-02-09 14:53:59 +0100] information/JsonRpcConnection: Reconnecting to API endpoint 'jfws' via host '192.168.56.1' and port '5665'
[2016-02-09 14:53:59 +0100] information/ApiListener: New client connection for identity 'jfws' (unauthenticated)
[2016-02-09 14:54:04 +0100] information/JsonRpcConnection: Reconnecting to API endpoint 'jfws' via host '192.168.56.1' and port '5665'
[2016-02-09 14:54:04 +0100] information/ApiListener: New client connection for identity 'jfws' (unauthenticated)

Attachments

  • ca.crt jflach - 2016-02-09 14:01:54 +00:00
  • jfws.crt jflach - 2016-02-09 14:01:54 +00:00
  • ubuntu.crt jflach - 2016-02-09 14:03:57 +00:00

Changesets

2016-02-09 14:59:19 +00:00 by jflach fa1d633

Rephrase some log messages

refs #11122

2016-02-09 14:59:19 +00:00 by jflach 19134f4

Fix client not closing connections

fixes #11122

2016-02-23 09:46:19 +00:00 by jflach 09b7f39

Fix client not closing connections

fixes #11122

2016-02-23 09:46:19 +00:00 by jflach fd85379

Rephrase some log messages

refs #11122

Parent Task: #11045

@icinga-migration
Copy link
Member Author

@icinga-migration icinga-migration commented Feb 9, 2016

Updated by jflach on 2016-02-09 14:50:54 +00:00

  • Status changed from New to Assigned
  • Assigned to set to jflach
  • Target Version set to 2.4.2
  • Parent Id set to 11045

The problem was that the master had a certificate not signed by the CA, so the client kept reconnecting to the master while not closing the old connections.
This was fixed by closing the connection on the client side.

@icinga-migration
Copy link
Member Author

@icinga-migration icinga-migration commented Feb 9, 2016

Updated by jflach on 2016-02-09 15:00:04 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset 19134f4.

@icinga-migration
Copy link
Member Author

@icinga-migration icinga-migration commented Feb 23, 2016

Updated by gbeutner on 2016-02-23 09:58:45 +00:00

  • Backport? changed from Not yet backported to Already backported
@icinga-migration icinga-migration added this to the 2.4.2 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.