Bug 1383066

Summary: updating systemd re-creates /var/log/journal
Product: [Fedora] Fedora Reporter: Alexandre Oliva <aoliva>
Component: systemdAssignee: systemd-maint
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: johannbg, lnykryn, msekleta, muadda, ssahani, s, systemd-maint, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemd-231-10.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-14 05:00:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alexandre Oliva 2016-10-09 13:38:17 UTC
Description of problem:
Removing /var/log/journal is documented and recommended as a way to configure journald will only use a volatile journal.  However, because the systemd package owns directory /var/log/journal, the directory gets created and breaking this configuration every time systemd is updated.

Version-Release number of selected component (if applicable):
systemd-229-16.fc24.x86_64

How reproducible:
Every time

Steps to Reproduce:
1.rm -rf /var/log/journal &&systemctl restart systemd-journald
2.dnf upgrade systemd && systemctl restart systemd-journald
3.ls /var/log/journal

Actual results:
/var/log/journal is there again, and journald uses a non-volatile journal again

Expected results:
Still no /var/log/journal, and journal still in volatile storage

Additional info:

Comment 2 Alexandre Oliva 2016-10-12 01:56:00 UTC
Thanks, Zbigniew!  Looking at the patch, I'm missing code to play the role of %attrs for /var/log/journal where it is now created.

Comment 3 Zbigniew Jędrzejewski-Szmek 2016-10-12 03:49:36 UTC
Look at the chunk starting with "# Make sure new journal files will be owned by the "systemd-journal" group". I think it should have the same effect.

Comment 4 Fedora Update System 2016-10-13 05:53:23 UTC
systemd-231-10.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-005ad5dcb1

Comment 5 Alexandre Oliva 2016-10-13 21:46:47 UTC
ah, yes, thanks, I concur, the chgrp and chmod commands will have the same effect.  at least as long as %{_localstatedir} expands to /var  ;-)

Comment 6 Fedora Update System 2016-10-14 05:00:27 UTC
systemd-231-10.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.