Bug 1249372 - The device name is incorrectly retrieved
Summary: The device name is incorrectly retrieved
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: ipwatchd
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaroslav Imrich
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-02 04:16 UTC by Anthony
Modified: 2016-07-19 17:18 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-19 17:18:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Anthony 2015-08-02 04:16:15 UTC
Description of problem:

I have several Nics:
enp0s29u1u6u1u2  ethernet  connected  
enp0s29u1u6u1u3  ethernet  connected 
enp0s29u1u6u2u1  ethernet  connected 
enp0s29u1u6u2u2  ethernet  connected 
It seems ipwatchd incorrectly retrieves the network device name as I keep getting this error in the logs. It basically sees only a prefix of the NIC name.

Aug 02 05:07:56 localhost.localdomain ipwatchd[17005]: Could not retrieve IP address of the device "enp0s29u1" : No such device
Aug 02 05:07:56 localhost.localdomain ipwatchd[17005]: Could not retrieve IP address of the device "enp0s29u1" : No such device
Aug 02 05:07:56 localhost.localdomain ipwatchd[17005]: Could not retrieve IP address of the device "enp0s29u1" : No such device
Aug 02 05:07:56 localhost.localdomain ipwatchd[17005]: Could not retrieve IP address of the device "enp0s29u1" : No such device
Aug 02 05:07:56 localhost.localdomain ipwatchd[17005]: Could not retrieve IP address of the device "enp0s29u1" : No such device

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

IPwatchD 1.2.1
How reproducible:
100%

Steps to Reproduce:
1. run ipwatchd using the default config from /etc/ipwatchd.conf
2. check the logs : journalctl |grep ipwatchd
3. Result: See the errors.

Actual results:


Expected results:
No error

Additional info:

Comment 1 Jaroslav Imrich 2015-08-06 21:09:19 UTC
Problem is caused by a too small buffer (only 10 bytes) being reserved for a device name while in reality it can take up to 16 bytes. I am already working on a fix. Temporary solution is to use device names which are not longer than 9 characters. Thanks for reporting.

Comment 2 Fedora End Of Life 2016-07-19 17:18:57 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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