Bug 43257 - updater-statistics CRON job sends traceback on DC Slaves and memberservers - missing univention.license
updater-statistics CRON job sends traceback on DC Slaves and memberservers - ...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1-4-errata
Assigned To: Janek Walkenhorst
Florian Best
:
Depends on: 43298
Blocks:
  Show dependency treegraph
 
Reported: 2016-12-29 08:22 CET by Ingo Steuwer
Modified: 2017-03-15 17:07 CET (History)
5 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.103
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2016122921000113
Bug group (optional):
Max CVSS v3 score:


Attachments
bug_43257.patch (500 bytes, patch)
2016-12-29 11:34 CET, Stefan Gohmann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ingo Steuwer univentionstaff 2016-12-29 08:22:01 CET
seen on UCS 4.1-4 Errata 366: At least DC Slave servers and Memberservers send a mail from a CRON job:

Subject: Cron <root@HOSTNAME> /usr/share/univention-updater/updater-statistics > /dev/zero

Body:	
Traceback (most recent call last):
  File "/usr/share/univention-updater/updater-statistics", line 33, in <module>
    import univention.admin.license
  File "/usr/lib/pymodules/python2.7/univention/admin/license.py", line 36, in <module>
    import univention.license
ImportError: No module named license
Comment 1 Stefan Gohmann univentionstaff 2016-12-29 11:34:04 CET
Created attachment 8326 [details]
bug_43257.patch

Attached a hotfix for this issue:
 patch -d / -p0 <bug_43257.patch
Comment 2 Janek Walkenhorst univentionstaff 2017-01-05 14:52:32 CET
This happens if python-univention-license is not installed, which may happen due to Bug #43298, it will be fixed (in UDM) there.

I'll use this bug to add dependencies to python-u-c-r and python-u-d-m because this is currently only indirectly covered (by other dependencies)
Comment 3 Janek Walkenhorst univentionstaff 2017-01-06 13:53:53 CET
univention-updater.yaml
fix: 11.0.11-13.1499.201701061242
* Added required dependencies explicitly to the package.
Comment 4 Florian Best univentionstaff 2017-01-09 15:38:56 CET
OK: added dependencies to univention-updater
OK: YAML
Comment 5 Janek Walkenhorst univentionstaff 2017-01-11 11:37:40 CET
Merged to 4.2: r75678
Comment 6 Janek Walkenhorst univentionstaff 2017-03-15 17:07:02 CET
<http://errata.software-univention.de/ucs/4.1/407.html>