Ben,

Much thanks for your quick reply.

1) Yes, I DID check the logs located at /usr/local/ovs/var/log/openvswitch. The 
message is just the same as the one popped up for ovs-vsctl command.
    Following is the pieces from the log files.

2019-01-22T16:34:08.333Z|00051|bridge|WARN|could not open network device port1 
(No such device)

2) I also tried with the older version 2.0.0 and the results are different with 
newer version such as 2.11.90. Please see the following blocks.
    a) for the version 2.11.90. The error message will occure since port1 does 
not exist.

[root@localhost ovs]# ovs-vsctl --version

ovs-vsctl (Open vSwitch) 2.11.90

DB Schema 7.16.1


[root@localhost ovs]# ovs-vsctl show

ad38d546-6cbc-4291-89f9-f2b4adb2f68d

    Bridge "br0"

        Port "br0"

            Interface "br0"

                type: internal

    ovs_version: "2.11.90"

[root@localhost ovs]# ovs-vsctl add-port br0 port1

ovs-vsctl: Error detected while setting up 'port1': could not open network 
device port1 (No such device).  See ovs-vswitchd log for details.

ovs-vsctl: The default log directory is "/usr/local/var/log/openvswitch".



b) For version 2.0.0. The error message will not occur even if the port1 was 
NOT pre-created.


root@localhost ~]# ovs-vsctl --version

ovs-vsctl (Open vSwitch) 2.0.0

Compiled Apr 19 2018 17:57:34

[root@localhost ~]# ovs-vsctl add-br br0

[root@localhost ~]# ovs-vsctl add-port br0 port1

[root@localhost ~]# ovs-vsctl show

3bfbc88a-0329-4594-b21d-2d9fd8d97c27

    Bridge "br0"

        Port "br0"

            Interface "br0"

                type: internal

        Port "port1"

            Interface "port1"

    ovs_version: "2.0.0"




Thanks


Pei



________________________________
发件人: Ben Pfaff <b...@ovn.org>
发送时间: 2019年1月24日 11:51
收件人: pei Jikui
抄送: ovs-discuss@openvswitch.org
主题: Re: [ovs-discuss] Help about "ovs-vsctl add-port" command

On Thu, Jan 24, 2019 at 03:10:48AM +0000, pei Jikui wrote:
> 1) When I tried to add a port in ovs-version 2.8.1 via "ovs-vsctl add-port 
> br0 port1" command, the following error hint occurred.
>
> "ovs-vsctl: Error detected while setting up 'poas': could not open network 
> device poas (No such device).  See ovs-vswitchd log for details.
> ovs-vsctl: The default log directory is "/usr/local/ovs/var/log/openvswitch"."

We wrote this error message to encourage people to look at the log.  It
even says where the log is so that you can look at it more easily.
Despite that, you have not told us what is in the log.  Can you explain
how the error message could make this clearer?  We really are trying to
be helpful here, but numerous people read the error message and don't
actually pay any attention to it.  Why?

> 2) While the same command works well in ovs version2.0.0.
>
> 3) I googled and there is a answer saying that before adding a port into ovs, 
> the port must be seen via "ifconfig -a" which mean it must exist before being 
> added into ovs.
>
> Is the answer 3) is right? If yes, this is a behavior change from 2.0.0.? If 
> 3) is not the right answer, how I could fix this?

3) is right and it has not changed since the very first version of OVS
in 2009.
_______________________________________________
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to