Bug 789104

Summary: [ovirt] [vdsm] traceback when vdsmd starts: illegal IP address string passed to inet_aton
Product: [Retired] oVirt Reporter: Haim <hateya>
Component: vdsmAssignee: Douglas Schilling Landgraf <dougsland>
Status: CLOSED CURRENTRELEASE QA Contact: yeylon <yeylon>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: abaron, acathrow, bazulay, dougsland, hateya, iheim, mgoldboi, srevivo, yeylon, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: network
Fixed In Version: v4.9.4-34-g61d0bda Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-19 16:57:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.