Bug 1679743

Summary: changes to rhnsd need to be documented
Product: [Community] Spacewalk Reporter: Alastair Neil <aneil2>
Component: ClientsAssignee: Michael Mráka <mmraka>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.9CC: sa.oxy1, sebastien
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rhnsd-5.0.46.1-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-19 12:16:10 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: 1802137    

Description Alastair Neil 2019-02-21 18:26:15 UTC
Description of problem:
rhnsd was recently changed to be implemented via systemd timer, more work is needed:
 1) There is no documentation of this any where that I can find.
 2) The man page for rhnsd has outdated and now incorrect information 
 3) It is not clear if this will honour the documented /etc/sysconfig/rhn/rhnsd configuration where the INTERVAL could be set.
 4) systemctl status rhnsd shows the service as inactive (dead) - this is at best misleading at worse a system monitoring nightmare
 5) there seems to be no way to query systemd for information on the timer (systemctl list-timers --all shows nothing relevant)


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

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:
 see above

Expected results:
 see above

Additional info:

Comment 1 Simon_A 2019-07-08 11:59:13 UTC
I'd like to add support for this and hope it's bumped up the priority list.

I've just spent an hour chasing my tail trying to find out why rhn_check wasn't being called, and was comparing a new non-working system to an established one. Exactly as Alastair describes, I was misled by the documentation which told me to set intevals in  /etc/sysconfig/rhn/rhnsd  and of course the system I was comparing to was on Centos 6, so had that file. The new system did not.

Comment 2 Michael Mráka 2020-03-11 14:19:47 UTC
Part of this issue (enabling rhnsd timer by default) has been fixed by
commit 33d2927692c3e5d17c7e851515401a7c468f3a56
    install preset file
commit d96f083e7dd304c7e362cd7110d099c6b5f3109c
    Create 10-rhnsd.preset

Comment 3 Michael Mráka 2020-03-11 14:55:33 UTC
Man page fixed in
commit cbff89a9407117363a50eba49ee27e814197916a
    1679743 - updated manpage for rhnsd timer

Comment 4 Michael Mráka 2020-03-19 12:16:10 UTC
Spacewalk 2.10 has been released.
https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes210