Interfaces of br-int are down

asked 2014-02-14 05:23:19 -0500

Le Wang gravatar image

I have wield observation. But firstly, I explain what I have now: dedicated controller, compute and networking nodes running on Ubuntu12.04 with Havana, and using GRE to tunnel traffics. Everything is fine, traffic can go though router and instance can ping outside.

But, when I use "ovs-ofctl show br-int" on networking node, I get this

1(patch-tun): addr:6a:21:24:6a:8f:fb
 config:     0
 state:      0
 speed: 0 Mbps now, 0 Mbps max  
 2(qr-7e18429b-c4): addr:4a:01:00:00:00:00
 config:     PORT_DOWN
 state:      LINK_DOWN
 speed: 0 Mbps now, 0 Mbps max  
 3(tap2efc0c06-cb):addr:4a:01:00:00:00:00
 config:     PORT_DOWN
 state:      LINK_DOWN
 speed: 0 Mbps now, 0 Mbps max  LOCAL(br-int): addr:62:ac:83:9d:38:48
 config:     0
 state:      0
 speed: 0 Mbps now, 0 Mbps max

Can someone explain why the interfaces of br-int are down even though traffic can go though them?

Thanks.

BR, Le

edit retag flag offensive close merge delete

Comments

forget about ovs-ofctl for getting interface status. It's dump-flows sub-command is useful though. To see information about interfaces use `ip link` and `ip netns exec namespace ip link`.

darragh-oreilly gravatar imagedarragh-oreilly ( 2014-02-14 05:54:23 -0500 )edit

From commands, all the interfaces' states are "UNKNOWN". If 'ip link' and 'ovs-ofctl' show you "down" or "UNKONWN" states, how do you debug the network or how do you know vSwitch is working properly?

Le Wang gravatar imageLe Wang ( 2014-02-14 06:47:29 -0500 )edit

It is the responsibility of the interface drivers called by the dhcp agent, l3 agent, or nova to configure and put interfaces up. If an interface is not up, check their logs.

darragh-oreilly gravatar imagedarragh-oreilly ( 2014-02-14 07:20:17 -0500 )edit

No error shows in dhcp,l3,neutron log files. The curiosity is why it happens. To me, ovs does not set interfaces to correct status. The consequence might be that neutron or nova report to user mis-leading results.

Le Wang gravatar imageLe Wang ( 2014-02-14 07:50:40 -0500 )edit

The ovs agent does not use 'ovs-ofctl show br-int' to determine the status of neutron ports. Why does this command show the *ports* as down? I don't know - maybe it is because they are type internal. The OVS programmers on the OVS mailing list should be able to explain.

darragh-oreilly gravatar imagedarragh-oreilly ( 2014-02-14 08:16:38 -0500 )edit