Bug 56820 - Make nagios/timeperiod removable
Make nagios/timeperiod removable
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Monitoring (Prometheus or Nagios)
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-5-errata
Assigned To: Florian Best
Julia Bremer
:
Depends on: 56367
Blocks: 56134
  Show dependency treegraph
 
Reported: 2023-11-13 13:02 CET by Florian Best
Modified: 2023-11-15 21:08 CET (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2023-11-13 13:02:09 CET
UDM needs to be able to remove nagios/timeperiod object before the upgrade to UCS 5.2.

There are a lot of unused properties in nagios/service, since the nagios-server component has been dropped in UCS 5.0. nagios/service is only still relevant for nagios-client NRPE checks.
Therefor we will mark the nagios server related properties as optional.

+++ This bug was initially created as a clone of Bug #56367 +++

Remove the UDM modules. Leave the schema. Test for objects (and force to remove) before upgrade to 5.2.
Comment 1 Florian Best univentionstaff 2023-11-13 13:28:25 CET
The nagios-server related UDM properties and LDAP attributes have been marked as optional.
nagios/timeperiod objects can not be removed even if they are references in a nagios/service object.

univention-ldap.yaml
6911ad1ef2bf | feat(udm-nagios): mark unused Nagios properties as optional

univention-ldap (16.0.13-7)
6911ad1ef2bf | feat(udm-nagios): mark unused Nagios properties as optional

univention-directory-manager-modules.yaml
6911ad1ef2bf | feat(udm-nagios): mark unused Nagios properties as optional

univention-directory-manager-modules (15.0.24-23)
6911ad1ef2bf | feat(udm-nagios): mark unused Nagios properties as optional
Comment 2 Julia Bremer univentionstaff 2023-11-15 10:34:59 CET
OK: timeperiod objects can be removed
OK: No errors on nagios/service objects that still reference the now removed timeperiod objects
OK: YAML
OK: Jenkins
OK: Package installation
Verified