Bug 906383 - [vdsm] [setupNetworks] Error while attaching non-VM network to interface on Fedora 18
Summary: [vdsm] [setupNetworks] Error while attaching non-VM network to interface on F...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: vdsm
Version: 3.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Dan Kenigsberg
QA Contact: Haim
URL:
Whiteboard: network
Depends On:
Blocks: ovirt-3.2-release
TreeView+ depends on / blocked
 
Reported: 2013-01-31 14:46 UTC by Mike Kolesnik
Modified: 2014-01-13 00:56 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-04-23 21:59:38 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)
VDSM log (10.47 MB, text/x-log)
2013-01-31 14:46 UTC, Mike Kolesnik
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 11621 0 None None None Never
oVirt gerrit 11680 0 None None None Never

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.


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