Sorry for being vague.

I am trying to run neutron in a container. A container runs neutron
and OVS in host mode. While starting up, neutron creates an internal
bridge using ovs-vsctl. Later, it tries to look it up using `ip link
show` which does not return a result, causing neutron to crash. I
noticed that if I attach to my container at this point and add an ovs
bridge manually, it show up in ovs-vsctl but not in `ip link show`. I
ran ovs on the host to check if this issue happens on the host. I do
not need to run ovs on the host. Here is whats happening:

mngmt2:/opt/ocs # ovs-vsctl show
96d8a92e-c8f2-469d-be8b-73b8d8ec5c20
    Bridge br-int
        fail_mode: secure
        Port br-int
            Interface br-int
                type: internal
    ovs_version: "2.3.90"
mngmt2:/opt/ocs # ip link show br-int
Device "br-int" does not exist.
mngmt2:/opt/ocs # ovs-vsctl add-br test1
mngmt2:/opt/ocs # ip link show test1
Device "test1" does not exist.
mngmt2:/opt/ocs # ovs-vsctl show
96d8a92e-c8f2-469d-be8b-73b8d8ec5c20
    Bridge "test1"
        Port "test1"
            Interface "test1"
                type: internal
    Bridge br-int
        fail_mode: secure
        Port br-int
            Interface br-int
                type: internal
    ovs_version: "2.3.90"
mngmt2:/opt/ocs # grep -rn test1 /var/log/openvswitch/ovs-vswitchd.log
56:2015-02-17T19:54:06.575Z|00055|bridge|INFO|bridge test1: added
interface test1 on port 65534
62:2015-02-17T19:54:06.603Z|00061|netdev_linux|ERR|ioctl(SIOCSIFHWADDR)
on test1 device failed: No such device
63:2015-02-17T19:54:06.603Z|00062|bridge|ERR|bridge test1: failed to
set bridge Ethernet address: No such device
64:2015-02-17T19:54:06.603Z|00063|bridge|INFO|bridge test1: using
datapath ID 00003e34108c1b47
65:2015-02-17T19:54:06.603Z|00064|netdev_linux|WARN|query test1 qdisc
failed (No such device)
66:2015-02-17T19:54:06.603Z|00065|netdev_linux|WARN|test1: removing
policing failed: No such device
67:2015-02-17T19:54:06.603Z|00066|connmgr|INFO|test1: added service
controller "punix:/var/run/openvswitch/test1.mgmt"
74:2015-02-17T19:54:06.630Z|00073|netdev_linux|INFO|ioctl(SIOCGIFHWADDR)
on test1 device failed: No such device
75:2015-02-17T19:54:06.632Z|00074|netdev_linux|WARN|ioctl(SIOCGIFINDEX)
on test1 device failed: No such device
79:2015-02-17T19:54:08.116Z|00078|netdev_linux|WARN|test1: obtaining
netdev stats via vport failed (No such device)
mngmt2:/opt/ocs #

br-int has similar entries in that file.

Thanks

On Tue, Feb 17, 2015 at 11:46 AM, Gurucharan Shetty <[email protected]> wrote:
> On Tue, Feb 17, 2015 at 11:39 AM, Abhishek Chanda
> <[email protected]> wrote:
>> That did not seem to help with the problem. Here is the vswitchd log
>> on my host
> You are running ovs-vswitchd in the host? I made an assumption that
> you want to run it inside the container based on the following two
> lines in your first message.
>
> "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."
>
> You will need to clearly state what you are trying to do.
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to