Ticket #914 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

YUMng breaks if one of the repos is unavailable

Reported by: m4z <[email protected]…> Owned by: desai
Priority: minor Milestone: Bcfg2 1.1.0 Release
Component: bcfg2-client Version: 1.0
Keywords: Cc:


(Version 1.0.1)

On a client with multiple repositories, if one repo is unavailable for some reason, things break:

someclient:~ # bcfg2 -nqv
Running probe groups
Probe groups has result:
/usr/local/lib/python2.6/site-packages/Bcfg2/Client/Tools/ DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
Failed to instantiate tool Bcfg2.Client.Tools.YUMng.YUMng
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/site-packages/Bcfg2/Client/", line 82, in __init__, setup, config))
  File "/usr/local/lib/python2.6/site-packages/Bcfg2/Client/Tools/", line 80, in __init__
  File "/usr/lib64/python2.6/site-packages/yum/", line 84, in doTsSetup
    return self._getTs()
  File "/usr/lib64/python2.6/site-packages/yum/", line 99, in _getTs
  File "/usr/lib64/python2.6/site-packages/yum/", line 110, in _getTsInfo
    pkgSack = self.pkgSack
  File "/usr/lib64/python2.6/site-packages/yum/", line 720, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib64/python2.6/site-packages/yum/", line 549, in _getSacks
  File "/usr/lib64/python2.6/site-packages/yum/", line 277, in populateSack
    sack.populate(repo, mdtype, callback, cacheonly)
  File "/usr/lib64/python2.6/site-packages/yum/", line 164, in populate
    if self._check_db_version(repo, mydbtype):
  File "/usr/lib64/python2.6/site-packages/yum/", line 223, in _check_db_version
    return repo._check_db_version(mdtype)
  File "/usr/lib64/python2.6/site-packages/yum/", line 1245, in _check_db_version
    repoXML = self.repoXML
  File "/usr/lib64/python2.6/site-packages/yum/", line 1408, in <lambda>
    repoXML = property(fget=lambda self: self._getRepoXML(),
  File "/usr/lib64/python2.6/site-packages/yum/", line 1404, in _getRepoXML
    raise Errors.RepoError, msg
RepoError: Cannot retrieve repository metadata (repomd.xml) for repository: some-nonexisting-repo. Please verify its path and try again
Loaded tool drivers:
 Action     Chkconfig  POSIX      RPMng     
The following entries are not handled by any tool:
 Package:yum:ConsoleKit                            Package:yum:licenses
Total managed entries:	402
Unmanaged entries:	370

someclient:~ # 


Change History

comment:1 Changed 13 years ago by desai

  • Status changed from new to closed
  • Resolution set to fixed

I think this will be fixed in the version in 1.1.0rc5. Reopen if this is not the case.

comment:2 Changed 13 years ago by solj

  • Milestone changed from Bcfg2 1.2.0 Release to Bcfg2 1.1.0 Release

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.