Commit Graph

930 Commits

Author SHA1 Message Date
Thomas Gelf 0cb6e40681 IcingaService: improve error message 2022-09-21 11:50:26 +02:00
Daniel Patrick 04c4bd2559 IcingaCommand: Remove obsolete CLR check 2022-09-21 08:52:51 +02:00
Thomas Gelf 05de5b171b BranchMerger: log change author
fixes #2606
2022-09-21 08:50:45 +02:00
Thomas Gelf b19dd5f62d IcingaServiceSet: use query builder to retrieve...
...services, this is required for branches
2022-09-20 12:55:55 +02:00
Thomas Gelf 8b1513830c IcingaServiceSet: do not delete Services w/o id 2022-09-20 07:20:29 +02:00
Thomas Gelf 8bfbe2a80f IcingaServiceSet: friendlier error message 2022-09-15 11:44:43 +02:00
Thomas Gelf 9434cf5089 IcingaServiceSet: type hint for IDE 2022-09-15 11:44:24 +02:00
Thomas Gelf 0cf8c76617 IcingaObject: more details in the error message 2022-09-13 10:20:24 +02:00
Thomas Gelf 1c30412abd DirectorActivityLog, others: constants, cleanup 2022-08-20 20:41:07 +02:00
Thomas Gelf 05d7e137c2 IcingaArguments: clarify reason for missing DSL...
...in External Commands imported via Icinga 2 API

fixes #2557
2022-07-18 10:08:51 +02:00
Thomas Gelf f24f8eb287 IcingaObject: more details in comment 2022-07-12 11:28:54 +02:00
Thomas Gelf 922b19397c IcingaObject: resolve related properties when...
...telling an object to be "unmodified"

fixes #2559
2022-07-12 10:02:58 +02:00
Thomas Gelf d13919681a IcingaEndpoint: give meaningful error...
...when trying to get an ApiUser where there is no such
2022-07-12 10:00:58 +02:00
Thomas Gelf 56f81b91bb Exporter: centralize export logic
fixes #2549
2022-06-24 12:52:35 +02:00
Thomas Gelf 75b73604a8 SyncRule: remove unused property 2022-06-20 09:59:01 +02:00
Thomas Gelf 11f621df30 IcingaServiceSet: do not eport the UUID for now
fixes #2488
2022-04-05 08:48:42 +02:00
Thomas Gelf 9afa3313ab cli: implement deployment grace period and...
...refactor/restructure related code to achieve the same behavior on CLI and
via automated job

fixes #2499
2022-03-22 10:46:36 +01:00
raviks789 71f3654c0b Fix sync rule restore from snapshot on name change
On name change new Sync rule would be created, hence we do not have to preserve the Sync rule Ids in SyncRule::import() method.
2022-03-17 14:55:35 +01:00
Thomas Gelf 0f1ef78815 IcingaArguments: remove superfluous semicolon 2022-02-17 15:37:44 +01:00
Thomas Gelf 984e931954 BasketSnapshot: support datafield categories
fixes #2256
2022-02-16 23:14:38 +01:00
Thomas Gelf aeef51ffa6 IcingaArguments: allow to restore set_if_format
fixes #2291
2022-02-09 21:59:53 +01:00
raviks789 4f38557374 Prevent deletion of data lists that are in use.
Deletion of data lists which are used in icinga objects (through custom variables) or in sync rules is prevented.
2022-02-09 15:17:47 +01:00
Thomas Gelf b7aa578dee IcingaHost: filter internal properties from enum 2022-02-06 11:41:20 +01:00
Thomas Gelf eddaf7c9a4 IcingaObject: some cleanup 2022-02-06 11:39:03 +01:00
Thomas Gelf 891b6112aa IcingaObject: ignore uuid when resolving properties 2022-02-06 11:37:01 +01:00
Thomas Gelf 324cc9ed5b IcingaObject: do not unset unresolved related...
...properties, as long as they do not give us an object with an ID.
This is the case when adding new services to hosts which exist in a
branch only, and will no longer be a problem once our internal caches
work with UUIDs
2022-02-06 11:35:00 +01:00
raviks789 b04fe28932 Delete newly added Services in Service Set when restoring it from snapshot
The Services which were added into the Service Set after the snapshot was created
must be deleted when the Service Set is being restored from the snapshot.
2022-01-24 15:26:48 +01:00
Thomas Gelf 0fcbc2783b IcingaServiceSet: load services by UUID
fixes #2454
2022-01-10 13:31:25 +01:00
Thomas Gelf 2113484b20 IcingaArguments: fix delete 2022-01-09 21:42:39 +01:00
Thomas Gelf caccecded6 IcingaHost: ignore warning 2021-12-23 13:46:04 +01:00
Thomas Gelf 673c1c520e DirectorDeploymentLog: do not query empty stage
fixes #2426
2021-12-22 11:46:18 +01:00
Thomas Gelf 68814e0de6 IcingaObjectImports: fix PHP 8.1 notice 2021-12-21 09:01:06 +01:00
Thomas Gelf 376344257c DbObjectStore: inject into DbObject for related...
...objects in a branch
2021-12-17 12:51:24 +01:00
Thomas Gelf bfdcafca52 Ranges: common class, fix store/delete issues
This removes duplicate code, fixes some issues introduced with UUIDs and does
some cleanup

