12971 Commits

Author SHA1 Message Date
Alexander Aleksandrovič Klimov
c5d66b5150
Merge pull request #9399 from Icinga/feature/add-name-suffix-to-columns-referring-to-name-2.13
IcingaDB: Add `_name` suffix to columns referring to name
2022-06-23 11:30:28 +02:00
Yonas Habteab
524235872c Bump Redis schema version to 5 2022-06-14 15:07:02 +02:00
Yonas Habteab
7e12927b8a IcingaDB: Add _name suffix to columns referring to name 2022-06-14 15:07:02 +02:00
Julian Brost
b3d447fd49
Merge pull request #9360 from Icinga/feature/windows-boost-1.79-2.13
Windows: update boost to version 1.79.0
2022-06-14 14:27:39 +02:00
Julian Brost
7e93de2ec5
Merge pull request #9356 from Icinga/bugfix/suppressed-notifications-host-dependency-2.13
Take host state into account when sending suppressed notifications
2022-06-14 14:25:45 +02:00
Julian Brost
281aeb980b Windows: update boost to version 1.79.0 2022-04-27 13:46:18 +02:00
Julian Brost
d56afbc51a Take host state into account when sending suppressed notifications
Checkable::FireSuppressedNotifications() compares the time of the current
checkable with the last recovery time of parents to avoid notification right
after a parent recovered and before the current checkable was checked.

This commit makes this check also include to host if the checkable is a
service.  This makes the behavior consistent with the documentation that states
there is an implicit dependency on the host (which isn't realized as implicitly
generating a Dependency object unfortunately).
2022-04-22 12:04:46 +02:00
Julian Brost
862057d7fe
Merge pull request #9316 from Icinga/feature/release-2.13.3
Release 2.13.3
v2.13.3
2022-04-13 10:43:40 +02:00
Julian Brost
e39b3e3fff
Merge pull request #9343 from Icinga/gha2133
Update GHA
2022-04-13 09:47:50 +02:00
Alexander Aleksandrovič Klimov
e8357a5484 GHA: add Fedora 36 2022-04-12 17:28:59 +02:00
Alexander Aleksandrovič Klimov
bfb9d90a75 GHA: add Ubuntu jammy 2022-04-12 17:28:59 +02:00
Alexander Aleksandrovič Klimov
9515a5e709 Drop Ubuntu hirsute
It's EOL.
2022-04-12 17:28:59 +02:00
Julian Brost
aa6b6ab5bc Release 2.13.3 2022-04-12 16:03:45 +02:00
Julian Brost
e289ec689e
Merge pull request #9337 from Icinga/Al2Klimov-patch-3-213
Let new cluster certificates expire after 397 days, not 15 years
2022-04-11 21:20:39 +02:00
Julian Brost
5ea4c24c0e
Merge pull request #9335 from Icinga/bugfix/startup-log-213
Place startup.log and status in /var/lib/icinga2/api, not /var/lib/icinga2/api/zones-stage
2022-04-11 18:40:16 +02:00
Julian Brost
8b58de4431
Merge pull request #9333 from Icinga/bugfix/compare-cluster-tickets-in-constant-time-213
Compare cluster tickets in constant time
2022-04-11 16:30:51 +02:00
Alexander A. Klimov
763431aa35 Protect ApiListener#m_SSLContext with a mutex 2022-04-11 12:43:54 +02:00
Alexander A. Klimov
f63b364d91 Renew certificates also periodically 2022-04-11 12:43:54 +02:00
Alexander A. Klimov
ed3862782f ApiListener#Start(): auto-renew own cert if CA owner
otherwise that particular cert would expire.
2022-04-11 12:43:54 +02:00
Alexander A. Klimov
88d2da22f4 Introduce ApiListener#RenewCert() 2022-04-11 12:43:54 +02:00
Alexander A. Klimov
83911d0e05 Introduce IsCertUptodate() 2022-04-11 12:43:54 +02:00
Alexander A. Klimov
1ffc9f8120 Request certificate renewal also master2->master1
not only sat->master to prevent master2's certificate from expiring.
2022-04-11 12:43:53 +02:00
Alexander A. Klimov
85f8496017 Let new cluster certificates expire after 397 days, not 15 years
https://cabforum.org/wp-content/uploads/CA-Browser-Forum-BR-1.7.3.pdf, section 6.3.2:

