Created attachment 921381 [details] logs with error Description of problem: Trying to change the network tagged with 0 VLAN to be untagged I got Failed getVdsStats error in engine log with unexpected error in VDSM log, though an action succeeded Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Configure a network with VLAN 0 and attach it to host 2. Change the network to be untagged 3. Look at the engine and vdsm logs Actual results: There is unexpected error when performing an action Expected results: The log should be clean from errors when performing legimate operation Additional info:
The custom property ethtool_opts was used to set a nic that is not owned by the configured network. I suppose it's an Engine glitch. call setupNetworks with ({'net11': {'remove': 'true'}, 'kaka_eth1': {'nic': 'eth1', 'mtu': '1500', 'STP': 'no', 'bridged': 'true', 'custom': {'ethtool_opts': '--offload eth2 rx on', 'bridge_opts': 'Priority=7smax_age=1998'}}}, {}, {'connectivityCheck': 'true', 'connectivityTimeout': 60}) {} MainProcess|Thread-13::INFO::2014-07-16 10:59:03,411::hooks::100::root::(_runHooksDir) ethtool_options hook: [unexpected error]: Traceback (most recent call last): File "/usr/libexec/vdsm/hooks/after_network_setup/30_ethtool_options", line 140, in <module> main() File "/usr/libexec/vdsm/hooks/after_network_setup/30_ethtool_options", line 83, in main _process_network(network, attrs) File "/usr/libexec/vdsm/hooks/after_network_setup/30_ethtool_options", line 91, in _process_network _validate_dev_ownership(_net_nics(attrs), network, tokens) File "/usr/libexec/vdsm/hooks/after_network_setup/30_ethtool_options", line 111, in _validate_dev_ownership 'in the net nics: %s' % (cmd.device, nics)) RuntimeError: Trying to apply ethtool opts for dev: eth2, not in the net nics: [u'eth1']
Seems like this is due to ethtool_opts being put on the wrong network (or referring to the wrong interface), please verify.
Verified on- oVirt Engine Version: 3.5.0-0.0.master.20140722232058.git8e1babc.el6
Created attachment 924783 [details] vdsm and supervdsm logs You probably looked at the incorrect part in the log. Uploading new logs, take a look at the network called vlan0 (end of the log)
Just to regain attention...
A quote from the logs could have helped. Do you mean this one? Thread-54::ERROR::2014-08-07 11:05:51,761::BindingXMLRPC::1146::vds::(wrapper) unexpected error Traceback (most recent call last): File "/usr/share/vdsm/rpc/BindingXMLRPC.py", line 1130, in wrapper res = f(*args, **kwargs) File "/usr/share/vdsm/rpc/BindingXMLRPC.py", line 475, in getStats return api.getStats() File "/usr/share/vdsm/API.py", line 1245, in getStats decStats = self._cif._hostStats.get() File "/usr/share/vdsm/virt/sampling.py", line 541, in get stats = self._getInterfacesStats() File "/usr/share/vdsm/virt/sampling.py", line 647, in _getInterfacesStats for hs in self._samples]) KeyError: 'vlan0'
*** This bug has been marked as a duplicate of bug 1116577 ***