Re: [ovs-discuss] OVN: configuration in Neutron DB?

2020-07-28 Thread Tony Liu
Thanks Numan! Tony From: Numan Siddique Sent: July 28, 2020 11:41 PM To: Tony Liu Cc: ovs-discuss@openvswitch.org ; ovs-...@openvswitch.org ; Daniel Alvarez Sanchez ; Lucas Alvares Gomes Martins Subject: Re: [ovs-discuss] OVN: configuration in Neutron DB? Ad

Re: [ovs-discuss] OVN: configuration in Neutron DB?

2020-07-28 Thread Numan Siddique
Adding Daniel and Lucas. Maybe you can also include opendev ML to get appropriate responses from the OpenStack side. Please see below for few comments. On Wed, Jul 29, 2020 at 12:02 PM Tony Liu wrote: > Quick update. I changed the script to create 256 routers first, then set > each of them as

Re: [ovs-discuss] OVN: configuration in Neutron DB?

2020-07-28 Thread Tony Liu
Quick update. I changed the script to create 256 routers first, then set each of them as gateway. There is no create and set back to back. It seems working fine now. It would be good someone can clarify my questions. It seems that it's not guaranteed that the object is ready when client get OK r

[ovs-discuss] OVN: configuration in Neutron DB?

2020-07-28 Thread Tony Liu
Hi, In case of integration with OpenStack, for example, when a client requests to create a network, is this network configuration saved in both Neutron DB and OVN DB, or OVN DB only? Also, when a client gets a network from Neutron API, is the configuration read from Neutron DB or OVN DB? Other

Re: [ovs-discuss] [ovs-dev] OVN: resync nb-db to sb-db

2020-07-28 Thread Han Zhou
On Tue, Jul 28, 2020 at 2:09 PM Tony Liu wrote: > > Hi, > > When I run a script to create bunch of networks and routers from OpenStack, for whatever reason, > nb-db is fully updated, but sb-db is only partially updated. For example, there are 500 logical routers > in nb-db, but only 218 datapath b

Re: [ovs-discuss] [ovs-dev] OVN nb-db and sb-db election timer

2020-07-28 Thread Han Zhou
On Mon, Jul 27, 2020 at 1:40 PM Tony Liu wrote: > > Hi, > > During scaling test, when sb-db is busy, followers believe the leader is dead and started election > request. Some inconsistency happens during such leader switch. Two datapath bindings are created > for the same logical switch. To avoid

[ovs-discuss] max_speed and curr_speed is incorrect

2020-07-28 Thread Ryan Chen
Hi, I want to collect ports’ curr_speed and max_speed from ovs to calculate ports’ bandwidth on Mininet. However, no matter how I set the bandwidth, the value of max_speed is always 0 and value of curr_speed is always 1000. I’m using ovs 2.13.0 in Mininet 2.3.0b6. Could anyone tell me how

[ovs-discuss] OVN: resync nb-db to sb-db

2020-07-28 Thread Tony Liu
Hi, When I run a script to create bunch of networks and routers from OpenStack, for whatever reason, nb-db is fully updated, but sb-db is only partially updated. For example, there are 500 logical routers in nb-db, but only 218 datapath bindings in sb-db. In this case, is there any way to resyn

Re: [ovs-discuss] Display OpenFlow port number, interface name and bridge name in single OvS CLI command

2020-07-28 Thread Tony Liu
for p in $(ovs-vsctl list-ports br-int); do \ ovs-vsctl -f table --columns=ofport,name list interface $p; \ done Tony From: discuss on behalf of Matteo Olivi Sent: July 28, 2020 11:14 AM To: ovs-discuss@openvswitch.org Subject: [ovs-discuss] Display Op

[ovs-discuss] Display OpenFlow port number, interface name and bridge name in single OvS CLI command

2020-07-28 Thread Matteo Olivi
Hello everyone, I have an OvS bridge *X *and some network interfaces connected to it via OpenFlow ports. For each interface connected to *X*, I want to display the name and the number of its OpenFlow port. I've been using the following command: "ovs-vsctl -f table -- --columns=ofport,name list Inte

Re: [ovs-discuss] OVN scale

2020-07-28 Thread Han Zhou
On Mon, Jul 27, 2020 at 10:16 AM Tony Liu wrote: > Hi Han, > > Just some updates here. > > I tried with 4K networks on single router. Configuration was done without > any issues. I checked both > nb-db and sb-db, they all look good. It's just that router configuration > is huge (in Neutron DB, nb