Bug 862587 - Host stay in up status when required Networks with VLAN is down.
Host stay in up status when required Networks with VLAN is down.
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine (Show other bugs)
3.1.0
x86_64 Linux
unspecified Severity high
: ---
: ---
Assigned To: lpeer
Meni Yakove
network
: Regression
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-03 06:20 EDT by Meni Yakove
Modified: 2016-02-10 14:48 EST (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-10-03 11:09:37 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Network
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
engine.log (5.97 MB, text/x-log)
2012-10-03 06:20 EDT, Meni Yakove
no flags Details
vdsm.log (15.75 MB, text/x-log)
2012-10-03 06:22 EDT, Meni Yakove
no flags Details

  None (edit)
Description Meni Yakove 2012-10-03 06:20:53 EDT
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.
Comment 1 Meni Yakove 2012-10-03 06:22:21 EDT
Created attachment 620737 [details]
vdsm.log
Comment 3 Moti Asayag 2012-10-03 11:09:37 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.