RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1486487 - Module sometimes breaks when retrieving IP addresses for interfaces during system startup
Summary: Module sometimes breaks when retrieving IP addresses for interfaces during sy...
Keywords:
Status: CLOSED DUPLICATE of bug 1467845
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: python-ethtool
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Python Maintainers
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-29 22:51 UTC by Tomáš Golembiovský
Modified: 2019-04-28 13:13 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-30 09:13:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Tomáš Golembiovský 2017-08-29 22:51:55 UTC
Description of problem:

During system startup we sometimes experience a situation where python-ethtool
breaks while querying IP addresses of interfaces that are (not yet) properly
configured -- see bug 1467845.

From our logs we see that calling get_ipv4_addresses() ends with an exception: 

Dummy-2::ERROR::2017-08-23 11:23:05,571::GuestAgentLinux2::217::root::Error retrieving network interfaces.                                                                    
Traceback (most recent call last):         
  File "/usr/share/ovirt-guest-agent/GuestAgentLinux2.py", line 213, in ethtool_list_nics                                                                                     
    'inet': self._get_ipv4_addresses(devinfo),                                         
  File "/usr/share/ovirt-guest-agent/GuestAgentLinux2.py", line 189, in _get_ipv4_addresses                                                                                   
    for ip in dev.get_ipv4_addresses():    
RuntimeError: Could not open a NETLINK connection for eth0      

Correlating that to the content of journal it seems like a race between time
the interface is brought UP and time when IP is assigned to it:

Aug 23 11:23:05.126492 localhost.localdomain network[695]: Bringing up loopback interface:  [  OK  ]
Aug 23 11:23:05.340381 localhost.localdomain network[695]: Bringing up interface eth0:
Aug 23 11:23:05.366656 localhost.localdomain NetworkManager[595]: <info>  [1503476585.3659] device (eth0): link connected
Aug 23 11:23:07.209084 localhost.localdomain dhclient[845]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7 (xid=0x29d1da05)
Aug 23 11:23:07.588767 localhost.localdomain dhclient[845]: DHCPREQUEST on eth0 to 255.255.255.255 port 67 (xid=0x29d1da05)
Aug 23 11:23:07.591290 localhost.localdomain dhclient[845]: DHCPOFFER from 10.35.83.254
Aug 23 11:23:08.097425 localhost.localdomain dhclient[845]: DHCPACK from 10.35.83.254 (xid=0x29d1da05)

It is understandable that the IP cannot be retrieved yet. The real problem is
that from now on the python-ethtool module is in an inconsistent state and
every subsequent call to get_ipv4_addresses() ends with the following
exception:

Traceback (most recent call last):         
  File "/usr/share/ovirt-guest-agent/GuestAgentLinux2.py", line 213, in ethtool_list_nics                                                                                     
    'inet': self._get_ipv4_addresses(devinfo),                                         
  File "/usr/share/ovirt-guest-agent/GuestAgentLinux2.py", line 189, in _get_ipv4_addresses                                                                                   
    for ip in dev.get_ipv4_addresses():    
SystemError: error return without exception set      


Unfortunately I wasn't able to find a workflow how to reproduce the error in
simple environment. But it is happening for us systematically. Also, we cannot
reproduce the problem anymore with version 0.13 of python-ethtool.


Version-Release number of selected component (if applicable):

0.8-5.el7

Comment 3 Tomáš Golembiovský 2017-08-30 09:13:54 UTC

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


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