Bug 952300
| Summary: | Client configuration RPMs are not compatible with old RHEL5 (e.g. RHEL5.6) | ||
|---|---|---|---|
| Product: | Red Hat Update Infrastructure for Cloud Providers | Reporter: | Vitaly Kuznetsov <vkuznets> |
| Component: | Tools | Assignee: | James Slagle <jslagle> |
| Status: | CLOSED ERRATA | QA Contact: | mkovacik |
| Severity: | unspecified | Docs Contact: | |
| Priority: | high | ||
| Version: | 2.1.1 | CC: | dmacpher, juwu, tsanders, whayutin |
| Target Milestone: | --- | ||
| Target Release: | 2.1.2 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
The lack of _default_grabopts in older versions of yum rendered the RHUI client configuration RPMs incompatible with RHEL 5. This fix defines the default grabopts directly for an AttributeError exception. The client configuration RPMs are now compatible
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-04-23 11:42:17 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: | |
| Embargoed: | |||
The issue was introduced with commit d210171c (RHUI-2.1.1).
I've found the workaround for the same problem in spacewalk. They use the following:
try:
ugopts = self._default_grabopts()
if "http_headers" in ugopts:
del(ugopts["http_headers"])
except AttributeError: # this method does not exist on RHEL5
ugopts = { 'keepalive': self.keepalive,
'bandwidth': self.bandwidth,
'retry': self.retries,
'throttle': self.throttle,
'proxies': self.proxy_dict,
'timeout': self.timeout,
}
commit ba37abdca708046d81f2e90c484dbf785a2636a8, c7e8ab6994d78f31f8cabc37291fae02c7002fbc Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-0767.html |
Description of problem: I was able to reproduce the issue, client configuration RPMs are not compatible with old RHEL5: # yum check-update Loaded plugins: fastestmirror, rhui-lb, security Loading mirror speeds from cached hostfile Traceback (most recent call last): File "/usr/bin/yum", line 29, in ? yummain.user_main(sys.argv[1:], exit_code=True) File "/usr/share/yum-cli/yummain.py", line 309, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 178, in main result, resultmsgs = base.doCommands() File "/usr/share/yum-cli/cli.py", line 345, in doCommands self._getTs(needTsRemove) File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 101, in _getTs self._getTsInfo(remove_only) File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 112, in _getTsInfo pkgSack = self.pkgSack File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 662, in <lambda> pkgSack = property(fget=lambda self: self._getSacks(), File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 502, in _getSacks self.repos.populateSack(which=repos) File "/usr/lib/python2.4/site-packages/yum/repos.py", line 232, in populateSack self.doSetup() File "/usr/lib/python2.4/site-packages/yum/repos.py", line 79, in doSetup self.ayum.plugins.run('postreposetup') File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run func(conduitcls(self, self.base, conf, **kwargs)) File "/usr/lib/yum-plugins/rhui-lb.py", line 49, in postreposetup_hook ugopts = rhui_repos[0]._default_grabopts() AttributeError: 'YumRepository' object has no attribute '_default_grabopts' Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1.Create rhui deployment with RHEL5 repo 2.Create configuration RPM 3.Install configuration RPM on RHEL5.6 client 4.Do yum check-update Actual results: Traceback mentioned above Expected results: Yum works as usual Additional info: