Commit Graph

342 Commits

Author SHA1 Message Date
Jean Flach 4cf33b74f2 Fix delete object handler returning incorrect status codes
Now a 200 OK only gets returned if all objects could be deleted

fixes #10770
2016-03-11 15:59:52 +01:00
Gunnar Beutner a39fc993e6 Build fix 2016-02-23 10:56:12 +01:00
Jean Flach debdaceb44 Fix another compiler warning
fixes #10956
2016-02-23 10:54:34 +01:00
Gunnar Beutner 8798c34283 Fix compiler warning
fixes #10956
2016-02-23 10:54:34 +01:00
Jean Flach fd85379f5c Rephrase some log messages
refs #11122
2016-02-23 10:46:19 +01:00
Jean Flach 09b7f39e86 Fix client not closing connections
fixes #11122
2016-02-23 10:46:19 +01:00
Gunnar Beutner c415dd3468 Remove redundant log messages
refs #10963
2016-02-23 10:46:18 +01:00
Gunnar Beutner 80fdccc43a Add missing SetSyncing() call
refs #10963
2016-02-23 10:46:18 +01:00
Gunnar Beutner 3cfa8718b4 Skip log replay for endpoints with log_duration = 0
refs #10963
2016-02-23 10:46:17 +01:00
Gunnar Beutner b227dc77bf Check the certificate name when reconnecting to an instance
refs #10963
2016-02-23 10:46:17 +01:00
Jean Flach e80b335edf Plug two memory leaks
refs #10963
2016-02-23 09:57:40 +01:00
Jean Flach 0a6f15c475 Replace boost-base64 with an openssl implementation
Also add unit tests

fixes #10714
2016-02-23 09:57:18 +01:00
Gunnar Beutner 80b8bdc640 Fix: Cluster WQ thread dies after fork()
fixes #11118
2016-02-23 09:44:44 +01:00
Michael Friedrich a30b112391 ApiListener: Bail out if object could not be created during config sync
refs #11006
2016-02-23 09:44:26 +01:00
Gunnar Beutner 2f948ca8ca Fix crash in ApiListener::ConfigUpdateObjectAPIHandler
fixes #11006
2016-02-23 09:44:26 +01:00
Jean Flach c1b4a8b757 Remove unused variables
fixes #11111
2016-02-23 09:44:05 +01:00
Michael Friedrich c3dc3e6ec6 Fix: API queries on non-existant objects cause exception
fixes #11088
2016-02-23 09:38:39 +01:00
Gunnar Beutner 9a0107d360 Fix memory/thread leak in the HttpServerConnection class
fixes #10655
2016-02-23 09:38:23 +01:00
Gunnar Beutner b6a799d53e Ensure that HttpServerConnections are properly closed
fixes #10655
2016-02-23 09:38:05 +01:00
Gunnar Beutner b3b2eb856b Make sure the "syncing" attribute is set to false
refs #11083
2016-02-23 09:35:57 +01:00
Michael Friedrich a7142252fa Ensure that config sync updates are always sent on reconnect
fixes #11083
2016-02-23 09:35:47 +01:00
Gunnar Beutner 60181e0abb Fix deadlock in HttpClientConnection::DataAvailableHandler
refs #11014
2016-02-23 09:32:38 +01:00
Gunnar Beutner 4ae0681ffa Fix incorrect method call in JsonRpcConnection::MessageHandler
refs #11014
2016-02-23 09:32:38 +01:00
Gunnar Beutner 55720f3005 Fix deadlock in {HttpServerConnection,JsonRpcConnection}::DataAvailableHandler
refs #11014
2016-02-23 09:32:36 +01:00
Gunnar Beutner 85c962a587 Decode cluster messages in the WorkQueue threads
refs #11014
2016-02-23 09:31:52 +01:00
Gunnar Beutner d1b705613d Use multiple WorkQueues to process cluster messages
refs #11014
2016-02-23 09:31:52 +01:00
Gunnar Beutner 864cdee8d9 Improve performance for ApiListener::RelayMessageOne
refs #11014
2016-02-23 09:31:52 +01:00
Gunnar Beutner f9efc2ffe7 Improve the performance for ApiListener::SyncRelayMessage (part 2)
refs #11014
2016-02-23 09:31:52 +01:00
Gunnar Beutner 0d5592a615 Improve performance for ApiListener::SyncRelayMessage
refs #11014
2016-02-23 09:31:52 +01:00
Gunnar Beutner e7a1c83004 Ignore the .timestamp file when determining whether the zone config has changed (second attempt)
refs #11014
2016-02-23 09:31:51 +01:00
Gunnar Beutner 12b5e332e4 Ignore the .timestamp file when determining whether the zone config has changed
refs #11014
2016-02-23 09:31:51 +01:00
Gunnar Beutner b7a152ef48 Make sure the updated config sync works with old versions of Icinga 2
refs #11014
2016-02-23 09:31:51 +01:00
Gunnar Beutner c6be1c90aa Make sure the .timestamp file is synced for config updates
refs #11014
2016-02-23 09:31:51 +01:00
Michael Friedrich 8859242c5b Fix cluster config timestamp again
refs #11014
2016-02-23 09:31:51 +01:00
Michael Friedrich f7df3beb38 Fix cluster config sync timestamp
refs #11014
2016-02-23 09:31:51 +01:00
Gunnar Beutner fbc638e0b8 Make sure we only have one connection per satellite
refs #11014
2016-02-23 09:31:51 +01:00
Gunnar Beutner 5c23beb6a9 Use MkDirP instead of MkDir when syncing zone configs
fixes #10932
2016-02-23 09:28:37 +01:00
Michael Friedrich 91e1e9d93e Use a work queue for replaying the cluster log
refs #10713
2016-02-23 09:25:48 +01:00
Gunnar Beutner 93834623a0 Fix incorrect return value for ApiListener::GetInstance
refs #10711
2016-02-23 09:25:35 +01:00
Michael Friedrich eda28b219d Improve performance for Zone::CanAccessObject
fixes #10711
2016-02-23 09:25:27 +01:00
Michael Friedrich 48fe703017 Fix cluster config sync for (non-)authoritative configs
Details: https://dev.icinga.org/issues/10819#note-39

refs #10819
2016-02-23 09:09:55 +01:00
Michael Friedrich f0a1872e3b Add more debug logging for api package config sync
refs #10819
2016-02-23 09:09:55 +01:00
Michael Friedrich 1f5a216a01 Fix that cluster config sync ignores zones.d directory from API config packages
fixes #10819
2016-02-23 09:09:55 +01:00
Gunnar Beutner a40fc653ef Implement support for priorities in the WorkQueue class
fixes #8714
2016-02-23 09:09:06 +01:00
Gunnar Beutner c544c686a8 Update copyright headers for 2016 2016-01-12 08:31:24 +01:00
Gunnar Beutner 33fbd6c877 Fix race condition in the ConfigItem class
fixes #10643
2015-11-25 13:22:32 +01:00
Michael Friedrich 6518f78af0 Fix attribute validation for PUT queries
fixes #10601
2015-11-12 10:13:46 +01:00
Michael Friedrich 284a10150b Fix attributes names for joins; update documentation
refs #10551
fixes #10576
2015-11-11 13:50:47 +01:00
Gunnar Beutner b2364884d8 Check whether config file exists before trying to create object
fixes #10602
2015-11-11 10:25:18 +01:00
Gunnar Beutner 356c4cc170 Don't allow users to set internal attributes via PUT
fixes #10601
2015-11-11 08:41:49 +01:00