Red Hat Bugzilla – Bug 906383
[vdsm] [setupNetworks] Error while attaching non-VM network to interface on Fedora 18
Last modified: 2014-01-12 19:56:05 EST
Created attachment 690966 [details]
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):
Steps to Reproduce:
1. Run setup networks from REST API or UI, attaching a network to an interface
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__
File "/usr/share/vdsm/supervdsm.py", line 72, in <lambda>
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'
Network should be set up on the interface
Seems to be happening for non-VM networks only
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).
Fixed in ovirt-3.2.