That did not seem to help with the problem. Here is the vswitchd log on my host, the interface is called test1:
cloudscaling@mngmt2:~> grep -rn test1 /var/log/openvswitch/ovs-vswitchd.log 11718:2015-02-17T18:55:14.497Z|00052|bridge|INFO|bridge test1: added interface test1 on port 65534 11724:2015-02-17T18:55:14.518Z|00058|bridge|INFO|bridge test1: using datapath ID 00003aba0fcbf849 11725:2015-02-17T18:55:14.518Z|00059|connmgr|INFO|test1: added service controller "punix:/var/run/openvswitch/test1.mgmt" 11738:2015-02-17T19:13:06.355Z|00072|netdev_linux|INFO|ioctl(SIOCGIFHWADDR) on test1 device failed: No such device 11739:2015-02-17T19:13:06.368Z|00073|netdev_linux|WARN|ioctl(SIOCGIFINDEX) on test1 device failed: No such device 11744:2015-02-17T19:13:06.556Z|00078|netdev_linux|WARN|test1: obtaining netdev stats via vport failed (No such device) 11751:2015-02-17T19:14:06.559Z|00085|ofproto|WARN|test1: cannot get STP stats on nonexistent port 65534 11801:2015-02-17T19:15:19.479Z|00010|bridge|INFO|bridge test1: added interface test1 on port 65534 11810:2015-02-17T19:15:19.589Z|00019|netdev_linux|ERR|ioctl(SIOCSIFHWADDR) on test1 device failed: No such device 11811:2015-02-17T19:15:19.589Z|00020|bridge|ERR|bridge test1: failed to set bridge Ethernet address: No such device 11812:2015-02-17T19:15:19.589Z|00021|bridge|INFO|bridge test1: using datapath ID 00003aba0fcbf849 11813:2015-02-17T19:15:19.589Z|00022|netdev_linux|WARN|query test1 qdisc failed (No such device) 11814:2015-02-17T19:15:19.590Z|00023|netdev_linux|WARN|test1: removing policing failed: No such device 11815:2015-02-17T19:15:19.590Z|00024|connmgr|INFO|test1: added service controller "punix:/var/run/openvswitch/test1.mgmt" 11840:2015-02-17T19:15:19.597Z|00049|netdev_linux|WARN|test1: obtaining netdev stats via vport failed (No such device) 11841:2015-02-17T19:15:19.597Z|00050|ofproto|WARN|test1: cannot get STP stats on nonexistent port 65534 11849:2015-02-17T19:15:19.600Z|00058|netdev_linux|INFO|ioctl(SIOCGIFHWADDR) on test1 device failed: No such device 11850:2015-02-17T19:15:19.602Z|00059|netdev_linux|WARN|ioctl(SIOCGIFINDEX) on test1 device failed: No such device 11867:2015-02-17T19:15:34.227Z|00076|bridge|INFO|bridge test1: added interface test1 on port 65534 11877:2015-02-17T19:15:34.259Z|00086|netdev_linux|ERR|ioctl(SIOCSIFHWADDR) on test1 device failed: No such device 11886:2015-02-17T19:15:34.290Z|00095|netdev_linux|INFO|ioctl(SIOCGIFHWADDR) on test1 device failed: No such device 11904:2015-02-17T19:17:33.988Z|00016|bridge|INFO|bridge test1: added interface test1 on port 65534 11918:2015-02-17T19:17:33.997Z|00030|bridge|INFO|bridge test1: using datapath ID 00003aba0fcbf849 11919:2015-02-17T19:17:33.997Z|00031|connmgr|INFO|test1: added service controller "punix:/var/run/openvswitch/test1.mgmt" 11943:2015-02-17T19:26:56.159Z|00055|bridge|INFO|bridge test1: added interface test1 on port 65534 11944:2015-02-17T19:26:56.159Z|00056|bridge|INFO|bridge test1: using datapath ID 0000a2a5465c2e44 11945:2015-02-17T19:26:56.159Z|00057|connmgr|INFO|test1: added service controller "punix:/var/run/openvswitch/test1.mgmt" 11947:2015-02-17T19:32:37.931Z|00059|ofproto|WARN|test1: cannot get STP status on nonexistent port 65534 11948:2015-02-17T19:32:37.931Z|00060|ofproto|WARN|test1: cannot get RSTP status on nonexistent port 65534 11949:2015-02-17T19:32:37.944Z|00061|netdev_linux|INFO|ioctl(SIOCGIFHWADDR) on test1 device failed: No such device 11950:2015-02-17T19:32:37.947Z|00062|netdev_linux|WARN|ioctl(SIOCGIFINDEX) on test1 device failed: No such device 11955:2015-02-17T19:32:37.954Z|00067|ofproto|WARN|test1: cannot get STP status on nonexistent port 65534 11960:2015-02-17T19:32:38.951Z|00072|netdev_linux|WARN|test1: obtaining netdev stats via vport failed (No such device) Not sure if it's relevant, but one interface on the host is bonded. Is there something else I should check? Thanks On Tue, Feb 17, 2015 at 10:35 AM, Gurucharan Shetty <[email protected]> wrote: > On Tue, Feb 17, 2015 at 10:23 AM, Abhishek Chanda > <[email protected]> wrote: >> In the container, but since it is in host networking mode, I believe >> it should show up on the host as well. We observed this issue on the >> container, and while debugging we found that this happens on the host >> as well. > So you want it both in container and host. I think you should run > using '--pid=host' (atleast that is how I have used it). You don't > need to use the --privileged in that case. > > >> >> Thanks >> >> On Tue, Feb 17, 2015 at 7:44 AM, Gurucharan Shetty <[email protected]> >> wrote: >>> On Fri, Feb 13, 2015 at 2:57 PM, Abhishek Chanda >>> <[email protected]> wrote: >>>> Hi all, >>>> >>>> I am trying to run OVS in a docker container. A process on the >>>> container adds a bridge using ovs-vsctl and another queries it using >>>> ip link show. After the bridge is added, it shows up on querying using >>>> ovs-vsctl but does not show up on ip link show. ovs-vswitchd log shows >>>> the bridge being added, being configured and after some time, it does >>>> not show up. On the host, everything works fine till the container is >>>> started. How do I debug this? >>>> >>>> The container is running with host networking and in privileged mode. >>> >>> What is your end goal? Do you want to see OVS bridge inside the >>> container or in the host? _______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
