Alexander A. Klimov
476da0b2c2
Add stub for event::ExecuteCommand w/ source
...
refs #8034
2020-11-20 17:38:25 +01:00
Alexander A. Klimov
f5b9905161
Add stub for /v1/actions/execute-command
...
refs #8034
2020-11-20 17:38:25 +01:00
Julian Brost
6b8a018afb
Merge pull request #8486 from Icinga/bugfix/config-sync-only-remove-files-if-timestamp-changed
...
Config sync: Only remove files, if timestamp changed
2020-11-16 17:36:42 +01:00
Noah Hilverling
f184c1bc57
Config sync: Only remove files, if timestamp changed
2020-11-16 17:33:20 +01:00
Noah Hilverling
c40a4c5cbc
Merge pull request #8475 from Icinga/bugfix/replay-log-blocks
...
Start ApiListener#SyncClient() in the thread pool
2020-11-16 14:34:40 +01:00
Noah Hilverling
cd819e3801
Merge pull request #8473 from Icinga/bugfix/message-routing-for-global-zones-2.11
...
Fix cluster message routing for global zones
2020-11-16 14:32:52 +01:00
Julian Brost
de44bf5e71
Close anonymous connections after 10 seconds
...
Anonymous connections are normally only used for requesting a
certificate and are closed after this request is received. However, the
request is only sent if the child has successfully verified the
certificate of its parent so that it is an authenticated connection from
its perspective. In case this verification fails, both ends view it as
an anonymous connection and never actually use it but attempt a
reconnect after 10 seconds leaking the connection. Therefore close it
after a timeout.
2020-11-13 16:33:04 +01:00
Alexander A. Klimov
ba87ae8109
Start ApiListener#SyncClient() in the thread pool
...
... not hosting the coroutines not to block them.
Otherwise a large replay log would block messages sending
until the peer disconnects us.
2020-11-12 14:14:20 +01:00
Julian Brost
1adfe851b1
Fix cluster message routing for global zones
...
RelayMessageOne used to relay the message only to one other endpoint for
other zones, which is fine, as long as the target zone is a child/parent
zone but breaks if the target zone is a global one. In this case, the
message has to be forwarded within the local zone as well as to one node
in each child zone.
2020-11-12 09:49:56 +01:00
Noah Hilverling
d80eb89908
Merge pull request #8457 from Icinga/bugfix/replay-object-deletion-2.11
...
Log config object deletions to replay log
2020-11-10 11:31:49 +01:00
Alexander Aleksandrovič Klimov
97cda44e7d
Merge pull request #8399 from Icinga/feature/one-connection
...
ApiListener#NewClientHandlerInternal(): reject connections from already connected endpoints
2020-11-10 11:17:21 +01:00
Alexander Aleksandrovič Klimov
3c97ab6d47
Merge pull request #8454 from Icinga/feature/http-status-codes-in-icinga-mainlog-7053
...
Include HTTP status codes in log
2020-11-10 11:13:26 +01:00
Noah Hilverling
b2a235c54a
API: Don't accept object updates for unknown zone
2020-11-09 16:21:40 +01:00
Julian Brost
b330d8a74e
Log config object deletions to replay log
...
The initial config object sync for each new connection (in
`ApiListener::SendRuntimeConfigObjects()`) only considers currently
existing objects and has no way to pass the information that objects
were deleted in the meantime.
This commit logs config object deletions to the replay log if required
so that there is a chance that it will be propagated to nodes that were
offline when the deletion happened.
Note that this can only be considered a workaround as the replay log
might be pruned or could even be completely disabled. Also, there still
seems to be a race-condition between the config sync and replay log of
multiple new connections at the same time.
2020-11-09 15:55:51 +01:00
Alexander A. Klimov
29e5d7def7
Include HTTP status codes in log
...
refs #7053
2020-11-09 10:20:13 +01:00
Alexander A. Klimov
38110e55d3
ApiListener#NewClientHandlerInternal(): reject connections from already connected endpoints
2020-10-26 15:20:58 +01:00
Noah Hilverling
c5b4b73de0
IDO: Do not log stats, if paused
2020-10-15 09:58:39 +02:00
Alexander A. Klimov
8fff42c73d
Buildfix
2020-10-13 16:36:10 +02:00
Alexander Aleksandrovič Klimov
5ee7eb8f29
Merge pull request #8316 from Icinga/bugfix/ido-hash-groups
...
*DbObject#CalculateConfigHash(): sort groups to be hashed
2020-10-13 14:54:05 +02:00
Julian Brost
c5ce54918e
Catch exceptions in the thread running HandleConfigUpdate
...
With dc3062a9b06fed69cdbb1508ace6eb2f77f87553, exceptions in this code
path were no longer caught properly. This commit restores exception
handling for this function.
2020-10-13 14:27:47 +02:00
Alexander Aleksandrovič Klimov
dd8b786b3b
Merge pull request #8292 from Icinga/bugfix/icinga2-doesn-t-close-connections-7203-211
...
Add timeout for boost::asio::ssl::stream#async_shutdown()
2020-10-13 13:58:39 +02:00
Alexander Aleksandrovič Klimov
3b398fd7bb
Merge pull request #8300 from Icinga/bugfix/reminder-notifications-before-suppressed-8201
...
Don't send reminder notifications before suppressed ones
2020-10-13 13:57:26 +02:00
Alexander Aleksandrovič Klimov
727a9a61f0
Merge pull request #8298 from Icinga/bugfix/ido-commit-25000
...
IDO MySQL: actually COMMIT after 25000 async queries
2020-10-13 13:55:13 +02:00
Alexander Aleksandrovič Klimov
9e40e39b56
Merge pull request #8305 from Icinga/bugfix/do-not-update-customvar-status-on-heavy-config-update
...
Do not upsert customvar status on heavy config update
2020-10-13 13:53:41 +02:00
Alexander Aleksandrovič Klimov
a237dedaea
Merge pull request #8325 from Icinga/feature/improve-ido-logging
...
Improve new IDO logging
2020-10-13 13:52:11 +02:00
Alexander A. Klimov
cb00a7fd6a
*DbObject#CalculateConfigHash(): sort groups to be hashed
...
... to ensure consistent hashes across config reloads.
This will likely cause a heavy update once for all objects in >1 group,
but it will ensure that this happens the last time.
2020-10-13 13:47:49 +02:00
Julian Brost
21b30322c9
Merge pull request #8308 from Icinga/bugfix/configsyncstagelock-unlock-owner
...
Make ApiListener::m_ConfigSyncStageLock a SpinLock
2020-10-13 13:37:08 +02:00
Alexander Aleksandrovič Klimov
e62c6c7f05
Merge pull request #8303 from Icinga/bugfix/revert-fix-duplicate-entry-error
...
Revert: Fix duplicate entry error
2020-10-13 12:27:53 +02:00
Noah Hilverling
22c14fd964
IDO: Always insert customvar status on heavy config update
2020-10-13 08:54:58 +02:00
Noah Hilverling
f935fc9b40
IDO-Logging: Increase logging threshold for nearly empty queue
2020-10-13 08:21:03 +02:00
Noah Hilverling
bd8339ed46
IDO-Logging: Don't log when not connected
2020-10-13 08:21:03 +02:00
Noah Hilverling
070c42acab
IDO-Logging: Remove useless ETA
2020-10-13 08:21:03 +02:00
Noah Hilverling
74aa99f575
IDO-Logging: Add log timeout to log every 5 minutes
2020-10-13 08:20:58 +02:00
Noah Hilverling
51c343630f
IDO: Make sure to insert program status during reconnect()
2020-10-09 12:52:27 +02:00
Alexander A. Klimov
b6b3ac0ab8
Make ApiListener::m_ConfigSyncStageLock a SpinLock
2020-10-02 17:54:36 +02:00
Alexander A. Klimov
0abcf7ea6f
Introduce SpinLock
2020-10-02 17:54:36 +02:00
Noah Hilverling
06d2117945
Revert "IDO: customvariables: fix duplicate entry error"
...
This reverts commit bd2b565a1c6a76cc5fdc479ce8e816a7386ed193.
2020-10-01 10:28:37 +02:00
Alexander A. Klimov
0a1a286913
Don't send reminder notifications before suppressed ones
...
refs #8201
2020-09-30 10:30:21 +02:00
Alexander A. Klimov
6430eef72b
IDO MySQL: actually COMMIT after 25000 async queries
2020-09-29 16:34:26 +02:00
Alexander A. Klimov
b24f438daa
Add timeout for boost::asio::ssl::stream#async_shutdown()
...
refs #7203
2020-09-28 15:39:33 +02:00
Alexander A. Klimov
186a9e95f7
Generalize I/O timeout emulation
2020-09-28 15:39:29 +02:00
Henrik Triem
d9e453fe8a
IDO: Implement more accurate logging for query stats
2020-09-22 14:36:00 +02:00
Henrik Triem
3468191450
WorkQueue: Allow choosing stats log level
2020-09-22 14:35:51 +02:00
Noah Hilverling
b1e52be8f0
Merge pull request #8241 from Icinga/bugfix/duplicate-entry
...
IDO: customvariables: fix duplicate entry error
2020-09-21 13:57:39 +02:00
Alexander A. Klimov
bd2b565a1c
IDO: customvariables: fix duplicate entry error
2020-09-17 10:35:44 +02:00
Noah Hilverling
198090d072
Merge pull request #8230 from Icinga/bugfix/open-connections-2116
...
Fix open connections when agent waits for CA approval
2020-09-14 09:32:31 +02:00
Alexander A. Klimov
a3626d8980
Buildfix
2020-09-11 17:07:40 +02:00
Alexander Aleksandrovič Klimov
b5123e3c25
Merge pull request #8226 from Icinga/bugfix/downtime-checkable-getname
...
Check !!downtime->GetCheckable() before downtime->GetCheckable()->GetName()
2020-09-11 16:44:02 +02:00
Alexander A. Klimov
89c188996b
RequestCertificateHandler(): don't disconnect nodes already integrated into the cluster
...
... not to cause a reconnect loop.
2020-09-11 16:19:43 +02:00
Michael Insel
0ed108bfa2
Fix open connections when agent waits for CA approval
...
This closes the agent connection when the certificate sign requests
waits for CA approval.
refs #7680
2020-09-11 16:17:37 +02:00