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:
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).
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: