Bug 1540991

Summary: vdsm should handle attachment of a vlan networks to the new long interfaces on rhel7.5
Product: [oVirt] vdsm Reporter: Michael Burman <mburman>
Component: CoreAssignee: Dan Kenigsberg <danken>
Status: CLOSED DUPLICATE QA Contact: Meni Yakove <myakove>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.20.15CC: bugs
Target Milestone: ---Keywords: Automation
Target Release: ---   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-01 14:21:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Logs none

Description Michael Burman 2018-02-01 13:31:15 UTC
Created attachment 1389497 [details]
Logs

Description of problem:
[PPC] - vdsm should handle attachment of a vlan networks to the new long interfaces on rhel7.5

On rhel7.5, the ppc interfaces contains 13 characters, when trying to attach a vlan network top of those interfaces we fail with:

2018-02-01 15:20:29,084+0200 ERROR (jsonrpc/2) [jsonrpc.JsonRpcServer] Internal server error (__init__:611)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/yajsonrpc/__init__.py", line 606, in _handle_request
    res = method(**params)
  File "/usr/lib/python2.7/site-packages/vdsm/rpc/Bridge.py", line 201, in _dynamicMethod
    result = fn(*methodArgs)
  File "<string>", line 2, in setupNetworks
  File "/usr/lib/python2.7/site-packages/vdsm/common/api.py", line 48, in method
    ret = func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/vdsm/API.py", line 1506, in setupNetworks
    supervdsm.getProxy().setupNetworks(networks, bondings, options)
  File "/usr/lib/python2.7/site-packages/vdsm/common/supervdsm.py", line 55, in __call__
    return callMethod()
  File "/usr/lib/python2.7/site-packages/vdsm/common/supervdsm.py", line 53, in <lambda>
    **kwargs)
  File "<string>", line 2, in setupNetworks
  File "/usr/lib64/python2.7/multiprocessing/managers.py", line 773, in _callmethod
    raise convert_to_error(kind, result)
IOError: [Errno 8] Input data out of range

vdsm should handle it. 

Version-Release number of selected component (if applicable):
3.10.0-830.el7.ppc64le
vdsm-4.20.17-1.el7ev.ppc64le

How reproducible:
100%

Steps to Reproduce:
1. Run on ppc host with rhel7.5 and try to attach a vlan network to interface that contains 13 characters - enP2p1s0f4d3

Actual results:
Failed to attach vlan network

Expected results:
vdsm should handle this scenario(on rhel7.4 it worked because the interfaces were short names)

Comment 1 Dan Kenigsberg 2018-02-01 14:09:36 UTC
I think we should close this as a dup of bug 1478865.

Comment 2 Michael Burman 2018-02-01 14:21:23 UTC
(In reply to Dan Kenigsberg from comment #1)
> I think we should close this as a dup of bug 1478865.

You are correct. Forgot about this bug and the suggested work around in BZ 1478865

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