Red Hat Bugzilla – Bug 241987
FC7 Pirut (and the others too)
Last modified: 2007-11-30 17:12:05 EST
Description of problem:
No application lock between pirut, and yum. Results in pirut aborting because
the program to be installed was installed a few minutes earlier then pirut
arrived at attempting to do the same install.
Result-- Pirut aborts.
Version-Release number of selected component (if applicable):
start pirut, then start yum
Steps to Reproduce:
Yum should not run if pirut is running, and vice versa.
To remedy the problem, rpm -e rpm file that pirut wants to install, then restart
pirut. There are other methods as well, but this is and safer one to do.
Here is more clarification.
I started Pirut, and almost right away, I started yum to do some installs that
were not in the items selected for Pirut. However, with some common
dependencies, yum achieved its install before pirut. When pirut arrived at the
identical dependency, it borked, (A new word to replace soft abort).
It is not a show stopper. It means we need to make pirut idiot proof. And I fall
into the latter category.
They should both be taking /var/run/yum.pid as a lock file and checking to
ensure that there's nothing else running. I just tried starting them in both
orders without problems. Can you confirm that /var/run/yum.pid is getting created?
Yes, but is / was there a race condition such that either yum or pirut started
just before the other. I may have selected yum and also triggered pirut, or vice
Anyway, I did a no-no, and it happened. I don't expect to do this again.
Yeah, but in theory, before we do anything "real", we're taking the lock in
both. And if taking the lock fails, then an exception gets raised leading to
either a dialog and exiting in pirut or an error message on the command line in yum.
I'll try adding some sleeps in places to try to make it easier to reproduce, but
just generally trying, I get the expected behavior
I just have to use common sense and the "race" problem will be no more.
Thank you for the update.
Here is another issue (off topic). I have 2 hard drives with 2 fedora 7 systems.
(/dev/sda) with 32 bit fedora and /dev/sdb with 64 bit fedora. Pirup, when I
boot from the bios setting for the 64 bit system, also ends up copying in 32 bit
code. I dont know if this was intended or just poor filtering.
I manually dropped the 32 bit code after execution by using yumex, and nothing
that I deleted caused fedora to break.