Created attachment 695714[details]
vdsm.log
Description of problem:
When trying to sync network on BOND that have two networks attached to it and only syncing one of the networks the operation fails.
Version-Release number of selected component (if applicable):
vdsm-4.10.2-7.0.el6ev.x86_64
rhevm-3.2.0-7.el6ev.noarch
How reproducible:
100%
Steps to Reproduce:
1. On the DC with the host create two vlan networks 'vlan162 and vlan 163'.
2. Create bond and attache 'vlan162 and vlan 163' networks to the bond using SetupNetwork.
3. On the second DC create new bridgless (nonvm, without vlan) network 'vlan163'
4. Move the host to the second DC.
5. Open SetupNetwork and sync only 'vlan163' network on the bond
Actual results:
sync operation fails
Expected results:
network should be synced
Additional info:
MainProcess|Thread-160785::ERROR::2013-02-11 01:11:26,910::configNetwork::1400::setupNetworks::(setupNetworks) (23, "unknown nic: 'bond1'")
Traceback (most recent call last):
File "/usr/share/vdsm/configNetwork.py", line 1382, in setupNetworks
implicitBonding=True, **d)
File "/usr/share/vdsm/configNetwork.py", line 902, in addNetwork
bridged=bridged, **options)
File "/usr/share/vdsm/configNetwork.py", line 850, in _addNetworkValidation
raise ConfigNetworkError(ne.ERR_BAD_NIC, "unknown nic: %r" % nic)
ConfigNetworkError: (23, "unknown nic: 'bond1'")
MainProcess|Thread-160785::ERROR::2013-02-11 01:11:26,918::supervdsmServer::81::SuperVdsm.ServerCallback::(wrapper) Error in setupNetworks
Traceback (most recent call last):
File "/usr/share/vdsm/supervdsmServer.py", line 79, in wrapper
return func(*args, **kwargs)
File "/usr/share/vdsm/supervdsmServer.py", line 178, in setupNetworks
return configNetwork.setupNetworks(networks, bondings, **options)
File "/usr/share/vdsm/configNetwork.py", line 1382, in setupNetworks
implicitBonding=True, **d)
File "/usr/share/vdsm/configNetwork.py", line 902, in addNetwork
bridged=bridged, **options)
File "/usr/share/vdsm/configNetwork.py", line 850, in _addNetworkValidation
raise ConfigNetworkError(ne.ERR_BAD_NIC, "unknown nic: %r" % nic)
ConfigNetworkError: (23, "unknown nic: 'bond1'")
Thread-160785::ERROR::2013-02-11 01:11:26,918::API::1214::vds::(setupNetworks) unknown nic: 'bond1'
Traceback (most recent call last):
File "/usr/share/vdsm/API.py", line 1212, in setupNetworks
supervdsm.getProxy().setupNetworks(networks, bondings, options)
File "/usr/share/vdsm/supervdsm.py", line 76, in __call__
return callMethod()
File "/usr/share/vdsm/supervdsm.py", line 67, in <lambda>
**kwargs)
File "<string>", line 2, in setupNetworks
File "/usr/lib64/python2.6/multiprocessing/managers.py", line 740, in _callmethod
raise convert_to_error(kind, result)
ConfigNetworkError: (23, "unknown nic: 'bond1'")
Thread-160785::DEBUG::2013-02-11 01:11:26,919::BindingXMLRPC::920::vds::(wrapper) return setupNetworks with {'status': {'message': "unknown nic: 'bond1'", 'code': 23}
The culprit is seen here
Thread-160744::DEBUG::2013-02-11 01:06:04,439::BindingXMLRPC::913::vds::(wrapper) client [10.35.70.107]::call setupNetworks with ({'all': {'nic': 'bond1', 'bridged': 'false'}}, {}, {'connectivityCheck': 'true', 'connectivityTimeout': 120}) {}
where "bond1" is considered as a nic (which it is not). Engine should send a proper definition of the "all" network.
Created attachment 695714 [details] vdsm.log Description of problem: When trying to sync network on BOND that have two networks attached to it and only syncing one of the networks the operation fails. Version-Release number of selected component (if applicable): vdsm-4.10.2-7.0.el6ev.x86_64 rhevm-3.2.0-7.el6ev.noarch How reproducible: 100% Steps to Reproduce: 1. On the DC with the host create two vlan networks 'vlan162 and vlan 163'. 2. Create bond and attache 'vlan162 and vlan 163' networks to the bond using SetupNetwork. 3. On the second DC create new bridgless (nonvm, without vlan) network 'vlan163' 4. Move the host to the second DC. 5. Open SetupNetwork and sync only 'vlan163' network on the bond Actual results: sync operation fails Expected results: network should be synced Additional info: MainProcess|Thread-160785::ERROR::2013-02-11 01:11:26,910::configNetwork::1400::setupNetworks::(setupNetworks) (23, "unknown nic: 'bond1'") Traceback (most recent call last): File "/usr/share/vdsm/configNetwork.py", line 1382, in setupNetworks implicitBonding=True, **d) File "/usr/share/vdsm/configNetwork.py", line 902, in addNetwork bridged=bridged, **options) File "/usr/share/vdsm/configNetwork.py", line 850, in _addNetworkValidation raise ConfigNetworkError(ne.ERR_BAD_NIC, "unknown nic: %r" % nic) ConfigNetworkError: (23, "unknown nic: 'bond1'") MainProcess|Thread-160785::ERROR::2013-02-11 01:11:26,918::supervdsmServer::81::SuperVdsm.ServerCallback::(wrapper) Error in setupNetworks Traceback (most recent call last): File "/usr/share/vdsm/supervdsmServer.py", line 79, in wrapper return func(*args, **kwargs) File "/usr/share/vdsm/supervdsmServer.py", line 178, in setupNetworks return configNetwork.setupNetworks(networks, bondings, **options) File "/usr/share/vdsm/configNetwork.py", line 1382, in setupNetworks implicitBonding=True, **d) File "/usr/share/vdsm/configNetwork.py", line 902, in addNetwork bridged=bridged, **options) File "/usr/share/vdsm/configNetwork.py", line 850, in _addNetworkValidation raise ConfigNetworkError(ne.ERR_BAD_NIC, "unknown nic: %r" % nic) ConfigNetworkError: (23, "unknown nic: 'bond1'") Thread-160785::ERROR::2013-02-11 01:11:26,918::API::1214::vds::(setupNetworks) unknown nic: 'bond1' Traceback (most recent call last): File "/usr/share/vdsm/API.py", line 1212, in setupNetworks supervdsm.getProxy().setupNetworks(networks, bondings, options) File "/usr/share/vdsm/supervdsm.py", line 76, in __call__ return callMethod() File "/usr/share/vdsm/supervdsm.py", line 67, in <lambda> **kwargs) File "<string>", line 2, in setupNetworks File "/usr/lib64/python2.6/multiprocessing/managers.py", line 740, in _callmethod raise convert_to_error(kind, result) ConfigNetworkError: (23, "unknown nic: 'bond1'") Thread-160785::DEBUG::2013-02-11 01:11:26,919::BindingXMLRPC::920::vds::(wrapper) return setupNetworks with {'status': {'message': "unknown nic: 'bond1'", 'code': 23}