Bug 756324
| Summary: | AttributeError: CommunicationError instance has no attribute 'value' | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Karel Srot <ksrot> | ||||
| Component: | rhn-client-tools | Assignee: | Milan Zázrivec <mzazrivec> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | Red Hat Satellite QA List <satqe-list> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 5.7 | CC: | zpavlas | ||||
| Target Milestone: | rc | Keywords: | Regression | ||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2011-11-28 15:46:39 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 754028 | ||||||
| Attachments: |
|
||||||
Created attachment 537454 [details]
Initialize YumBaseError properly.
This is one of possible fixes.
*** This bug has been marked as a duplicate of bug 751760 *** |
Description of problem: Got this traceback when DNS services were not available. Reproducer: # cp -p /etc/resolv.conf /etc/resolv.conf.old # cp /etc/hosts /etc/hosts.old # echo > /etc/resolv.conf; echo > /etc/hosts # host redhat.com # # yum update Loaded plugins: katello, product-id, rhnplugin, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity 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 157, in main base.getOptionsConfig(args) File "/usr/share/yum-cli/cli.py", line 187, in getOptionsConfig self.conf File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 665, in <lambda> conf = property(fget=lambda self: self._getConfig(), File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 254, in _getConfig self.plugins.run('init') 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/rhnplugin.py", line 124, in init_hook conduit.error(0, COMMUNICATION_ERROR + "\n" + RHN_DISABLED + "\n" + File "/usr/lib/python2.4/site-packages/yum/Errors.py", line 32, in __str__ return "%s" %(self.value,) AttributeError: CommunicationError instance has no attribute 'value' Version-Release number of selected component (if applicable): yum-3.2.22-38.el5 How reproducible: always