Bug 1805728

Summary: [RHEL8/Bug] abrt rpm verify failed on /var/run/abrt missing after reboot
Product: Red Hat Enterprise Linux 8 Reporter: Oliver Falk <ofalk>
Component: abrtAssignee: abrt <abrt-devel-list>
Status: CLOSED ERRATA QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.1CC: mkyral, msuchy
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: abrt-2.10.9-12.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 01:31:18 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:
Bug Depends On:    
Bug Blocks: 1122832, 1819712    

Description Oliver Falk 2020-02-21 12:52:46 UTC
Description of problem:
abrt rpm installs dirs/files in /var/run/, however since /var/run is symlinked /run and /run is actually on tmpfs in default installs, that means an rpm verify will fail on /var/run/abrt if the machine is rebooted and abrtd isn't enabled to start upon boot.

Version-Release number of selected component (if applicable): 2.10.9


How reproducible: Always


Steps to Reproduce:
1. # yum -y install abrt
2. # systemctl disable abrtd.service
2. # reboot
3. # rpm -V abrt

Actual results:

# rpm -V abrt
missing     /var/run/abrt

Expected results:
RPM verify should not report missing /var/run/abrt.


Additional info:
It's important to note that abrtd shall not start upon reboot, since it will create those entries.

I guess, %ghost in the %files section of the RPM spec file should help, but I'M too low on time to actually give this a try.

Customer case will be linked.

Comment 1 ekulik 2020-02-24 08:48:10 UTC
%ghost seems to do it for me.

Comment 3 ekulik 2020-02-25 09:54:22 UTC
Upstream PR: https://github.com/abrt/abrt/pull/1454

Comment 4 ekulik 2020-02-26 14:42:19 UTC
Martin, can you take a look? This should be a walk in the park to verify.

Comment 5 Martin Kyral 2020-03-02 10:36:56 UTC
Easy to test -> qa_ack+

Comment 12 errata-xmlrpc 2020-11-04 01:31:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (abrt bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4435