fixes #2415
fixes #2442
2021-12-14 08:33:50 +01:00
Thomas Gelf 100bc4b777 library: php8-related cleanup 2021-12-06 23:03:06 +01:00
Thomas Gelf 215988c3ca library: some hints for PHP 8.1 2021-12-01 23:50:04 +01:00
Ravi Kumar Kempapura Srinivasa 388c79e430 Add uuid to service sets. 2021-11-28 11:15:31 +01:00
Thomas Gelf 82656de2c2 Director: some PHP 8.1-related changes 2021-11-28 11:13:08 +01:00
Thomas Gelf 6786cc768f Director: some fixes for PHP v8.1
refs #2435
2021-11-24 11:56:18 +01:00
Markus Frosch 4f959572f2 Add feature to specify a custom endpoint name for a host
- Render Endpoint and Zone with a different name per host
- Add custom variable `_director_custom_endpoint_name` to a host with that name
- Update `command_endpoint` behavior in services to use custom var or hostname
- Includes a feature flag that needs to be enabled
2021-10-21 14:59:52 +02:00
Markus Frosch 8237d84cdb Add feature to specify a custom endpoint name for a host
- Render Endpoint and Zone with a different name per host
- Add custom variable `_director_custom_endpoint_name` to a host with that name
- Update `command_endpoint` behavior in services to use custom var or hostname
- Includes a feature flag that needs to be enabled
2021-10-21 14:59:52 +02:00
Thomas Gelf 7b4e9b4f91 IcingaObject: fix null check for ranges
fixes #2408
2021-10-11 17:45:55 +02:00
Thomas Gelf 57c4dda117 Objects/*, CVs, others: unify setBeingLoadedFromDb 2021-10-05 23:33:30 +02:00
Thomas Gelf 835d01cdec IcingaObject: disabled = null is not a thing 2021-10-05 23:33:30 +02:00
Thomas Gelf 5aba966a4b IcingaCommandArgument: use a combined key 2021-10-05 23:33:30 +02:00
Thomas Gelf 792ff03a6d Objects: add uuid column 2021-10-05 23:33:30 +02:00
Thomas Gelf 65bbaa9f98 IcingaObject: custom vars, also load them only...
...when we got an id
2021-10-05 23:33:30 +02:00
Thomas Gelf 182d1b519b IcingaObject: do not load groups when we have...
...no id. With branches this is now possible
2021-10-05 23:33:30 +02:00
Thomas Gelf 1a5df745e3 IcingaObject: add some type-hints 2021-10-05 23:33:30 +02:00
Thomas Gelf a29efe478c IcingaArguments: remove Argument set to null 2021-10-05 23:33:30 +02:00