Subject: Error with vserver build and "yum" method on CentOS
From: Xavier Montagutelli <xavier.montagutelli@unilim.fr>
Date: Thu, 27 Aug 2009 09:47:13 +0200

Hello,

I try to build a new VServer on a CentOS (5.3) machine. My own kernel is 
2.6.30.5-vs2.3.0.36.14-pre5

vserver vs build --context 100 .....  -m yum -- -d centos5

I first tried the util-vserver package version 0.30.215, with the following 
error :

rpm-fake-resolver: vc_ctx_migrate(): No such process                               
                                       
rpm-fake.so: failed to initialize communication with resolver                      
                                       

Now I try version 0.30.216-pre2841. It's better, but I still have an error :

You are using a version of yum which is insecure and broken in chroot
related operations; either apply the patches shipped in the 'contrib/'
[..]
Transaction Summary
===================================================================================================================================================
Install      8 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 28 M
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
Importing GPG key 0xE8562897 "CentOS-5 Key (CentOS 5 Official Signing Key) 
<centos-5-key@centos.org>" from http://mirror.centos.org/centos/RPM-GPG-KEY-
CentOS-5
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
[..]
OSError: [Errno 17] File exists: '/vservers/vs/..'
error: python callback <bound method RPMTransaction.callback of 
<yum.rpmtrans.RPMTransaction instance at 0xc28b90>> failed, aborting!


Any idea ?



# sh ~/testme.sh
Linux-VServer Test [V0.17] Copyright (C) 2003-2006 H.Poetzl
chcontext is working.
chbind is working.
Linux 2.6.30.5-vs2.3.0.36.14-pre5 #5 SMP Wed Aug 26 11:30:36 CEST 2009 x86_64
Ea 0.30.216 236/glibc (DSa) <v13,net,v21,v22,v23,netv2>
VCI: 0002:0304 236 13000ff1 (TbsPHIiW)
---
[000]# succeeded.
[001]# succeeded.
[011]# succeeded.
[031]# succeeded.
[101]# succeeded.
[102]# succeeded.
[201]# succeeded.
[202]# succeeded.

-- 
Xavier Montagutelli                      Tel : +33 (0)5 55 45 77 20
Service Commun Informatique              Fax : +33 (0)5 55 45 75 95
Universite de Limoges
123, avenue Albert Thomas
87060 Limoges cedex