Created attachment 620736 [details] engine.log Description of problem: The host stay up when required Network with VLAN attached to it and the network is down, The host should be in non-operational status. Version-Release number of selected component (if applicable): rhevm-3.1.0-18.el6ev.noarch How reproducible: 100% Steps to Reproduce: 1.Create required VLAN network and attach it to eth0 on the host. 2.On the host run ifdown eth0 Actual results: Host status is up Expected results: Host status should be non-operational Additional info: vdsClient -s 0 getVdsStats | grep --color eth0 network = {'bond4': {'macAddr': '', 'name': 'bond4', 'txDropped': '0', 'rxErrors': '0', 'txRate': '0.0', 'rxRate': '0.0', 'txErrors': '0', 'state': 'down', 'speed': '1000', 'rxDropped': '0'}, 'bond0': {'macAddr': '', 'name': 'bond0', 'txDropped': '0', 'rxErrors': '0', 'txRate': '0.0', 'rxRate': '0.0', 'txErrors': '0', 'state': 'down', 'speed': '1000', 'rxDropped': '0'}, 'bond1': {'macAddr': '', 'name': 'bond1', 'txDropped': '0', 'rxErrors': '0', 'txRate': '0.0', 'rxRate': '0.0', 'txErrors': '0', 'state': 'down', 'speed': '1000', 'rxDropped': '0'}, 'bond2': {'macAddr': '', 'name': 'bond2', 'txDropped': '0', 'rxErrors': '0', 'txRate': '0.0', 'rxRate': '0.0', 'txErrors': '0', 'state': 'down', 'speed': '1000', 'rxDropped': '0'}, 'bond3': {'macAddr': '', 'name': 'bond3', 'txDropped': '0', 'rxErrors': '0', 'txRate': '0.0', 'rxRate': '0.0', 'txErrors': '0', 'state': 'down', 'speed': '1000', 'rxDropped': '0'}, 'eth3': {'macAddr': '', 'name': 'eth3', 'txDropped': '0', 'rxErrors': '2285390', 'txRate': '0.0', 'rxRate': '0.0', 'txErrors': '0', 'state': 'down', 'speed': '1000', 'rxDropped': '0'}, 'eth2': {'macAddr': '', 'name': 'eth2', 'txDropped': '0', 'rxErrors': '2285086', 'txRate': '0.0', 'rxRate': '0.1', 'txErrors': '0', 'state': 'up', 'speed': '1000', 'rxDropped': '0'}, 'eth1': {'macAddr': '', 'name': 'eth1', 'txDropped': '0', 'rxErrors': '0', 'txRate': '0.0', 'rxRate': '0.0', 'txErrors': '0', 'state': 'up', 'speed': '1000', 'rxDropped': '0'}, 'eth0': {'macAddr': '', 'name': 'eth0', 'txDropped': '0', 'rxErrors': '0', 'txRate': '0.0', 'rxRate': '0.0', 'txErrors': '0', 'state': 'down', 'speed': '1000', 'rxDropped': '0'}} You have new mail in /var/spool/mail/root [root@orchid-vds1 ~]# vdsClient -s 0 getVdsStats anonHugePages = 1294 cpuIdle = 97.94 cpuLoad = 0.06 cpuSys = 1.00 cpuSysVdsmd = 0.12 cpuUser = 1.06 cpuUserVdsmd = 0.87 dateTime = 2012-10-03T10:16:33 GMT diskStats = {'/var/log': {'free': '15720'}, '/var/log/core': {'free': '15720'}, '/tmp': {'free': '15720'}, '/var/run/vdsm/': {'free': '15720'}} elapsedTime = 255116 generationID = fabba610-af2c-4a6f-9b2d-d15eb721822e ksmCpu = 0 ksmPages = 100 ksmState = False memAvailable = 13986 memCommitted = 1089 memShared = 0 memUsed = 12 netConfigDirty = True network = {'bond4': {'macAddr': '', 'name': 'bond4', 'txDropped': '0', 'rxErrors': '0', 'txRate': '0.0', 'rxRate': '0.0', 'txErrors': '0', 'state': 'down', 'speed': '1000', 'rxDropped': '0'}, 'bond0': {'macAddr': '', 'name': 'bond0', 'txDropped': '0', 'rxErrors': '0', 'txRate': '0.0', 'rxRate': '0.0', 'txErrors': '0', 'state': 'down', 'speed': '1000', 'rxDropped': '0'}, 'bond1': {'macAddr': '', 'name': 'bond1', 'txDropped': '0', 'rxErrors': '0', 'txRate': '0.0', 'rxRate': '0.0', 'txErrors': '0', 'state': 'down', 'speed': '1000', 'rxDropped': '0'}, 'bond2': {'macAddr': '', 'name': 'bond2', 'txDropped': '0', 'rxErrors': '0', 'txRate': '0.0', 'rxRate': '0.0', 'txErrors': '0', 'state': 'down', 'speed': '1000', 'rxDropped': '0'}, 'bond3': {'macAddr': '', 'name': 'bond3', 'txDropped': '0', 'rxErrors': '0', 'txRate': '0.0', 'rxRate': '0.0', 'txErrors': '0', 'state': 'down', 'speed': '1000', 'rxDropped': '0'}, 'eth3': {'macAddr': '', 'name': 'eth3', 'txDropped': '0', 'rxErrors': '2285390', 'txRate': '0.0', 'rxRate': '0.0', 'txErrors': '0', 'state': 'down', 'speed': '1000', 'rxDropped': '0'}, 'eth2': {'macAddr': '', 'name': 'eth2', 'txDropped': '0', 'rxErrors': '2285086', 'txRate': '0.0', 'rxRate': '0.0', 'txErrors': '0', 'state': 'up', 'speed': '1000', 'rxDropped': '0'}, 'eth1': {'macAddr': '', 'name': 'eth1', 'txDropped': '0', 'rxErrors': '0', 'txRate': '0.0', 'rxRate': '0.0', 'txErrors': '0', 'state': 'up', 'speed': '1000', 'rxDropped': '0'}, 'eth0': {'macAddr': '', 'name': 'eth0', 'txDropped': '0', 'rxErrors': '0', 'txRate': '0.0', 'rxRate': '0.0', 'txErrors': '0', 'state': 'down', 'speed': '1000', 'rxDropped': '0'}} rxDropped = 0 rxRate = 0.00 statsAge = 0.45 storageDomains = {'e0cc1e48-5c92-4b3e-9f93-4387c65a0837': {'delay': '0.00302505493164', 'lastCheck': '2.4', 'code': 0, 'valid': True}} swapFree = 15999 swapTotal = 15999 thpState = always txDropped = 0 txRate = 0.00 vmActive = 1 vmCount = 1 vmMigrating = 0 The network vlan400 is attached to eth0 and eth0 reported as down by VDSM.
Created attachment 620737 [details] vdsm.log
Since bug was not reproduced on upstream, went to debug on Meni's environment. We noticed that in a cluster with 2 active hosts, only one of the hosts had an interface attached to the required network. It left the network on cluster level as non-operational, therefore not having the nic active for that network on the host did not change the status of the network (which is already non-operational). We verified that when the network on cluster level was set to operational (by attaching the network to both clusters), the host moved to non-operational with a proper audit-log message once the nic was set to down.