[Yum-devel] Weirdo problem with yum fastestmirror plugin in kickstart %post
Panu Matilainen
pmatilai at laiskiainen.org
Sat Sep 10 08:26:23 UTC 2005
On Wed, 7 Sep 2005, Panu Matilainen wrote:
> Hi,
>
> Encountered a rather weird problem with yum fastestmirror plugin
> (http://people.redhat.com/lmacken/fastestmirror.py) today - if it gets
> run in kickstart %post bad things start happening: it seems to die
> (according to strace + stderr output) with python threading module
> internal exception, caused by the sock.connect((self.host, 80)) timing
> out in some abnormal way or something. Running the plugin in verbose
> mode reveals it manages to get the first result from the actually
> fastest mirror back and then it hangs and eventually dies. What makes it
> so bleeping weird is that if you switch to the terminal behind alt-f2
> during %post before rebooting and chroot to /mnt/sysimage the thing runs
> just fine.
>
> The environment is RHEL 4, haven't tried with FC as I don't have similar
> kickstart stuff readily set up for that. The fact that it's threading
> related makes me think of some sort of NPTL vs linuxthreads mismatch but
> AFAIK anaconda doesn't run under any LD_ASSUME_KERNEL compat stuff ...
> Any ideas what might be sufficiently different in the environment in %
> post itself versus 'chroot /mnt/sysimage' to cause something like that?
Just a FYI followup on this: Running the %post with LD_ASSUME_KERNEL=2.4.1
(just picked a random variant, didn't try the others) makes the threading
in fastestmirror plugin happy. However that makes rpm and thus yum very
unhappy in turn so it's not a solution.
"Solved" by making a dumb threadless variant of fastestmirror (tried the
-asyncore version as well but that didn't seem to work at all on RHEL 4,
didn't have time to look into it further). Sure it's a bit slower but
acceptably so in this environment with limited number of mirrors.
- Panu -
More information about the Yum-devel
mailing list