Red Hat Bugzilla – Full Text Bug Listing
|Summary:||please backport YUM’s --setopt=exit_on_lock=true feature|
|Product:||Red Hat Enterprise Linux 5||Reporter:||Christoph Anton Mitterer <calestyo>|
|Status:||CLOSED WONTFIX||QA Contact:||BaseOS QE Security Team <qe-baseos-security>|
|Version:||5.10||CC:||james.antill, ksrot, lmiksik, tcallawa, zpavlas|
|Fixed In Version:||Doc Type:||Bug Fix|
|Doc Text:||Story Points:||---|
|Last Closed:||2013-12-18 16:40:06 EST||Type:||Bug|
|oVirt Team:||---||RHEL 7.3 requirements from Atomic Host:|
|Bug Depends On:|
Description Christoph Anton Mitterer 2012-09-27 19:34:54 EDT
Hi. I'm currently maintaining check_yum which is THE Nagios/Icinga check for the YUM package update status. A rather important feature of check_yum is its "--no-warn-on-lock" option, which makes that invocations of check_yum that fail (due to an already running/blocking YUM) are ignored. Otherwise one would get many false positives. Now the thing is that (since some time?) YUM blocks, when another YUM process is already running (which is undesired for check_yum, as it will run into a timeout, which must be considered an error). Now recent yum versions support a feature (--setopt=exit_on_lock=true) which makes YUM exit, when the lock cannot be gained. In a thread on yum-devel, James Antill suggested me that it should be very easy to backport that feature for RHEL5 and that I should ask here for it. Thanks, Chris.  https://code.google.com/p/check-yum/  http://lists.baseurl.org/pipermail/yum-devel/2012-September/009641.html
Comment 1 Zdeněk Pavlas 2013-03-21 08:44:46 EDT
Yes, it's simple. I have the backport ready.
Comment 2 RHEL Product and Program Management 2013-05-01 03:19:02 EDT
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate, in the next release of Red Hat Enterprise Linux.
Comment 3 James Antill 2013-12-18 16:40:06 EST
So I'm going to close this out now, as it's really too late in RHEL-5 to add those kinds of UI features. But if you do want them then the first version of yum for RHEL-6 did contain them, and could be rebuilt for RHEL-5. Also might be better to go straight to yum API instead of using cmd line client.