Bug 55435 - New Samba log files log.rpcd_* not covered by logrotate
New Samba log files log.rpcd_* not covered by logrotate
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Samba
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-2-errata
Assigned To: Arvid Requate
Julia Bremer
https://git.knut.univention.de/univen...
:
Depends on:
Blocks: 55584 55591
  Show dependency treegraph
 
Reported: 2022-11-17 11:56 CET by Arvid Requate
Modified: 2023-01-23 18:24 CET (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?: 1: Will affect a very few 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.023
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): External feedback
Max CVSS v3 score:
requate: Patch_Available+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2022-11-17 11:56:34 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
Comment 1 Arvid Requate univentionstaff 2022-11-17 18:16:38 CET
Also:
* log.samba-dcerpcd
* log.samba-bgqd
Comment 2 Arvid Requate univentionstaff 2022-12-14 17:35:15 CET
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".
Comment 3 Arvid Requate univentionstaff 2023-01-16 17:43:32 CET
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
Comment 5 Florian Best univentionstaff 2023-01-18 16:08:47 CET
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
Comment 6 Arvid Requate univentionstaff 2023-01-18 16:42:41 CET
Adjusted. Maybe we should not use Bugzilla as chat tool.
Comment 7 Julia Bremer univentionstaff 2023-01-18 16:52:30 CET
OK: ucs-test
OK: python2 compatible
OK: logs are rotated
OK: YAML
Verified