Benjamin W. Smith

Benjamin W. Smith

Benjamin W. Smith  //  Sysadmin by trade, Pythonista by passion. Dad to two boys and a girl. Guitarist. I like my coffee black, just like my metal.

Feb 28 / 10:00am

CentOS 5 yum grouplist wrong?

Is there something I’m missing here?

I ran yum groupinstall "Development Tools", it went well. Because I don’t trust software, I decided to verify with yum grouplist and was surprised to find “Development Tools” missing from the installed list. My lack of trust has been further validated :(.

Is yum trolling me?!

Problem?

# yum grouplist
Loaded plugins: fastestmirror
Setting up Group Process
Loading mirror speeds from cached hostfile
 * agcom: cf
 * base: cf
 * epel: cf
 * extras: cf
 * update: cf
Installed Groups:
   Dialup Networking Support
   Mail Server
   Network Servers
   Printing Support
   System Tools
   Yum Utilities
Available Groups:
   Administration Tools
   Horde
   Java
   Java Development
   KDE (K Desktop Environment)
   KDE Software Development
   KVM
   Legacy Network Server
   Legacy Software Development
   Legacy Software Support
   Mono
   MySQL Database
   News Server
   Office/Productivity
   OpenFabrics Enterprise Distribution
   PostgreSQL Database
   Ruby
   Server Configuration Tools
   Sound and Video
   Text-based Internet
   Tomboy
   Virtualization
   Web Development
   Web Server
   Window Managers
   Windows File Server
   X Software Development
   X Window System
   XFCE-4.4
Done

FFFFFFFUUUUUUUUUUUU

# yum groupinstall "Development Tools"
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * agcom: cf
 * base: cf
 * epel: cf
 * extras: cf
 * update: cf
Setting up Group Process
Checking for new repos for mirrors
Package flex-2.5.4a-41.fc6.x86_64 already installed and latest version
Package gcc-4.1.2-48.el5.x86_64 already installed and latest version
Package redhat-rpm-config-8.0.45-32.el5.centos.noarch already installed and latest version
Package strace-4.5.18-5.el5_5.5.x86_64 already installed and latest version
Package rpm-build-4.4.2.3-20.el5_5.1.x86_64 already installed and latest version
Package 1:make-3.81-3.el5.x86_64 already installed and latest version
Package 1:pkgconfig-0.21-2.el5.x86_64 already installed and latest version
Package gettext-0.14.6-4.el5.x86_64 already installed and latest version
Package gettext-0.14.6-4.el5.i386 already installed and latest version
Package automake-1.9.6-2.3.el5.noarch already installed and latest version
Package gdb-7.0.1-23.el5_5.2.x86_64 already installed and latest version
Package bison-2.3-2.1.x86_64 already installed and latest version
Package libtool-1.5.22-7.el5_4.x86_64 already installed and latest version
Package autoconf-2.59-12.noarch already installed and latest version
Package gcc-c++-4.1.2-48.el5.x86_64 already installed and latest version
Package binutils-2.17.50.0.6-14.el5.x86_64 already installed and latest version
Package ltrace-0.5-13.45svn.el5.x86_64 already installed and latest version
Package diffstat-1.41-1.2.3.el5.x86_64 already installed and latest version
Package splint-3.1.1-16.el5.x86_64 already installed and latest version
Package 1:valgrind-3.5.0-1.el5.x86_64 already installed and latest version
Package 1:valgrind-3.5.0-1.el5.i386 already installed and latest version
Package systemtap-1.1-3.el5_5.3.x86_64 already installed and latest version
Package subversion-1.4.6-0.1.el5.rf.x86_64 already installed and latest version
Package subversion-1.4.2-4.el5_3.1.i386 already installed and latest version
Package texinfo-4.8-14.el5.x86_64 already installed and latest version
Package python-ldap-2.2.0-2.1.x86_64 already installed and latest version
Package patchutils-0.2.31-2.2.2.x86_64 already installed and latest version
Package byacc-1.9-29.2.2.x86_64 already installed and latest version
Package gcc-gfortran-4.1.2-48.el5.x86_64 already installed and latest version
Package elfutils-0.137-3.el5.x86_64 already installed and latest version
Package rcs-5.7-30.1.x86_64 already installed and latest version
Package automake16-1.6.3-8.el5.1.noarch already installed and latest version
Package automake17-1.7.9-7.el5.2.noarch already installed and latest version
Package automake14-1.4p6-13.el5.1.noarch already installed and latest version
Package automake15-1.5-16.el5.2.noarch already installed and latest version
Package ctags-5.6-1.1.x86_64 already installed and latest version
Package dogtail-0.6.1-3.el5.noarch already installed and latest version
Package swig-1.3.29-2.el5.x86_64 already installed and latest version
Package dev86-0.16.17-2.2.x86_64 already installed and latest version
Package 1:doxygen-1.4.7-1.1.x86_64 already installed and latest version
Package indent-2.2.9-14.fc6.x86_64 already installed and latest version
Package cvs-1.11.22-7.el5.x86_64 already installed and latest version
Package pstack-1.2-7.2.2.x86_64 already installed and latest version
Package oprofile-0.9.4-15.el5.x86_64 already installed and latest version
Package cscope-15.5-15.1.el5_3.1.x86_64 already installed and latest version
No packages in any requested group available to install or update
Filed under  //  centos   yum  
Nov 21 / 10:17pm

CentOS 5 Upgrade and Yum

At the office I recently upgraded a machine to CentOS 5.2 from CentOS 4.7 (filesystem stayed intact). Everything was cool until I ran into a bit of an issue when attempting to update and regen the yum cache. I got a python traceback that looked like this:

# yum update
base      : ################################################## 2458/2458
update                    100% |=========================|  951 B    00:00
primary.xml.gz            100% |=========================| 242 kB    00:00
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 105, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 289, in doCommands
    self._getTs()
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 85, in _getTs
    self._getTsInfo()
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 91, in _getTsInfo
    self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 537, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 392, in _getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.4/site-packages/yum/repos.py", line 242, in populateSack
    sack.populate(repo, mdtype, callback, cacheonly)
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 168, in populate
    dobj = repo_cache_function(xml, csum)
  File "/usr/lib64/python2.4/site-packages/sqlitecachec.py", line 42, in getPrimary
    self.repoid))
