Bug 1067705

Summary: Uninitialized SystemError raised when accessing an invalid
Product: [Fedora] Fedora Reporter: Dan Kenigsberg <danken>
Component: python-ethtoolAssignee: David Sommerseth <davids>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: acme, asegurap, davids, ovasik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-21 09:19:33 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:

Description Dan Kenigsberg 2014-02-20 22:01:31 UTC
Description of problem:
Formerly (python-ethtool-0.6-5.el6.x86_64) we had

  python -c 'import ethtool;print ethtool.get_interfaces_info("an invalid name of a device")[0].get_ipv6_addresses()'
  ()

but recently (python-ethtool-0.10-1.fc20.x86_64) this has changed to

  Traceback (most recent call last):
    File "<string>", line 1, in <module>
  SystemError: error return without exception set

Version-Release number of selected component (if applicable):
python-ethtool-0.10-1.fc20.x86_64

How reproducible:
100%

It may make sense to raise an exception if the ethtool.etherinfo object for the device is invalid, but it should be a more specific SystemError.

Comment 1 David Sommerseth 2014-02-21 09:19:33 UTC

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