[ovs-dev] [PATCH] FAQ.md: Explain why "ovs-vsctl show" shows a port but it isn't there.

Gurucharan Shetty shettyg at nicira.com
Thu Mar 5 17:40:44 UTC 2015


On Thu, Mar 5, 2015 at 8:50 AM, Ben Pfaff <blp at nicira.com> wrote:
> I've explained this a lot over the years.
>
> Signed-off-by: Ben Pfaff <blp at nicira.com>
> ---
>  FAQ.md | 24 ++++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
>
> diff --git a/FAQ.md b/FAQ.md
> index 5ee529c..fc4161c 100644
> --- a/FAQ.md
> +++ b/FAQ.md
> @@ -772,6 +772,30 @@ A: If you add them one at a time with ovs-vsctl, it can take a long
>
>     takes seconds, not minutes or hours, in the OVS sandbox environment.
>
> +Q1: I created a bridge named br0.  My bridge shows up in "ovs-vsctl
> +    show", but "ovs-ofctl show br0" just prints "br0 is not a bridge
> +    or a socket".
> +Q2: I have a bridge br0.  I added a new port vif1.0, and it shows
> +    up in "ovs-vsctl show", but "ovs-vsctl list port" says that it has
> +    OpenFlow port ("ofport") -1, and "ovs-ofctl show br0" doesn't show
> +    vif1.0 at all.
I think the Q2 is no longer true.

root at ubuntu-test:~# ovs-vsctl add-port br0 p20
ovs-vsctl: Error detected while setting up 'p20'.  See ovs-vswitchd
log for details.
root at ubuntu-test:~# ovs-vsctl show
b1d3db14-03d2-4f3d-9db8-95d16441589a
    Bridge "br0"
        Port "p0"
            Interface "p0"
        Port "p20"
            Interface "p20"
                error: "could not open network device p20 (No such device)"
        Port "br0"
            Interface "br0"
                type: internal
    ovs_version: "2.3.90"
root at ubuntu-test:~#

> +
> +A: Open vSwitch wasn't able to create the bridge or the port.  Check
> +   the ovs-vswitchd log for details (Debian and Red Hat packaging for
> +   Open vSwitch put it in /var/log/openvswitch/ovs-vswitchd.log).
> +
> +   In general, the Open vSwitch database reflects the desired
> +   configuration state.  ovs-vswitchd monitors the database and, when
> +   it changes, reconfigures the system to reflect the new desired
> +   state.  This normally happens very quickly.  Thus, a discrepancy
> +   between the database and the actual state indicates that
> +   ovs-vswitchd could not implement the configuration, and so one
> +   should check the log to find out why.  (Another possible cause is
> +   that ovs-vswitchd is not running.  This will make "ovs-vsctl"
> +   commands hang, if they change the configuration, unless one
> +   specifies "--no-wait".)
> +
> +
>  Quality of Service (QoS)
>  ------------------------
>
> --
> 2.1.3
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev



More information about the dev mailing list