Bug 906383

Summary: [vdsm] [setupNetworks] Error while attaching non-VM network to interface on Fedora 18
Product: [Retired] oVirt Reporter: Mike Kolesnik <mkolesni>
Component: vdsmAssignee: Dan Kenigsberg <danken>
Status: CLOSED NEXTRELEASE QA Contact: Haim <hateya>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.2CC: abaron, acathrow, bazulay, dougsland, dyasny, fsimonce, iheim, mgoldboi, virt-maint, yeylon, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: network
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-23 21:59:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 881006    
Attachments:
Description Flags
VDSM log none

Description Mike Kolesnik 2013-01-31 14:46:59 UTC
Created attachment 690966 [details]
VDSM log

Description of problem:
Ran setupNetworks adding a network, getting failure that the ifcfg file for the host's interface doesn't exist.


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


How reproducible:
100%


Steps to Reproduce:
1. Run setup networks from REST API or UI, attaching a network to an interface
2.
3.
  
Actual results:
Exception in log:
Thread-22::ERROR::2013-01-31 14:58:06,073::BindingXMLRPC::932::vds::(wrapper) unexpected error
Traceback (most recent call last):
  File "/usr/share/vdsm/BindingXMLRPC.py", line 918, in wrapper
    res = f(*args, **kwargs)
  File "/usr/share/vdsm/BindingXMLRPC.py", line 367, in setupNetworks
    return api.setupNetworks(networks, bondings, options)
  File "/usr/share/vdsm/API.py", line 1215, in setupNetworks
    supervdsm.getProxy().setupNetworks(networks, bondings, options)
  File "/usr/share/vdsm/supervdsm.py", line 81, in __call__
    return callMethod()
  File "/usr/share/vdsm/supervdsm.py", line 72, 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 2] No such file or directory: '/etc/sysconfig/network-scripts/ifcfg-p1p1'



Expected results:
Network should be set up on the interface


Additional info:

Comment 1 Mike Kolesnik 2013-01-31 14:53:01 UTC
Seems to be happening for non-VM networks only

Comment 2 Dan Kenigsberg 2013-02-01 08:40:34 UTC
it is time that we handle initially-missing ifcfg-nic files.

as a workaround, you can pre-create the relevant /etc/sysconfig/network-scripts/ifcfg-p1p1 (I think that even an empty file would be enough).

Comment 3 Dan Kenigsberg 2013-04-23 21:59:38 UTC
Fixed in ovirt-3.2.