<html><body><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; color: #000000"><div>(sorry for topposting ... webmail)<br></div><div>The way I do it: run rhn_check at boot via cron:<br></div><div><br></div><div>@reboot root /usr/sbin/rhn_check</div><div><br></div><div>Franky<br></div><div><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>Van: </b>"Jeff Baldwin" <JeffB@knowclassic.com><br><b>Aan: </b>spacewalk-list@redhat.com<br><b>Verzonden: </b>Vrijdag 30 september 2016 16:10:35<br><b>Onderwerp: </b>[Spacewalk-list] Schedule Reboot (Bug?)<br><div><br></div><style><!--

@font-face
        {font-family:Times;
        panose-1:2 0 5 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}

p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:Calibri;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Calibri;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:Calibri;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><div class="WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt" data-mce-style="font-size: 11.0pt;">All,</span></p><p class="MsoNormal"><span style="font-size:11.0pt" data-mce-style="font-size: 11.0pt;"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt" data-mce-style="font-size: 11.0pt;">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:  <a href="https://www.redhat.com/archives/spacewalk-list/2014-October/msg00067.html" target="_blank" data-mce-href="https://www.redhat.com/archives/spacewalk-list/2014-October/msg00067.html"> https://www.redhat.com/archives/spacewalk-list/2014-October/msg00067.html</a></span><br data-mce-bogus="1"></p><p class="MsoNormal"><span style="font-size:11.0pt" data-mce-style="font-size: 11.0pt;"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt" data-mce-style="font-size: 11.0pt;">The scenario the user described below, still applies perfectly to my 2.5 install (his was 2.2).   </span></p><p class="MsoNormal"><span style="font-size:11.0pt" data-mce-style="font-size: 11.0pt;"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt" data-mce-style="font-size: 11.0pt;">Are we missing something?</span></p><p class="MsoNormal"><span style="font-size:11.0pt" data-mce-style="font-size: 11.0pt;"> </span></p><p class="MsoNormal" style="background:white" data-mce-style="background: white;"><span style="font-size:13.5pt;font-family:Times;color:black" data-mce-style="font-size: 13.5pt; font-family: Times; color: black;">Steps I've taken already:</span></p><p class="MsoNormal" style="background:white" data-mce-style="background: white;"><span style="font-size:13.5pt;font-family:Times;color:black" data-mce-style="font-size: 13.5pt; font-family: Times; color: black;"> </span></p><p class="MsoNormal" style="background:white" data-mce-style="background: white;"><span style="font-size:13.5pt;font-family:Times;color:black" data-mce-style="font-size: 13.5pt; font-family: Times; color: black;">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.</span></p><p class="MsoNormal" style="background:white" data-mce-style="background: white;"><span style="font-size:13.5pt;font-family:Times;color:black" data-mce-style="font-size: 13.5pt; font-family: Times; color: black;"> </span></p><p class="MsoNormal" style="background:white" data-mce-style="background: white;"><span style="font-size:13.5pt;font-family:Times;color:black" data-mce-style="font-size: 13.5pt; font-family: Times; color: black;">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. </span></p><p class="MsoNormal" style="background:white" data-mce-style="background: white;"><span style="font-size:13.5pt;font-family:Times;color:black" data-mce-style="font-size: 13.5pt; font-family: Times; color: black;"> </span></p><p class="MsoNormal" style="background:white" data-mce-style="background: white;"><span style="font-size:13.5pt;font-family:Times;color:black" data-mce-style="font-size: 13.5pt; font-family: Times; color: black;">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. </span></p><p class="MsoNormal" style="background:white" data-mce-style="background: white;"><span style="font-size:13.5pt;font-family:Times;color:black" data-mce-style="font-size: 13.5pt; font-family: Times; color: black;"> </span></p><p class="MsoNormal" style="background:white" data-mce-style="background: white;"><span style="font-size:13.5pt;font-family:Times;color:black" data-mce-style="font-size: 13.5pt; font-family: Times; color: black;">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).</span></p><p class="MsoNormal" style="background:white" data-mce-style="background: white;"><span style="font-size:13.5pt;font-family:Times;color:black" data-mce-style="font-size: 13.5pt; font-family: Times; color: black;"> </span></p><p class="MsoNormal" style="background:white" data-mce-style="background: white;"><span style="font-size:13.5pt;font-family:Times;color:black" data-mce-style="font-size: 13.5pt; font-family: Times; color: black;">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</span></p><p class="MsoNormal" style="background:white" data-mce-style="background: white;"><span style="font-size:13.5pt;font-family:Times;color:black" data-mce-style="font-size: 13.5pt; font-family: Times; color: black;"> </span></p><p class="MsoNormal" style="background:white" data-mce-style="background: white;"><span style="font-size:13.5pt;font-family:Times;color:black" data-mce-style="font-size: 13.5pt; font-family: Times; color: black;">6. Registered the client to a Spacewalk 2.0 environment. Everything works as it should there. No issues. </span></p><p class="MsoNormal"><span data-mce-style="font-size: 11.0pt;" style="font-size:11.0pt"> </span><br></p></div>https://www.redhat.com/mailman/listinfo/spacewalk-list</div><div><br></div></div></body></html>