On one of our environments we have two Maven servers (stage & prod) and on both 
yum seems to have broken:

$ yum list | grep salt
Traceback (most recent call last):
  File "/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 370, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 179, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 583, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, 
self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 659, in doCommand
    repoid=repoid)
  File "/usr/share/yum-cli/cli.py", line 1410, in returnPkgLists
    ignore_case=True, repoid=repoid)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 2973, in 
doPackageLists
    avail = self.pkgSack.returnNewestByNameArch(patterns=patterns,
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1074, in 
<lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 778, in 
_getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.7/site-packages/yum/repos.py", line 386, in 
populateSack
    sack.populate(repo, mdtype, callback, cacheonly)
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 263, in populate
    dobj = repo_cache_function(xml, csum)
  File "/usr/lib64/python2.7/site-packages/sqlitecachec.py", line 46, in 
getPrimary
    self.repoid))
TypeError: Can not create requiresname index: unable to open database file

Googling the last line gives me variations on rebuilding the yum database:

yum clean all
rm -f /var/lib/rpm/__db*
rpm --rebuilddb

But that doesn't fix the problem.

Perhaps Spacewalk has a separate database for yum and that needs to be rebuilt? 
 But then why is it just the Maven servers? (the rest of the servers on the 
environment have no problem, approximately 50 VMs)

Anyone else seen this kind of issue?

--
Ray Clouse | Senior Systems Application Engineer | 3349 Michelson Drive Suite 
150 | Irvine, CA 92612
949.428.5880 [o] | 949.870.6935 [m]
[cid:[email protected]]<http://www.hireright.com/>

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to