OVS agent failing

Asked by Mohammad Banikazemi on 2012-08-09

This question has been asked before but I am still confused as what is going wrong in my setup.
Using latest devstack and running Quantum with OVS plugin (with or without tunneling agent enabled), the agent fails when it tries to run ovs-ofctl:

2012-08-09 15:27:09 DEBUG [quantum.agent.linux.utils]
Command: ['sudo', 'ovs-ofctl', 'del-flows', 'br-int']
Exit code: 1
Stdout: ''
Stderr: 'ovs-ofctl: br-int is not a bridge or a socket\n'

I can see (and manipulate) the bridge by using ovs-vsctl but not by using ovs-ofctl.

$ sudo ovs-vsctl show
0ec0cf06-c7f9-414f-806a-753197ba8e1b
    Bridge br-int
        Port br-int
            Interface br-int
                type: internal
    ovs_version: "1.2.0"

$ sudo ovs-ofctl show br-int
ovs-ofctl: br-int is not a bridge or a socket

Any idea what I may be missing here. Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
neutron Edit question
Assignee:
No assignee Edit question
Solved by:
dan wendlandt
Solved:
2012-09-10
Last query:
2012-09-10
Last reply:
2012-08-27
Best dan wendlandt (danwent) said : #1

I suspect that this is a general OVS issue, not related to openstack. My best guess is that ovs-vswitchd is not actually running. ovs-ofctl communicates with ovs-vswitchd, whereas ovs-vsctl communicates with ovsdb-server (which seems to be fine).

Yang Zhenyu (yangzhenyu) said : #2

cp /usr/local/bin/ovs-* /usr/bin/

Mohammad Banikazemi (mb-s) said : #3

Thanks dan wendlandt, that solved my question.