Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1798373

Summary: [rhel8] insights-client.timer shall use wantedby timers.target
Product: Red Hat Hybrid Cloud Console (console.redhat.com) Reporter: Peter Vreman <peter.vreman>
Component: ClientAssignee: Link Dupont <link>
Status: CLOSED CURRENTRELEASE QA Contact: Pavol Kotvan <pakotvan>
Severity: low Docs Contact: Kevin Blake <kblake>
Priority: unspecified
Version: unspecifiedCC: dajohnso, klape, link, lphiri
Target Milestone: ---
Target Release: ---
Hardware: Unspecified
OS: Unspecified
Whiteboard:
If docs needed, set a value
---
2020-05-04 15:26:11 UTC Bug
--- ---
---
---
--- RHEL 7.3 requirements from Atomic Host:
---
Bug Depends On: 1805464, 1813317
Bug Blocks: 1122832

Description Peter Vreman 2020-02-05 07:44:07 UTC
Description of problem:

On RHEL8.1 there is a new timers.target. The insights-client is still using multi-user.target instead of new timers.target.

--------
vrempet-admin@li-lc-2445 /usr/lib/systemd/system
$ grep WantedBy *.timer
chrony-dnssrv@.timer:WantedBy=timers.target
dnf-makecache.timer:WantedBy=multi-user.target
fstrim.timer:WantedBy=timers.target
insights-client.timer:WantedBy=multi-user.target <--------------
mdcheck_start.timer:WantedBy= mdmonitor.service
mdmonitor-oneshot.timer:WantedBy= mdmonitor.service
mlocate-updatedb.timer:WantedBy=timers.target
pmie_check.timer:WantedBy=timers.target
pmie_daily.timer:WantedBy=timers.target
pmlogger_check.timer:WantedBy=timers.target
pmlogger_daily-poll.timer:WantedBy=timers.target
pmlogger_daily.timer:WantedBy=timers.target
sysstat-collect.timer:WantedBy=sysstat.service
sysstat-summary.timer:WantedBy=sysstat.service
unbound-anchor.timer:WantedBy=timers.target
--------


From https://www.freedesktop.org/software/systemd/man/systemd.special.html?_sm_au_=iVVF9bRKkpHHpH8qqqB8LKtkqGQpW#timers.target
--------------
timers.target

 A special target unit that sets up all timer units (see systemd.timer(5) for details) that shall be active after boot.

 It is recommended that timer units installed by applications get pulled in via Wants= dependencies from this unit. This is best configured via WantedBy=timers.target in the timer unit's "[Install]" section.
Version-Release number of selected component (if applicable):
--------------


How reproducible:


Steps to Reproduce:
1. systemctl cat insights-client.timer
2.
3.

Actual results:
WantedBy=multi-user.target

Expected results:
WantedBy=timers.target

Additional info:

Comment 1 Peter Vreman 2020-02-05 07:56:53 UTC
If you are fixing the systemd unit the Wants can also be improved to really have network connectivity, see https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/?_sm_au_=iVVF9bRKkpHHpH8qqqB8LKtkqGQpW

Wants=network-online.target
After=network-online.target

This network-online.target applies also to the RHEL7.x

Comment 2 Dave Johnson 2020-02-05 08:15:33 UTC
Please assess the impact of this issue and update the severity accordingly. Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition.

If it's something like a tracker bug where it doesn't matter, please set the severity to Low.

Comment 3 Peter Vreman 2020-02-05 09:36:08 UTC
It is currently also working, it just not confirming to the standards applied in other RedHat packages.