Subject: Re: [vserver] Can't install Centos guest after 5.3 upgrade
From: "John A. Sullivan III" <jsullivan@opensourcedevel.com>
Date: Mon, 06 Apr 2009 11:43:23 -0400

When you have it worked out, the rest of us contemplating a move to 5.3
would love to hear the details :)  Thanks - John

On Mon, 2009-04-06 at 10:21 -0500, John Alberts wrote:
> Thanks Herbert.  I'll give that a try.
> 
> John
> 
> 
> On Mon, Apr 6, 2009 at 3:14 AM, Herbert Poetzl <herbert@13thfloor.at> wrote:
> > On Fri, Apr 03, 2009 at 12:07:11PM -0500, John Alberts wrote:
> >> Herbert,
> >
> >> Sorry.  I meant to also mention that I looked into patching yum.
> >> I wasn't really sure how to do it.
> >
> >> I found patches in /usr/share/doc/util-vserver-build-0.30.216/
> >> with the latest version being yum-3.2.4-chroot.patch.
> >
> > that's good ...
> >
> >> It looks like I have a newer version of yum, because
> >> yum --version shows:
> >> [root@vserver util-vserver-build-0.30.216]# yum --version
> >> 3.2.19
> >>   Installed: yum-metadata-parser-1.1.2-2.el5.x86_64 at 2008-09-09 17:47
> >>   Built    : [] at 2008-05-24 19:52
> >>   Committed: James Antill <james.antill@redhat.com> at 2008-01-18 22:00
> >>
> >>   Installed: rpm-4.4.2.3-9.el5.x86_64 at 2009-04-02 14:17
> >>   Built    : [] at 2009-01-21 08:04
> >>   Committed: Panu Matilainen <pmatilai@redhat.com> at 2008-12-02 22:00
> >>
> >>   Installed: yum-3.2.19-18.el5.centos.noarch at 2009-04-02 14:49
> >>   Built    : [] at 2009-01-22 10:53
> >>   Committed: Karanbir Singh <kbsingh@centos.org> at 2009-01-22 22:00
> >
> > if the patch above fails for that one, you might
> > ask Daniel nicely to update the patch once again
> >
> >> How would I go about patching yum?
> >
> > get the source (wget, curl, etc ...), apply the patch
> > with patch (e.g. cd /path/to/source; patch -p1 </path/to/patch),
> > configure, compile, install (you might do all that in an
> > RPM spec file, to get a proper package too)
> >
> > HTH,
> > Herbert
> >
> >> Thanks
> >> John
> >
> >> On Fri, Apr 3, 2009 at 11:32 AM, Herbert Poetzl <herbert@13thfloor.at> wrote:
> >> > On Fri, Apr 03, 2009 at 10:47:00AM -0500, John Alberts wrote:
> >> >> Hi.  I have a CentOS host that I recently upgraded from 5.1 to 5.3.
> >> >> All of the guests that I currently have on their have been built the
> >> >> same way (using the yum build method).  Today, and I get a warning at
> >> >> the beginning about yum needing to be patched.  It then tries to build
> >> >> the guest but fails.  Does anyone have any idea how I can fix this
> >> >> please?
> >> >
> >> > well, my guess would be to patch yum :)
> >> >
> >> >> Here's the output of trying to install a guest:
> >> >>
> >> >> [root@vserver vservers]# vserver chidns01lsna build -m yum --context
> >> >> 1002 --hostname chidns01lsna.mydomain.com --interface eth0:10.1.1.1/24
> >> >> -- -d centos5
> >> >> You are using a version of yum which is insecure and broken in chroot
> >> >> related operations; either apply the patches shipped in the 'contrib/'
> >> >> directory of util-vserver, or ask the author of yum to apply them
> >> >> (preferred).
> >> >
> >> > sounds quite descriptive to me ... no?
> >> >
> >> >> In the meantime, 'vyum' will continue with dirty hacks which might not
> >> >> work when the vserver is running and local DOS attacks are possible.
> >> >
> >> > best,
> >> > Herbert
> >> >
> >> >> Execution will continue in 5 seconds...
> >> >>
> >> >> ================================================================================
> >> >>  Package            Arch         Version                       Repository  Size
> >> >> ================================================================================
> >> >> Installing:
> >> >>  glibc              x86_64       2.5-34                        base       4.7
M
> >> >>  glibc              i686         2.5-34                        base       5.2
M
> >> >> Installing for dependencies:
> >> >>  basesystem         noarch       8.0-5.1.1.el5.centos          base       2.8
k
> >> >>  filesystem         x86_64       2.4.0-2.el5.centos            base       117
k
> >> >>  glibc-common       x86_64       2.5-34                        base        16
M
> >> >>  libgcc             x86_64       4.1.2-44.el5                  base        96
k
> >> >>  setup              noarch       2.5.58-4.el5                  base       124
k
> >> >>  tzdata             noarch       2008i-1.el5                   base       756
k
> >> >>
> >> >> Transaction Summary
> >> >> ================================================================================
> >> >> Install      8 Package(s)
> >> >> Update       0 Package(s)
> >> >> Remove       0 Package(s)
> >> >>
> >> >> Total download size: 27 M
> >> >> Traceback (most recent call last):
> >> >>   File "/usr/lib/python2.4/site-packages/yum/rpmtrans.py", line 366, in callback
> >> >>   File "/usr/lib/python2.4/site-packages/yum/rpmtrans.py", line 400,
> >> >> in _transStart
> >> >>   File "/usr/lib/python2.4/site-packages/yum/rpmtrans.py", line 343, in ts_all
> >> >>   File "/usr/lib64/python2.4/os.py", line 156, in makedirs
> >> >>   File "/usr/lib64/python2.4/os.py", line 156, in makedirs
> >> >>   File "/usr/lib64/python2.4/os.py", line 156, in makedirs
> >> >>   File "/usr/lib64/python2.4/os.py", line 156, in makedirs
> >> >>   File "/usr/lib64/python2.4/os.py", line 156, in makedirs
> >> >>   File "/usr/lib64/python2.4/os.py", line 156, in makedirs
> >> >>   File "/usr/lib64/python2.4/os.py", line 156, in makedirs
> >> >>   File "/usr/lib64/python2.4/os.py", line 156, in makedirs
> >> >>   File "/usr/lib64/python2.4/os.py", line 156, in makedirs
> >> >>   File "/usr/lib64/python2.4/os.py", line 156, in makedirs
> >> >>   File "/usr/lib64/python2.4/os.py", line 156, in makedirs
> >> >>   File "/usr/lib64/python2.4/os.py", line 156, in makedirs
> >> >>   File "/usr/lib64/python2.4/os.py", line 156, in makedirs
> >> >>   File "/usr/lib64/python2.4/os.py", line 156, in makedirs
> >> >>   File "/usr/lib64/python2.4/os.py", line 156, in makedirs
> >> >>   File "/usr/lib64/python2.4/os.py", line 156, in makedirs
> >> >>   File "/usr/lib64/python2.4/os.py", line 156, in makedirs
> >> >>   File "/usr/lib64/python2.4/os.py", line 156, in makedirs
> >> >>   File "/usr/lib64/python2.4/os.py", line 156, in makedirs
> >> >>   File "/usr/lib64/python2.4/os.py", line 159, in makedirs
> >> >> OSError: [Errno 17] File exists: '/vservers/chidns01lsna/..'
> >> >> error: python callback <bound method RPMTransaction.callback of
> >> >> <yum.rpmtrans.RPMTransaction instance at 0x110c758>> failed, aborting!
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> John Alberts
> >> >
> >>
> >>
> >>
> >> --
> >> John Alberts
> >
> 
> 
> 
-- 
John A. Sullivan III
Open Source Development Corporation
+1 207-985-7880
jsullivan@opensourcedevel.com

http://www.spiritualoutreach.com
Making Christianity intelligible to secular society