Bug 56072 - App Listener should handle unreadable objects by ignoring it consequently
App Listener should handle unreadable objects by ignoring it consequently
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: App Center
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-3-errata
Assigned To: Christian Castens
Juan Carlos
https://git.knut.univention.de/univen...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-05-16 10:59 CEST by Dirk Wiesenthal
Modified: 2023-05-31 15:38 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 5: Will affect all installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.057
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 Dirk Wiesenthal univentionstaff 2023-05-16 10:59:27 CEST
If an object changed in LDAP, the listener creates a file that has the entryUUID in it. This file is picked up by the listener-converter. It may be that this process may not read the object. This can happen due to LDAP/UDM differences (see Bug#55216) or due to explicit ACL rules for the machine account of the App.

Anyway, we should handle not being able to read the object and log that once. But then remove the file forever (and log that, too).
Comment 2 Christian Castens univentionstaff 2023-05-25 08:18:39 CEST
Package: univention-appcenter
Version: 9.0.7-9
Branch: ucs_5.0-0
Scope: errata5.0-3

univention-appcenter.yaml
8a43ccac9f00 | Bug #56072: yaml
0112ae819ea9 | Bug #56072: remove listener file when corresponding udm object cannot be identified

The App Center listener now removes files from its queue that contain
entryUUIDs whose corresponding UDM objects cannot be found. These
files cannot be processed by the listener and would otherwise remain in
the queue forever and cause infinite error logging.
Comment 3 Juan Carlos univentionstaff 2023-05-25 09:01:13 CEST
QA:

The files are removed when the object is not found in UDM: OK
yaml: OK
changelog: OK
Comment 4 Florian Best univentionstaff 2023-05-25 11:06:59 CEST
In Jenkins there is a traceback:

Traceback (most recent call last):
  File "/usr/share/ucs-test/20_appcenter/100_settings.py", line 262, in test_string_custom_setting_docker
    os.remove(custom_settings_file)
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/univention-appcenter/apps/apache/custom.settings'
Comment 5 Christian Castens univentionstaff 2023-05-26 14:37:05 CEST
The errors from yesterday's jenkins test run are unrelated to this bug. There was a connection issue with the app center which caused some problems. The latest test runs do not contain any failed appcenter tests anymore. I also executed the tests on a test vm and they were successful.
I will change the bug status back to resolved fixed.