Kickstart packages being installed with release version 5_1

Support for webhosts that use CentOS
Post Reply
mfarver
Posts: 3
Joined: 2008/02/19 15:36:04

Kickstart packages being installed with release version 5_1

Post by mfarver » 2008/02/19 22:45:20

We are using kickstart to load systems and a odd problem arose when we upgraded the base image to 5.1.. New machines, once installed, have the release version set to "el5_1" which is then causing dependency problems.

$ rpm -qa|grep 5_1
postgresql-libs-8.1.11-1.el5_1.1
glibc-common-2.5-18.el5_1.1
glibc-devel-2.5-18.el5_1.1


# yum install gcc
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
CentOS-Base 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for gcc to pack into transaction set.
gcc-4.1.2-14.el5.i386.rpm 100% |=========================| 64 kB 00:00
---> Package gcc.i386 0:4.1.2-14.el5 set to be updated
--> Running transaction check
--> Processing Dependency: cpp = 4.1.2-14.el5 for package: gcc
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc
--> Processing Dependency: libgomp = 4.1.2-14.el5 for package: gcc
--> Processing Dependency: libgomp.so.1 for package: gcc
--> Processing Dependency: binutils >= 2.17.50.0.2-8 for package: gcc
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for binutils to pack into transaction set.
binutils-2.17.50.0.6-5.el 100% |=========================| 45 kB 00:00
---> Package binutils.i386 0:2.17.50.0.6-5.el5 set to be updated
---> Downloading header for libgomp to pack into transaction set.
libgomp-4.1.2-14.el5.i386 100% |=========================| 54 kB 00:00
---> Package libgomp.i386 0:4.1.2-14.el5 set to be updated
---> Downloading header for cpp to pack into transaction set.
cpp-4.1.2-14.el5.i386.rpm 100% |=========================| 57 kB 00:00
---> Package cpp.i386 0:4.1.2-14.el5 set to be updated
---> Downloading header for glibc-devel to pack into transaction set.
glibc-devel-2.5-18.i386.r 100% |=========================| 109 kB 00:00
---> Package glibc-devel.i386 0:2.5-18 set to be updated
--> Running transaction check
--> Processing Dependency: glibc-headers for package: glibc-devel
--> Processing Dependency: glibc-headers = 2.5-18 for package: glibc-devel
--> Processing Dependency: glibc = 2.5-18 for package: glibc-devel
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for glibc to pack into transaction set.
glibc-2.5-18.i386.rpm 100% |=========================| 142 kB 00:00
---> Package glibc.i386 0:2.5-18 set to be updated
---> Downloading header for glibc-headers to pack into transaction set.
glibc-headers-2.5-18.i386 100% |=========================| 142 kB 00:00
---> Package glibc-headers.i386 0:2.5-18 set to be updated
--> Running transaction check
--> Processing Dependency: glibc-common = 2.5-18 for package: glibc
--> Processing Dependency: kernel-headers for package: glibc-headers
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for kernel-headers to pack into transaction set.
kernel-headers-2.6.18-53. 100% |=========================| 165 kB 00:00
---> Package kernel-headers.i386 0:2.6.18-53.el5 set to be updated
--> Running transaction check
--> Processing Dependency: glibc-common = 2.5-18 for package: glibc
--> Finished Dependency Resolution
Error: Missing Dependency: glibc-common = 2.5-18 is needed by package glibc



I'm trying to figure out whats up, but I'm not sure where to start. Uninstalling the packages and letting yum reinstall them fixes the problem (except for things like glibc that can't exactly be reinstalled) so it seems like an issue with anaconda.

Any ideas where should I even look.. or should I just go back to 5.0?

Thanks
Mark Farver

mfarver
Posts: 3
Joined: 2008/02/19 15:36:04

Re: Kickstart packages being installed with release version 5_1

Post by mfarver » 2008/02/20 03:53:55

So I was completely wrong. The problem is not with the initial install. If I try to install software using yum against the CentOS Internet repositories I have no issues. Only when I use my local yum repository (the exact same one the system was kickstarted from) do I have issues.

What is the correct way to build a local yum repository? In my case I just run "createrepo -g repodata/comps.xml ." from the os/i386 directory of the CD image.

Weird
Mark
Weird.

User avatar
toracat
Forum Moderator
Posts: 7425
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Kickstart packages being installed with release version 5_1

Post by toracat » 2008/02/20 12:28:21

[quote]
mfarver wrote:

What is the correct way to build a local yum repository? In my case I just run "createrepo -g repodata/comps.xml ." from the os/i386 directory of the CD image.
[/quote]
How did you set up the base repo? Did you copy from the CD set and run createrepo? The command looks ok to me. If you copy the content of the DVD image, you don't need to run createrepo. The next question is how you created the update repo. Did you sync from a CentOS mirror? Again you should not need createrepo if it is the exact mirror of the remote site.

mfarver
Posts: 3
Joined: 2008/02/19 15:36:04

Re: Kickstart packages being installed with release version 5_1

Post by mfarver » 2008/02/20 15:39:29

I figured it out... someone commented out a line of code in our update script that creates a new directory for that day's updates and hardcoded the value instead. The script diff today's and yesterdays directories to figure out what needs to be merged into the repository. With the value hardcoded it never saw changes, and never updated the repository (and apparently the repository was in a broken state). Grr.. another example of Occam's Razor... Check the simple things first.

Now to go put the script into puppet/svn so I can catch future alterations.

Mark

Post Reply

Return to “CentOS 5 - Webhosting Support”