Bug 2171200 - Entry in /usr/lib/systemd/system/abrtd.service causes systemd to show livesys.service error even when livesys disabled/removed
Summary: Entry in /usr/lib/systemd/system/abrtd.service causes systemd to show livesys...
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: abrt
Version: 38
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michal Srb
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-19 00:43 UTC by John Dodson
Modified: 2023-08-08 01:51 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description John Dodson 2023-02-19 00:43:03 UTC
Description of problem:
Entry in /usr/lib/systemd/system/abrtd.service causes systemd to show livesys.service error even when livesys disabled/removed.

# livesys.service has been added because of live distributions mounting tmpfs
# to /var/tmp after abrtd.service was started which was hiding /var/tmp/abrt
# which was created before the mount to tmpfs happened
After=livesys.service


Version-Release number of selected component (if applicable):
abrt-2.15.1-6.fc37.x86_64
(This is probably really a systemd problem, 251.11-2.fc37)


How reproducible:
Always unless that line is commented out.

Steps to Reproduce:
1. Remove all trace of livesys after installation (otherwise it generates
other "messages" by just being there & it should be removed right?).
2. systemctl -all |grep livesys
        livesys.service    not-found inactive   dead      livesys.service
3. The "problem" is also manifested by 

Actual results:
Uninstalled systemd objects should not give an error status

Expected results:
The ability to run systemctl -all & see no errors/services in error states,
when you've ironed out all the mysteries & unnecessary components.

Additional info:
It would seem that systemd needs a better system of ordering or checking for unused/installed components that require ordering or "Conflicts=" (which also generate a similar effect.
Or merely "noting silently that an uninstalled/non-conflicting package does not
need to be considered in it's logic" - but that's probably a recipe for more
subtle bugs.

BTW, in the systemctl documentation there is no mention of "Yellow" dots - are
they real in the systemctl output or have I screwed my terminal colour scheme?
It seems they are services that "ain't really there".

Is this too philosophical?

Comment 1 John Dodson 2023-06-02 14:22:18 UTC
Still a problem in FC38

Comment 2 John Dodson 2023-07-05 14:21:11 UTC
I commented this line out of /etc/systemd/system/multi-user.target.wants/abrtd.service

After=livesys.service

to work around the problem,
it's back in the version of that file dated 2023 Jun 30 10:00
abrt-2.17.1-1.fc38.x86_64
python3-abrt-2.17.1-1.fc38.x86_64 ?

Can someone PLEASE fix it or comment it out in the distributed version?
Can we make it conditional?

Comment 3 Michal Srb 2023-07-05 19:07:04 UTC
PR: https://github.com/abrt/abrt/pull/1643

Comment 4 Michal Srb 2023-07-05 19:08:24 UTC
Thank you for the bug report. The fix will be included in the next abrt release ;)

Comment 5 John Dodson 2023-08-07 01:46:04 UTC
Any idea when that will be?

Comment 6 John Dodson 2023-08-07 01:47:13 UTC
Oh & also when /var/tmp/abrt will not be "recreated" (if it's now unused)?

Comment 7 John Dodson 2023-08-08 01:51:26 UTC
If removed /var/tmp/abrt is recreated each night following a systemd restart.


Note You need to log in before you can comment on or make changes to this bug.