Univention Bugzilla – Bug 55435
New Samba log files log.rpcd_* not covered by logrotate
Last modified: 2023-01-23 18:24:38 CET
Samba 4.16 writes new log files log.rpcd_* and they are not covered by logrotate yet. https://help.univention.com/t/log-files-not-rotated-and-growing/20524
Also: * log.samba-dcerpcd * log.samba-bgqd
Also, samba-dcerpcd issues a lot of messages at the UCS default log level 1, so we should maybe adjust this to samba/debug/level="1 rpc_srv:0".
deba5aaf9c | rotate new logfiles a6961d66c9 | Advisory update I've not adjusted the default log level yet. Package: univention-samba Version: 14.0.5-8A~5.0.0.202301161735 Branch: ucs_5.0-0 Scope: errata5.0-2 Package: univention-samba4 Version: 9.0.8-10A~5.0.0.202301161733 Branch: ucs_5.0-0 Scope: errata5.0-2
git:deba5aaf9c9ea68c734e718f5779663bfb558375 breaks Python 2 compatibility of UCR template file: + print("/var/log/samba/%s " % name, end="") https://univention-dist-jenkins.k8s.knut.univention.de/job/UCS-5.0/job/UCS-5.0-2/job/AutotestJoin/lastCompletedBuild/SambaVersion=s4,Systemrolle=member/testReport/03_ucr/37check-ucr-templates-py3-migration-status/test_configfile_python_compatibility__etc_univention_templates_files_etc_logrotate_d_samba_/
You now added it to the ignore-list. But we still support to use Python2 in UCR, UMC, UDM and App-Center until UCS 5.1. The template is triggered by every logrotate variable, so code like this will cause a broken /etc/logrotate.d/samba: # python2.7 -c 'from univention.config_registry import handler_set; handler_set(["logrotate/foo=1"])' Create logrotate/foo … File: /etc/logrotate.d/samba File "<stdin>", line 21 print("/var/log/samba/%s " % name, end="") ^ SyntaxError: invalid syntax
Adjusted. Maybe we should not use Bugzilla as chat tool.
OK: ucs-test OK: python2 compatible OK: logs are rotated OK: YAML Verified
<https://errata.software-univention.de/#/?erratum=5.0x546> <https://errata.software-univention.de/#/?erratum=5.0x547>