Bug 756324 - AttributeError: CommunicationError instance has no attribute 'value'
Summary: AttributeError: CommunicationError instance has no attribute 'value'
Keywords:
Status: CLOSED DUPLICATE of bug 751760
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: rhn-client-tools
Version: 5.7
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Milan Zázrivec
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: 754028
TreeView+ depends on / blocked
 
Reported: 2011-11-23 09:51 UTC by Karel Srot
Modified: 2014-01-21 06:24 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-28 15:46:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Initialize YumBaseError properly. (329 bytes, patch)
2011-11-28 12:49 UTC, Zdeněk Pavlas
no flags Details | Diff

Description Karel Srot 2011-11-23 09:51:32 UTC
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

Comment 1 Zdeněk Pavlas 2011-11-28 12:49:38 UTC
Created attachment 537454 [details]
Initialize YumBaseError properly.

This is one of possible fixes.

Comment 4 Karel Srot 2011-11-28 15:46:39 UTC

*** This bug has been marked as a duplicate of bug 751760 ***


Note You need to log in before you can comment on or make changes to this bug.