ovs-vswitchd.log: could not open network device

asked 2014-12-22 20:35:52 -0500

Byungjoon Lee gravatar image

While I testing neutron (Juno) l3 HA capability, I found a strange symptom.

Below is the ovs-vsctl show result.

[root@network2 neutron]# ovs-vsctl show
ea84d6fa-079c-418b-8b88-7daa49325ca9
    Bridge br-int
        fail_mode: secure
        Port "ha-cdd091cc-13"
            tag: 4095
            Interface "ha-cdd091cc-13"
                type: internal
        Port br-int
            Interface br-int
                type: internal
        Port "int-br-ens2f0"
            Interface "int-br-ens2f0"
    Bridge "br-ens2f0"
        Port "phy-br-ens2f0"
            Interface "phy-br-ens2f0"
        Port "br-ens2f0"
            Interface "br-ens2f0"
                type: internal
        Port "ens2f0"
            Interface "ens2f0"
    Bridge br-ex
        Port br-ex
            Interface br-ex
                type: internal
        Port "enp2s0f1"
            Interface "enp2s0f1"
    ovs_version: "2.1.3"

The thing that I don't understand is that ovs-ofctl show br-ens2f0 gives the following output:

[root@network2 neutron]# ovs-ofctl show br-ens2f0
OFPT_FEATURES_REPLY (xid=0x2): dpid:000090e2ba1f1ec4
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
 1(ens2f0): addr:90:e2:ba:1f:1e:c4
     config:     0
     state:      0
     current:    1GB-FD COPPER AUTO_NEG
     advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD 1GB-FD COPPER AUTO_NEG AUTO_PAUSE
     supported:  10MB-HD 10MB-FD 100MB-HD 100MB-FD 1GB-FD COPPER AUTO_NEG AUTO_PAUSE
     speed: 1000 Mbps now, 1000 Mbps max
 LOCAL(br-ens2f0): addr:90:e2:ba:1f:1e:c4
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0

That is, The ports that I added by ovs-vsctl are not listed, and which leads to following errors in ovs-vswitchd.log:

[root@network1 neutron]# !tail
tail -f /var/log/openvswitch/ovs-vswitchd.log
2014-12-23T02:13:03.232Z|00119|netdev_linux|WARN|ioctl(SIOCGIFINDEX) on ha-0d890554-ab device failed: No such device
2014-12-23T02:13:04.277Z|00120|bridge|WARN|could not open network device phy-br-ens2f0 (No such device)
2014-12-23T02:13:04.280Z|00121|bridge|WARN|could not open network device int-br-ens2f0 (No such device)
2014-12-23T02:13:04.280Z|00122|netdev_linux|WARN|ha-0d890554-ab: removing policing failed: No such device
2014-12-23T02:13:53.212Z|00123|ofproto|INFO|br-int: 1 flow_mods 48 s ago (1 adds)
2014-12-23T02:17:06.518Z|00124|bridge|WARN|could not open network device phy-br-ens2f0 (No such device)
2014-12-23T02:17:06.520Z|00125|bridge|INFO|bridge br-ex: added interface qg-db9820ad-65 on port 3
2014-12-23T02:17:06.522Z|00126|bridge|WARN|could not open network device int-br-ens2f0 (No such device)
2014-12-23T02:17:06.670Z|00127|netdev_linux|INFO|ioctl(SIOCGIFHWADDR) on qg-db9820ad-65 device failed: No such device
2014-12-23T02:17:08.263Z|00128|netdev_linux|WARN|ioctl(SIOCGIFINDEX) on qg-db9820ad-65 device failed: No such device
2014-12-23T02:17:43.061Z|00129|bridge|WARN|could not open network device phy-br-ens2f0 (No such device)
2014-12-23T02:17:43.063Z|00130|bridge|WARN|could not open network device int-br-ens2f0 (No such device)

Whatever kinds of comments and hints are welcomed.

Byungjoon Lee

edit retag flag offensive close merge delete

Comments

did you make an entry in the interfaces file.

rishi gravatar imagerishi ( 2014-12-22 23:43:45 -0500 )edit

You mean, /etc/sysconfig/network-scripts/ifcfg-xxxx files?

Byungjoon Lee gravatar imageByungjoon Lee ( 2014-12-22 23:53:01 -0500 )edit

I'm using centos 7, so it has no /etc/network/interfaces file.

Byungjoon Lee gravatar imageByungjoon Lee ( 2014-12-28 20:28:21 -0500 )edit

I met the same problem, I do not know why neither. I use CentOS7 and Mitaka version.

zero gravatar imagezero ( 2016-12-22 09:29:17 -0500 )edit