Bug 789104 - [ovirt] [vdsm] traceback when vdsmd starts: illegal IP address string passed to inet_aton
Summary: [ovirt] [vdsm] traceback when vdsmd starts: illegal IP address string passed ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: vdsm
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Douglas Schilling Landgraf
QA Contact: yeylon@redhat.com
URL:
Whiteboard: network
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-09 20:13 UTC by Haim
Modified: 2016-04-18 06:43 UTC (History)
10 users (show)

Fixed In Version: v4.9.4-34-g61d0bda
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-19 16:57:37 UTC
oVirt Team: ---


Attachments (Terms of Use)

Description Haim 2012-02-09 20:13:51 UTC
Description of problem:

- get the following exception when service starts: 

hread-13::DEBUG::2012-02-09 16:03:44,024::utils::601::Storage.Misc.excCmd::(execCmd) SUCCESS: <err> = ''; <rc> = 0
Thread-13::ERROR::2012-02-09 16:03:44,178::BindingXMLRPC::840::vds::(wrapper) Traceback (most recent call last):
  File "/usr/share/vdsm/BindingXMLRPC.py", line 830, in wrapper
    res = f(*args, **kwargs)
  File "/usr/share/vdsm/BindingXMLRPC.py", line 263, in getCapabilities
    ret['info'].update(self.getServerInfo())
  File "/usr/share/vdsm/BindingXMLRPC.py", line 91, in getServerInfo
    'lastClientIface': caps._getIfaceByIP(last) }
  File "/usr/share/vdsm/caps.py", line 231, in _getIfaceByIP
    remote = struct.unpack('I', socket.inet_aton(addr))[0]
error: illegal IP address string passed to inet_aton

the bug here is 'last' == '', then last is passed to getIfaceByIP() and result an error of illegal IP address.

Comment 1 Haim 2012-02-09 21:04:11 UTC
http://gerrit.ovirt.org/1726 - seem that Douglas already send a patch for this issue - moving to post.


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