On Fri, Oct 19, 2012 at 01:25:31PM +0200, Michael Calmer wrote:
> Hi,
> 
> with the new reboot needed feature introduced some month ago, we realized a 
> small issue. 
> 
> If a patch or package was installed which requires a reboot, the system got 
> the yellow banner on the systems details page. 
> 
> If now a reboot is executed and you look at the page again shortly after the 
> host is up, the banner is still there.
> 
> The reason is, that the uptime value is updated with first invocation of 
> rhn_check which happen in the default config of rhnsd between 2 and 6 hours 
> after rhnsd is started or in case of osad running when the first action is 
> scheduled.

Michael,

I'm sorry I only now got to your post. I have a question here -- I
assume the banner is there simply because the "system needs reboot"
condition is based on the rhnServer.last_boot value, being compared to
the package installation time. And until the server tells Spacewalk
it has rebooted, Spacewalk assumes it has not.

However, cannot the criteria for system needing reboot be amended
by also looking at the system's actions, checking if there is
a reboot.reboot action which was picked up after the package
installation date / package installation action pickup? That way
the feature would be purely server-based and work well even with old
production clients, and the client parts would be an enhancement of
the logic, not a mandatory part of the setup.

-- 
Jan Pazdziora
Principal Software Engineer, Satellite Engineering, Red Hat

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to