| Summary: | AttributeError: 'YumRepository' object has no attribute '_metadata_cache_req' | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Orion Poplawski <orion> |
| Component: | yum | Assignee: | Valentina Mukhamedzhanova <vmukhame> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.3 | CC: | dmach, james.antill, jpokorny |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | yum-3.4.3-150.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-09-24 12:34:30 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
I believed this is fixed in yum-3.4.3-150.el7. Looks like it. I can't reproduce it with that version. |
Description of problem: I'm seeing this with /etc/cron.hourly/0yum-hourly.cron: Traceback (most recent call last): File "/usr/sbin/yum-cron", line 729, in <module> main() File "/usr/sbin/yum-cron", line 726, in main base.updatesCheck() File "/usr/sbin/yum-cron", line 618, in updatesCheck self.populateUpdateMetadata() File "/usr/sbin/yum-cron", line 422, in populateUpdateMetadata self.pkgSack # honor skip_if_unavailable File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1071, in <lambda> pkgSack = property(fget=lambda self: self._getSacks(), File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 775, in _getSacks self.repos.populateSack(which=repos) File "/usr/lib/python2.7/site-packages/yum/repos.py", line 344, in populateSack self.doSetup() File "/usr/lib/python2.7/site-packages/yum/repos.py", line 157, in doSetup self.retrieveAllMD() File "/usr/lib/python2.7/site-packages/yum/repos.py", line 88, in retrieveAllMD dl = repo._async and repo._commonLoadRepoXML(repo) File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1469, in _commonLoadRepoXML if self.skip_if_unavailable and self._metadata_cache_req in ('write', 'read-only:future'): AttributeError: 'YumRepository' object has no attribute '_metadata_cache_req' This appears to be triggered by an issue with my local mirror: # yum makecache Loaded plugins: product-id, search-disabled-repos, subscription-manager CoRA | 3.6 kB 00:00:00 epel | 8.6 kB 00:00:00 http://epel.cora.nwra.com/7/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for epel: Damaged repomd.xml file but a better error message would be nice. Version-Release number of selected component (if applicable): yum-cron-3.4.3-148.el7.noarch