"Subscriber Certificates issued on or after 1 September 2020 SHOULD NOT have a Validity Period greater than 397 days and MUST NOT have a Validity Period greater than 398 days."
2022-04-11 12:43:53 +02:00
Alexander A. Klimov
4fb9e7421e Write also /var/lib/icinga2/api/zones-stage-startup-last-failed.log
in addition to /var/lib/icinga2/api/zones-stage-startup.log
to prevent the next success to overwrite the last failure.
2022-04-11 12:28:12 +02:00
Alexander A. Klimov
3b03050340 Place startup.log and status in /var/lib/icinga2/api, not /var/lib/icinga2/api/zones-stage
not to loose them.
2022-04-11 12:28:12 +02:00
Alexander A. Klimov
18067df94d Compare cluster tickets in constant time
Just to be sure.
2022-04-11 11:42:06 +02:00
Julian Brost
9d566e0138
Merge pull request #9328 from Icinga/bugfix/parallel-api-package-calls-do-not-finish-while-reload-213
Worker process doesn't let parallel API package stage updates to complete when terminated
2022-04-07 17:09:52 +02:00
Julian Brost
e30f48d46f
Merge pull request #9325 from Icinga/boost-1.78-2.13
Windows: bump Boost and OpenSSL
2022-04-07 17:06:32 +02:00
Julian Brost
340b803a8f
Merge pull request #9322 from Icinga/perfdata-resume-signal
Perfdata writers: disconnect handlers from signals in Pause()
2022-04-07 15:52:00 +02:00
Yonas Habteab
8037a2f384 ConfigStagesHandler: Don't allow concurrent package updates anymore
To prevent Icinga2 from being restarted while
one or more requests are still in progress and end up
as corrupted stages without status file and startup logs.
2022-04-07 11:58:04 +02:00
Yonas Habteab
668eb4bd0a ConfigPackageUtility: Don't reset ongoing package updates on config validation success and process is going to be reloaded 2022-04-07 11:58:04 +02:00
Yonas Habteab
236a888c1b Defer: Allow to cancel the callback before going out of scope 2022-04-07 11:58:04 +02:00
Alexander A. Klimov
37026e522d Bump OpenSSL to 1.1.1n 2022-04-07 11:35:35 +02:00
Alexander A. Klimov
ec7fdfccc5 Bump Boost to 1.78 2022-04-07 11:35:35 +02:00
Alexander Aleksandrovič Klimov
4efd6b0f51
Merge pull request #9315 from Icinga/bugfix/influxdb-log-message-2.13
InfluxdbCommonWriter#Flush(): fix log message
2022-04-06 13:38:44 +02:00
Alexander A. Klimov
56933b8877 Perfdata writers: disconnect handlers from signals in Pause()
as they would be re-connected in Resume() (HA).

Before they were still connected during pause and connected X+1 times
after X split-brains (the same data was written X+1 times).
2022-04-06 13:09:26 +02:00
Julian Brost
24f2d8c9c2
Merge pull request #9312 from Icinga/9308
IDO MySQL: explicitly use latin1
2022-04-06 09:49:33 +02:00
Alexander Aleksandrovič Klimov
4fc6523b12 InfluxdbCommonWriter#Flush(): fix log message
s/InfluxdbWriter/Influxdb2Writer/

fixes #9035
2022-04-01 11:22:16 +02:00
Alexander A. Klimov
11b8d0f058 IDO MySQL: reason latin1 charset for actually UTF-8 bytes 2022-03-31 18:10:21 +02:00
Alexander A. Klimov
245fbad1e5 IDO MySQL: explicitly use latin1
for the case the MySQL client lib is compiled with another default
not to turn Unicode chars into ??.
2022-03-31 15:04:45 +02:00
Alexander Aleksandrovič Klimov
9293dea787
Merge pull request #9303 from Icinga/bugfix/icingadb-sticky-comments-2.13
Icinga DB: correct ack comments' is_sticky
2022-03-30 14:15:27 +02:00
Alexander Aleksandrovič Klimov
5e0ac8c457
Merge pull request #9306 from Icinga/bugfix/add-some-missing-locks-2.13
Add some missing locks to prevent data races
2022-03-30 10:53:38 +02:00
Alexander Aleksandrovič Klimov
4295da2f36
Merge pull request #9304 from Icinga/bugfix/systemd-servce-depend-on-redis-2.13
icinga2.service: depend on icingadb-redis.service if any
2022-03-30 10:50:55 +02:00
Alexander A. Klimov
df3be79194 Icinga DB: correct ack comments' is_sticky
On ack Icinga first adds a comment, then acks the checkable
so the ack event has the comment ID.

But due to the yet missing ack the comment was missing is_sticky.
That's corrected now.
2022-03-30 09:45:39 +02:00
Alexander A. Klimov
45b723644c Introduce Comment#sticky
Carries whether ack was sticky for ack comments.
2022-03-30 09:45:39 +02:00
Alexander Aleksandrovič Klimov
5f1e0ee2aa
Merge pull request #9302 from Icinga/bugfix/icingadb-ignore-acks-in-comment-history-2.13
IcingaDB#SendRemovedComment(): ignore ack comments like #SendAddedCom…
2022-03-29 21:37:29 +02:00
Alexander Aleksandrovič Klimov
5a65190d02
Merge pull request #9301 from Icinga/bugfix/icingadb-remove-comment-history-2.13
Icinga DB: discard comment removals with missing information
2022-03-29 20:29:06 +02:00
Alexander Aleksandrovič Klimov
ab938c2ea9
Merge pull request #9300 from Icinga/bugfix/icingadb-array-locking-2.13
Add missing array locking in IcingaDB::GetArrayDeletedValues()
2022-03-29 19:14:24 +02:00
Yonas Habteab
36c75218e4 ConfigObject: Initialize local static var at declaration to ensure thread safety 2022-03-29 16:38:09 +02:00
Yonas Habteab
178eb928e6 ConfigItem: Use atomic variables for notified and commited items count 2022-03-29 16:38:09 +02:00