Modify

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:

Description

(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:
group:x86_64
/usr/local/lib/python2.6/site-packages/Bcfg2/Client/Tools/rpmtools.py:24: 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/Frame.py", line 82, in __init__
    self.tools.append(tool(self.logger, setup, config))
  File "/usr/local/lib/python2.6/site-packages/Bcfg2/Client/Tools/YUMng.py", line 80, in __init__
    self.yb.doTsSetup()
  File "/usr/lib64/python2.6/site-packages/yum/depsolve.py", line 84, in doTsSetup
    return self._getTs()
  File "/usr/lib64/python2.6/site-packages/yum/depsolve.py", line 99, in _getTs
    self._getTsInfo(remove_only)
  File "/usr/lib64/python2.6/site-packages/yum/depsolve.py", line 110, in _getTsInfo
    pkgSack = self.pkgSack
  File "/usr/lib64/python2.6/site-packages/yum/__init__.py", line 720, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib64/python2.6/site-packages/yum/__init__.py", line 549, in _getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib64/python2.6/site-packages/yum/repos.py", line 277, in populateSack
    sack.populate(repo, mdtype, callback, cacheonly)
  File "/usr/lib64/python2.6/site-packages/yum/yumRepo.py", line 164, in populate
    if self._check_db_version(repo, mydbtype):
  File "/usr/lib64/python2.6/site-packages/yum/yumRepo.py", line 223, in _check_db_version
    return repo._check_db_version(mdtype)
  File "/usr/lib64/python2.6/site-packages/yum/yumRepo.py", line 1245, in _check_db_version
    repoXML = self.repoXML
  File "/usr/lib64/python2.6/site-packages/yum/yumRepo.py", line 1408, in <lambda>
    repoXML = property(fget=lambda self: self._getRepoXML(),
  File "/usr/lib64/python2.6/site-packages/yum/yumRepo.py", 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:~ # 

Attachments

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.

View

Add a comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.