<br><tt><font size=2>Dan Williams <dcbw@redhat.com> wrote on 10/30/2006
03:53:13 PM:<br>
<br>
> On Fri, 2006-10-27 at 02:01 -0400, Joe Todaro wrote:<br>
> > <br>
> > Hi, <br>
> > <br>
> > Has anyone ever seen a yum/depsolve-related error like this before
in<br>
> > their *plague-0.5.0* build environment, and then tried *killing*
the<br>
> > job that had caused it?   This was problem three of three
which I had<br>
> > mentioned in my previous posts.   And it too had surfaced
last week<br>
> > while we started stress-testing our buildsystem.   Actually,
the error<br>
> > you see below in itself was *not* the problem (we knew how to
fix<br>
> > that) -- rather, it was the fact that we were *unable* to kill
the job<br>
> > (plague-client kill 204) that was responsible for causing the
error. <br>
> <br>
> Can you tell me a few things about your plague server?<br>
> <br>
> 1) What version of yum is it running?</font></tt>
<br>
<br><tt><font size=2>yum-2.4.2-2</font></tt>
<br><tt><font size=2><br>
> 2) What version of yum-utils if any?</font></tt>
<br>
<br><tt><font size=2>yum-utils-0.5-1.c4</font></tt>
<br><tt><font size=2><br>
> 3) the output of:<br>
> <br>
> rpm -qf /usr/lib/python2.3/site-packages/repomd/mdErrors.py</font></tt>
<br>
<br><tt><font size=2>yum-2.4.2-2</font></tt>
<br><tt><font size=2><br>
> rpm -qf /usr/lib/python2.4/site-packages/repomd/mdErrors.py</font></tt>
<br>
<br><tt><font size=2>error: file /usr/lib/python2.4/site-packages/repomd/mdErrors.py:
No such file or directory</font></tt>
<br><tt><font size=2><br>
> <br>
> 4) Next, can you try:<br>
> <br>
> python<br>
> >>> import repomd.mdErrors<br>
> >>> repomd.mdErrors.PackageSackError</font></tt>
<br>
<br><tt><font size=2>Python 2.3.4 (#1, Feb  6 2006, 10:38:45)</font></tt>
<br><tt><font size=2>[GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2</font></tt>
<br><tt><font size=2>Type "help", "copyright", "credits"
or "license" for more information.</font></tt>
<br><tt><font size=2>>>> import repomd.mdErrors</font></tt>
<br><tt><font size=2>>>> repomd.mdErrors.PackageSackError</font></tt>
<br><tt><font size=2><class repomd.mdErrors.PackageSackError at 0x2a955e80b0></font></tt>
<br><tt><font size=2>>>></font></tt>
<br><tt><font size=2><br>
> <br>
> 5) Then try:<br>
> <br>
> python<br>
> >>> import yum<br>
> >>> yum.Errors.PackageSackError</font></tt>
<br>
<br><tt><font size=2>Python 2.3.4 (#1, Feb  6 2006, 10:38:45)</font></tt>
<br><tt><font size=2>[GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2</font></tt>
<br><tt><font size=2>Type "help", "copyright", "credits"
or "license" for more information.</font></tt>
<br><tt><font size=2>>>> import yum</font></tt>
<br><tt><font size=2>>>> yum.Errors.PackageSackError</font></tt>
<br><tt><font size=2>Traceback (most recent call last):</font></tt>
<br><tt><font size=2>  File "<stdin>", line 1, in
?</font></tt>
<br><tt><font size=2>AttributeError: 'module' object has no attribute 'PackageSackError'</font></tt>
<br><tt><font size=2>>>></font></tt>
<br><tt><font size=2><br>
> <br>
> <br>
> I think this is an issue of the yum depsolve stuff moving from yum-utils<br>
> to yum itself, we just need to figure out what the permutations are
and<br>
> then work around them in the source.<br>
> <br>
> <br>
> Thanks,<br>
> Dan</font></tt>
<br>
<br><tt><font size=2>Thank You,</font></tt>
<br><tt><font size=2>Joe</font></tt>
<br><tt><font size=2><br>
> <br>
> > ====== THE ERROR ====== <br>
> > 204 (fuse-sshfs): Starting tag 'fuse-sshfs-1_6-4_ocrhel4' on
target<br>
> > 'oc-rhel4-pre' <br>
> > 204 (fuse-sshfs): Requesting depsolve... <br>
> > 204 (fuse-sshfs): Starting depsolve for arches: ['x86_64', 'i386',<br>
> > 'i686']. <br>
> > Exception in thread PackageJob: 204/fuse-sshfs: <br>
> > Traceback (most recent call last): <br>
> >   File "/usr/lib64/python2.3/threading.py", line
436, in __bootstrap <br>
> >     self.run() <br>
> >   File "/usr/share/plague/server/PackageJob.py",
line 86, in run <br>
> >     self._pkg_job.process() <br>
> >   File "/usr/share/plague/server/PackageJob.py",
line 753, in process <br>
> >     if func(): <br>
> >   File "/usr/share/plague/server/PackageJob.py",
line 618, in<br>
> > _stage_depsolve <br>
> >     if self._arch_deps_solved(arch) == False: <br>
> >   File "/usr/share/plague/server/PackageJob.py",
line 562, in<br>
> > _arch_deps_solved <br>
> >     except yum.Errors.PackageSackError, exc: <br>
> > AttributeError: 'module' object has no attribute 'PackageSackError'
<br>
> > <br>
> > ====== OUR FIX ======  <br>
> > We updated line 680 in the *die* method of the<br>
> > */usr/share/plague/server/PackageJob.py * module.   Here's
the patch: <br>
> > <br>
> > <br>
> > Again, can someone please review the fix..  We just want
to make sure<br>
> > that it won't come back to *haunt* us later on / or possibly
even be<br>
> > *masking* another problem.   Thank you. <br>
> > <br>
> > -Joe <br>
> > --<br>
> > Fedora-buildsys-list mailing list<br>
> > Fedora-buildsys-list@redhat.com<br>
> > https://www.redhat.com/mailman/listinfo/fedora-buildsys-list<br>
> <br>
</font></tt>