<font size=2 face="sans-serif">Franky nailed it. </font><br><br><font size=2 face="sans-serif">Just some additional insight (do not
know how many devices/servers that are supported): </font><br><font size=2 face="sans-serif">If there ever is a chance of mass rebooting
1k+ servers/devices at once, the rhn_check's could degrade the spacewalk.
 Adding something like the perl command below, will assist in randomizing
the rhn_check within xxxx secs of a reboot.  <br></font><br><font size=2 face="sans-serif">@reboot root perl -le 'sleep rand xxxx'
&& /usr/sbin/rhn_check >& /dev/null<br><br>Also, if the rpm database becomes corrupt, the system will not check in.</font><br><br><font size=2 face="sans-serif">- Thanks and good luck<br></font><br><br><br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">liedekef@telenet.be</font><br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">spacewalk-list@redhat.com</font><br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">09/30/2016 10:55 AM</font><br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">Re: [Spacewalk-list]
Schedule Reboot (Bug?)</font><br><font size=1 color=#5f5f5f face="sans-serif">Sent by:    
   </font><font size=1 face="sans-serif">spacewalk-list-bounces@redhat.com</font><br><hr noshade><br><br><br><font size=3>This email originated from outside of the company. Please
use discretion if opening attachments or clicking on links.</font><hr><font size=3> </font><p><font size=2 face="Verdana">(sorry for topposting ... webmail)</font><br><font size=2 face="Verdana">The way I do it: run rhn_check at boot
via cron:</font><br><br><font size=2 face="Verdana">@reboot root /usr/sbin/rhn_check</font><br><br><font size=2 face="Verdana">Franky</font><br><br><hr><br><font size=3 face="Helvetica"><b>Van: </b>"Jeff Baldwin"
<JeffB@knowclassic.com><b><br>Aan: </b>spacewalk-list@redhat.com<b><br>Verzonden: </b>Vrijdag 30 september 2016 16:10:35<b><br>Onderwerp: </b>[Spacewalk-list] Schedule Reboot (Bug?)</font><br><br><font size=2 face="Calibri">All,</font><br><font size=2 face="Calibri"> </font><br><font size=2 face="Calibri">I’ve ran into what appears to be an old
bug.   The issue is that when systems are in ‘Require Reboot’ status,
and I reboot them via Spacewalk, the status doesn’t update, even after
OSAD has completed the reboot process.    I have to run rhn_check
to force the status to update.   I found that this was discussed in
an email back in 2014, but no resolution was mentioned in the thread:  </font><a href="https://www.redhat.com/archives/spacewalk-list/2014-October/msg00067.html" target=_blank><font size=2 color=#0082bf face="Calibri"><u>https://www.redhat.com/archives/spacewalk-list/2014-October/msg00067.html</u></font></a><br><font size=2 face="Calibri"> </font><br><font size=2 face="Calibri">The scenario the user described below,
still applies perfectly to my 2.5 install (his was 2.2).   </font><br><font size=2 face="Calibri"> </font><br><font size=2 face="Calibri">Are we missing something?</font><br><font size=2 face="Calibri"> </font><br><font size=4>Steps I've taken already:</font><br><font size=4> </font><br><font size=4>1. Set verbosity to level 5 on osad.conf for the client.
Everything looks fine in the logs until after the reboot, when the server
starts and the OSAD service starts, it's not checking in with Spacewalk
even though OSA status says online.</font><br><font size=4> </font><br><font size=4>2. Stop OSAD, remove /etc/sysconfig/rhn/osad-auth.conf,
start OSAD. Same results. Reboot action is picked up immediately, and the
system reboots successfully, but the action is never marked Completed.
</font><br><font size=4> </font><br><font size=4>3. Stopped jabberd on the Spacewalk proxy the client is
connected to, cleared jabberd database, and restarted jabberd. I've done
the same on the Spacewalk server, and tried them in different orders as
well. </font><br><font size=4> </font><br><font size=4>4. Manually running a shutdown -r now on the client. THIS
WORKS. When the system comes back up, any queued actions are picked up
and executed successfully. This is one of the main reasons it leads me
to believe there is an issue with the Schedule reboot API in Spacewalk
v2.2 (BTW, I've tried the API via Python script, as well as through the
WebUI, same results where the action is never marked Completed).</font><br><font size=4> </font><br><font size=4>5. Verified the client is running the latest versions
of osad, rhnsd, rhn-client-tools, rhn-setup, and rhn-check from the 2.2
repo</font><br><font size=4> </font><br><font size=4>6. Registered the client to a Spacewalk 2.0 environment.
Everything works as it should there. No issues. </font><br><font size=2 face="Calibri"> </font><p><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><font size=3 face="Helvetica">https://www.redhat.com/mailman/listinfo/spacewalk-list</font></a><br><tt><font size=2>This email originated from outside of the company.
 Please use discretion if opening attachments or clicking on links.<br><br>_______________________________________________<br>Spacewalk-list mailing list<br>Spacewalk-list@redhat.com<br></font></tt><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><tt><font size=2>https://www.redhat.com/mailman/listinfo/spacewalk-list</font></tt></a><br><BR>
<BR>
<BR>
**<BR>
<BR>
<BR>
<BR>
This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient.  Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law.  If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies.<BR>
<BR>
**<BR>