Bug 43257

Summary: updater-statistics CRON job sends traceback on DC Slaves and memberservers - missing univention.license
Product: UCS Reporter: Ingo Steuwer <steuwer>
Component: Update - univention-updaterAssignee: Janek Walkenhorst <walkenhorst>
Status: CLOSED FIXED QA Contact: Florian Best <best>
Severity: normal    
Priority: P5 CC: andree.hingst, ebersbach, gohmann, stephan.hendl, stoeckigt
Version: UCS 4.1   
Target Milestone: UCS 4.1-4-errata   
Hardware: Other   
OS: Linux   
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:
Bug Depends on: 43298    
Bug Blocks:    
Attachments: bug_43257.patch

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>