Re: [Vserver] Error when creating centos min vserver

From: Peter McGregor <peter9540_at_lycos.com>
Date: Thu 03 Nov 2005 - 10:34:29 GMT
Message-Id: <20051103103429.6708F86B11@ws7-1.us4.outblaze.com>

Hello

I've build a new yum rpm for centos4 incorporating the patch for chroot.
(I used www.jpackage.org to help with the rpm building and
http://www-128.ibm.com/developerworks/library/l-rpm2/ to understand the patching process)

It basically works a lot better now.
However I think there are still 2 problems.
1/ It seems to be very fragile when finding files in a repository. Often yum will say it cannot find the file.
When yum gets run again, it seems to find the file and then falls over again somewhere later with the same error,
but with a different file.
2/There are many packages where yum says
eg
No Match for argument: indexhtml-4-1.centos4
No Match for argument: redhat-logos-1.1.25-1.centos4.3
No Match for argument: setup-2.5.37-1.1
No Match for argument: tzdata-2004e-2
No Match for argument: glibc-2.3.4-2

Yum can find some files, but not all of them. The corresponding list of files in my "01" file
(copied from the centos list on the vserver site) is
indexhtml-4-1.centos4
redhat-logos-1.1.25-1.centos4.3
setup-2.5.37-1.1
basesystem-8.0-4
tzdata-2004e-2
glibc-2.3.4-2

So it seems to have found basesystem-8.0-4 ok.

Example of running yum
*****************************************************************************************

glibc-common-2.3.4-2.13.i 100% |=========================| 636 kB 00:20
---> Package glibc-common.i386 0:2.3.4-2.13 set to be updated
---> Downloading header for hwdata to pack into transaction set.
hwdata-0.146.12.EL-1.noar 100% |=========================| 17 kB 00:00
---> Package hwdata.noarch 0:0.146.12.EL-1 set to be updated
---> Downloading header for pciutils to pack into transaction set.
Error: failure: CentOS/RPMS/pciutils-2.1.99.test8-3.1.i386.rpm from base: [Errno 256] No more mirrors to try.
rm -rf /etc/vservers/.defaults/vdirbase/min-centos4 /etc/vservers/min-centos4 /etc/vservers/.defaults/vdirbase/.pkg/min-centos4
[root@tiger ~]# ./build_vserver_guest.sh
Renamed '/etc/vservers/.defaults/vdirbase/min-centos4' to '/etc/vservers/.defaults/vdirbase/min-centos4.~1131012443~'
Renamed '/etc/vservers/min-centos4' to '/etc/vservers/min-centos4.~1131012443~'
Renamed '/etc/vservers/.defaults/vdirbase/.pkg/min-centos4' to '/etc/vservers/.defaults/vdirbase/.pkg/min-centos4.~1131012443~'
Setting up Install Process
Setting up repositories
update 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 16 kB 00:00
update : ################################################## 47/47
Added 47 new packages, deleted 0 old in 0.59 seconds
primary.xml.gz 100% |=========================| 466 kB 00:14
base : ################################################## 1434/1434
Added 1434 new packages, deleted 0 old in 12.58 seconds
primary.xml.gz 100% |=========================| 157 B 00:00
Added 0 new packages, deleted 0 old in 0.01 seconds
primary.xml.gz 100% |=========================| 9.3 kB 00:00
extras : ################################################## 33/33
Added 33 new packages, deleted 0 old in 0.36 seconds
Parsing package install arguments
No Match for argument: indexhtml-4-1.centos4
No Match for argument: redhat-logos-1.1.25-1.centos4.3
No Match for argument: setup-2.5.37-1.1
No Match for argument: tzdata-2004e-2
No Match for argument: glibc-2.3.4-2
No Match for argument: chkconfig-1.3.11.2-1
No Match for argument: dmraid-1.0.0.rc5f-rhel4.1
No Match for argument: iputils-20020927-16
No Match for argument: centos-release-4-0.1
No Match for argument: net-tools-1.60-37
No Match for argument: perl-5.8.5-12.1
No Match for argument: popt-1.9.1-7_nonptl
No Match for argument: rpmdb-CentOS-4.0-0.20050228
No Match for argument: vim-minimal-6.3.046-0.40E.4
No Match for argument: cpio-2.5-7.EL4.1
No Match for argument: coreutils-5.2.1-31
No Match for argument: grub-0.95-3.1
No Match for argument: krb5-libs-1.3.4-10
No Match for argument: openssl-0.9.7a-43.1
No Match for argument: rpm-libs-4.3.3-7_nonptl
No Match for argument: shadow-utils-4.0.3-41.1
No Match for argument: dbus-glib-0.22-11.EL
No Match for argument: nscd-2.3.4-2
No Match for argument: pam-0.77-65.1
No Match for argument: policycoreutils-1.18.1-4
No Match for argument: SysVinit-2.85-34
No Match for argument: lvm2-2.00.31-1.0.RHEL4
No Match for argument: kudzu-1.1.95.8-1
No Match for argument: comps-4.0CENTOS-0.20050228
No Match for argument: rmt-0.4b37-1
No Match for argument: bzip2-1.0.2-13
No Match for argument: logrotate-3.7.1-2
No Match for argument: rsh-0.17-25.1
No Match for argument: netconfig-0.8.21-1
No Match for argument: unix2dos-2.2-24
No Match for argument: binutils-2.15.92.0.2-10.EL4
No Match for argument: krb5-workstation-1.3.4-10
No Match for argument: cups-libs-1.1.22-0.rc1.9.6
No Match for argument: pdksh-5.2.14-30
No Match for argument: psacct-6.3.2-31
No Match for argument: rhnlib-1.8-6.p23
No Match for argument: lockdev-1.0.1-3
No Match for argument: rpm-python-4.3.3-7_nonptl
No Match for argument: sysreport-1.3.13-1
No Match for argument: wget-1.9.1-17
No Match for argument: xorg-x11-Mesa-libGL-6.8.1-23.EL
No Match for argument: ipsec-tools-0.3.3-2.1
No Match for argument: kernel-utils-2.4-13.1.48
No Match for argument: autofs-4.1.3-67
No Match for argument: nss_ldap-226-1
No Match for argument: netdump-0.7.4-2
No Match for argument: pciutils-2.1.99.test8-3
No Match for argument: tcpdump-3.8.2-7
No Match for argument: vixie-cron-4.1-20_EL
No Match for argument: cups-1.1.22-0.rc1.9.6
No Match for argument: yum-2.2.0-1.centos4.2
No Match for argument: hwdata-0.146.1.EL-1
No Match for argument: libgcc-3.4.3-9.EL4
No Match for argument: glibc-common-2.3.4-2
No Match for argument: audit-0.5-1
No Match for argument: bzip2-libs-1.0.2-13
No Match for argument: device-mapper-1.00.19-2
No Match for argument: e2fsprogs-1.35-11.6.EL4
No Match for argument: libstdc++-3.4.3-9.EL4
No Match for argument: pcre-4.5-3
No Match for argument: hotplug-2004_04_01-7.2
No Match for argument: zlib-1.2.1.2-1
No Match for argument: gzip-1.3.3-13
No Match for argument: procps-3.2.3-7EL
No Match for argument: rhpl-0.148.2-1
No Match for argument: dbus-0.22-11.EL
No Match for argument: rpm-4.3.3-7_nonptl
No Match for argument: tar-1.14-4
No Match for argument: authconfig-4.6.5-3.1
No Match for argument: util-linux-2.12a-16.EL4.6
No Match for argument: udev-039-10.8.EL4
No Match for argument: initscripts-7.93.11.EL-1.centos4
No Match for argument: mkinitrd-4.1.18-2
No Match for argument: openldap-2.2.13-2
No Match for argument: passwd-0.68-10
No Match for argument: centos-yumconf-4-2
No Match for argument: man-pages-1.67-3
No Match for argument: dump-0.4b37-1
No Match for argument: lsof-4.72-1
No Match for argument: diskdumputils-0.6.4-0
No Match for argument: rdist-6.1.5-38
No Match for argument: ntsysv-1.3.11.2-1
No Match for argument: telnet-0.17-30
No Match for argument: crash-3.10-1
No Match for argument: at-3.1.8-60
No Match for argument: logwatch-5.2.2-1
No Match for argument: pam_krb5-2.1.2-1
No Match for argument: slocate-2.7-12.RHEL4
No Match for argument: xorg-x11-libs-6.8.1-23.EL
No Match for argument: sudo-1.6.7p5-30.1
No Match for argument: libpcap-0.8.3-7
No Match for argument: openssh-3.9p1-8.RHEL4.1
No Match for argument: openssh-clients-3.9p1-8.RHEL4.1
No Match for argument: openssh-server-3.9p1-8.RHEL4.1
No Match for argument: pcmcia-cs-3.2.7-1.14
No Match for argument: nfs-utils-1.0.6-46
No Match for argument: system-config-securitylevel-tui-1.4.19.1-1
No Match for argument: up2date-4.4.5-1.centos4.3
No Match for argument: xinetd-2.3.13-4
No Match for argument: redhat-lsb-1.3-5.2
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for tcp_wrappers to pack into transaction set.
tcp_wrappers-7.6-37.2.i38 100% |=========================| 7.7 kB 00:00
---> Package tcp_wrappers.i386 0:7.6-37.2 set to be updated
---> Downloading header for xmlsec1-openssl to pack into transaction set.
xmlsec1-openssl-1.2.6-3.i 100% |=========================| 3.5 kB 00:00
---> Package xmlsec1-openssl.i386 0:1.2.6-3 set to be updated
---> Downloading header for symlinks to pack into transaction set.
symlinks-1.2-22.i386.rpm 100% |=========================| 3.6 kB 00:00
---> Package symlinks.i386 0:1.2-22 set to be updated
---> Downloading header for traceroute to pack into transaction set.
traceroute-1.4a12-24.i386 100% |=========================| 7.0 kB 00:00
---> Package traceroute.i386 0:1.4a12-24 set to be updated
---> Downloading header for cracklib-dicts to pack into transaction set.
cracklib-dicts-2.7-29.i38 100% |=========================| 5.8 kB 00:00
---> Package cracklib-dicts.i386 0:2.7-29 set to be updated
---> Downloading header for jpackage-utils to pack into transaction set.
jpackage-utils-1.6.0-2jpp 100% |=============

***********************************************************************************
NB yum will fall over somewhere else,saying it cannot find a file - error 256

My CentOS-Base.rep looks like

[root@tiger yum.repos.d]# cat CentOS-Base.repo
[base]
name=CentOS-4.2 - Base
baseurl=http://mirror.centos.org/centos/4/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

#released updates
[update]
name=CentOS-4.2 - Updates
baseurl=http://mirror.centos.org/centos/4/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

...etc

Thanks for helping.

Peter

Hi Enrico

Does this mean I should patch vyum?
> Try to apply
>
>
> http://savannah.nongnu.org/cgi-bin/viewcvs/util-vserver/util-vserver/scripts/vyum-worker.diff?r1=1.5&r2=1.6
>
> (not in 0.209). yum-2.4 problems were easier to solve than I thought... ;)
>

-- 
_______________________________________________
Search for businesses by name, location, or phone number.  -Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Thu Nov 3 10:34:54 2005
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 03 Nov 2005 - 10:35:01 GMT by hypermail 2.1.8