TypeError: Can not prepare packages insertion: table packages has no column named location_base

Eeek! Got the same error when running yum makecache. Quick look at the traceback is somewhat obvious, the DB schema changed, but the DB didn’t get upgraded! Easy fix is to clear out your yum cache like so:

# cd /var/cache/yum
# rm -r *

And then you’ll want to regenerate your cache like so:

# yum makecache

Hope this helps anyone else who runs into this issue!

Filed under  //  centos   linux   yum  
Jan 17 / 4:04am

Yaaay blog spam!

So, I've noticed lately that one of my more popular blog entries has taken on some spam. I'll work on cleaning that up and implementing countermeasures.

In the mean time... I'm alive! Been working my tail off in preparation for Valentines day at work. It's the busiest time of the year for us. Just got back from VA where another sysadmin and I installed 50 new servers. It went well! Wrote some python to convert my inventory list from csv to our flat file format.

I've also been engineering a new syslogging system for our shop. It's a combination of a shell script that does archiving and checksum accounting, Splunk, and syslog-ng. Good times.

I've also had the (dis)pleasure of building RPM's lately....Not my favorite past-time. I really _really_ wish I could convince our team that the massive undertaking involved in converting from CentOS to debian would be worth it :). Not that I don't like CentOS, but I do love me some Debian.

That's all for now!

Filed under  //  bash   centos   spam   splunk   sysadmin   syslog-ng   work