#128: pst: Create a mechanism to ensure test clients are fully up-to-date
---------------------+------------------------------------------------------
Reporter: kparal | Owner:
Type: task | Status: new
Priority: major | Milestone: Package Sanity Tests
Component: tests | Version: 1.0
Resolution: | Keywords: tps
---------------------+------------------------------------------------------
Comment (by kparal):
skvidal came to help us in this noble quest, thank you!
skvidal: you need something on your test systems to tell you if they are
current and if they need a reboot?[[BR]]
skvidal: updated is easy - you can do it in a few lines of python using
yum - - in need of a reboot is also do-able - by checking rhe running
kernel vs the latest installed kernel and then running needs-
restarting[[BR]]
kparal: may also some other components apart from kernel require
restart?[[BR]]
skvidal: yes - which is what needs-restarting is a about[[BR]]
skvidal: it tells you which programs that are currently running are NOT
running the latest version installed[[BR]]
kparal: and that is a method inside yum API?[[BR]]
skvidal: yes, in fact it is, now[[BR]]
kparal: that's absolutely cool, thank you[[BR]]
skvidal: well - to be fair - its a combination of a couple of functions in
yum's api[[BR]]
skvidal: check out
http://yum.baseurl.org/gitweb?p=yum-utils.git;a=blob;f
=needs-restarting.py;h=2c419486b2724896dc38625761f108499c17e1d1;hb=HEAD
[[BR]]
skvidal: the functions you need are
http://yum.baseurl.org/gitweb?p=yum.git;a=blob;f=yum/misc.py;h=66b0653583...
--
Ticket URL: <
https://fedorahosted.org/autoqa/ticket/128#comment:1>
AutoQA <
http://autoqa.fedorahosted.org>
Automated QA project