Re: [ovs-discuss] When the controller is disconnected, if you update the port immediately, the ovs will crash.

2019-03-15 Thread Ben Pfaff
On Tue, Mar 12, 2019 at 08:34:39PM +0800, 贾乘 wrote: > Hi All, > > This is my bridge configuration: > > Bridge br-int > Controller "tcp:127.0.0.1:6653" > is_connected: true > fail_mode: secure > Port br-int > Interface br-int >

Re: [ovs-discuss] Core dumps generated when running ovs tests in parallel

2019-03-15 Thread Ben Pfaff
On Sat, Mar 16, 2019 at 12:28:31AM +0530, Numan Siddique wrote: > On my Fedora 29 when ever I run all the ovs tests with "-j5", I see few > core dumps generated for ovsdb-server and python2. There are a couple of tests that intentionally do "kill -SEGV", to test that things work properly in that

Re: [ovs-discuss] 回复: a question about the interface type change

2019-03-14 Thread Ben Pfaff
s0" > Interface "ovs0" > type: system > ovs_version: "2.10.1" > > > > > 发送自 Outlook<http://aka.ms/weboutlook> > > > 发件人: Ben Pfaff > 发送时间: 2019年3月15日 0:46 > 收件人: pei Jikui > 抄送:

Re: [ovs-discuss] OVS/OVN troubleshooting: where's my packet?

2019-03-14 Thread Ben Pfaff
On Thu, Mar 14, 2019 at 04:55:56PM +0100, Daniel Alvarez Sanchez wrote: > Hi folks, > > Lately I'm getting the question in the subject line more and more > frequently and facing it myself, especially in the context of > OpenStack. > > The shift to OVN in OpenStack involves a totally different

Re: [ovs-discuss] a question about the interface type change

2019-03-14 Thread Ben Pfaff
On Thu, Mar 14, 2019 at 03:12:03PM +, pei Jikui wrote: > I have a question regarding to the ovs' interface type. > > For example, we have added an port tap1 into the ovs bridge as the default > type of interface, system as designed. > The command line is " ovs-vsctl add-port br0 tap1" > If

Re: [ovs-discuss] idle_timeout not working correctly?

2019-03-13 Thread Ben Pfaff
That doesn't make sense to me. OVS doesn't automatically delete flows on any schedule unless they have some kind of timeout. On Wed, Mar 13, 2019 at 06:53:21PM -0700, Ray Li wrote: > Actually learned a rule with idle_timeout=0 and hard_timeout=0, and it's > still getting deleted after exactly 5

Re: [ovs-discuss] idle_timeout not working correctly?

2019-03-13 Thread Ben Pfaff
On Wed, Mar 13, 2019 at 04:59:34PM -0700, Ray Li wrote: > Running OVS 2.5.2 > > I used learn() to add a OVS flow with a idle_timeout=300. I continuously > send packets to trigger the learn action, so that the idle_age is always > below 1 or 2 seconds. However when the flow itself reaches 300

Re: [ovs-discuss] OVN: availability zones concept

2019-03-07 Thread Ben Pfaff
On Wed, Mar 06, 2019 at 10:32:29PM -0800, Han Zhou wrote: > On Wed, Mar 6, 2019 at 9:06 AM Ben Pfaff wrote: > > > > On Tue, Mar 05, 2019 at 09:39:37PM -0800, Han Zhou wrote: > > > On Tue, Mar 5, 2019 at 7:24 PM Ben Pfaff wrote: > > > > What's the effective

Re: [ovs-discuss] OVN: availability zones concept

2019-03-06 Thread Ben Pfaff
On Tue, Mar 05, 2019 at 09:39:37PM -0800, Han Zhou wrote: > On Tue, Mar 5, 2019 at 7:24 PM Ben Pfaff wrote: > > What's the effective difference between an OVN deployment with 3 zones, > > and a collection of 3 OVN deployments? Is it simply that the 3-zone > > deploy

[ovs-discuss] ipam allows address conflicts?

2019-03-05 Thread Ben Pfaff
[adding some folks who've worked on IPAM lately] On Tue, Mar 05, 2019 at 10:26:58AM +, James Page wrote: > Test 2768 is consistently failing on s390x in Ubuntu development. > > Note that this is the only big-endian architecture we build for so I would > suspect something endian-y as the root

Re: [ovs-discuss] OVN: availability zones concept

2019-03-05 Thread Ben Pfaff
On Thu, Feb 28, 2019 at 06:48:03PM +0100, Daniel Alvarez Sanchez wrote: > Just wanted to throw an idea here about introducing availability zones > (AZ) concept in OVN and get implementation ideas. From a CMS > perspective, it makes sense to be able to implement some sort of > logical division of

Re: [ovs-discuss] ovs-vswitchd memory consumption behavior

2019-03-05 Thread Ben Pfaff
This is taking more time than I have to invest at the moment, so I'll plan to try again if the next valgrind run doesn't help enough. On Tue, Mar 05, 2019 at 04:15:49PM -0800, Ben Pfaff wrote: > OK, sorry I missed it earlier. > > This explains why the dump-heap scripts don't work. Th

[ovs-discuss] MUSL netpacket/packet.h

2019-03-05 Thread Ben Pfaff
ch so I guess it is > still needed to build on Alpine (I'm adding Stuart Cardall who is the package > maintainer in case he can comment on this). > > Probably is only needed in Alpine, because of musl libc. > > On mié, mar 6, 2019 at 1:17 AM, Ben Pfaff wrote: > On Wed

Re: [ovs-discuss] ovs-vswitchd memory consumption behavior

2019-03-05 Thread Ben Pfaff
On Wed, Mar 06, 2019 at 12:13:32AM +, Fernando Casas Schössow wrote: > And besides the ifupdown scripts the only patch it applies seems to be > required by musl libc: > > musl-if_packet.patch > --- openvswitch-2.4.0/lib/netdev-linux.c 2015-08-20 00:33:42.960971996 + > +++

Re: [ovs-discuss] ovs-vswitchd memory consumption behavior

2019-03-05 Thread Ben Pfaff
ecting Alpine because of the compiler > optimizations it uses. > --------end > quote--- > > On mié, mar 6, 2019 at 1:08 AM, Ben Pfaff wrote: > From the core dump (that you sent m

Re: [ovs-discuss] ovs-vswitchd memory consumption behavior

2019-03-05 Thread Ben Pfaff
00) blp@sigill:~/nicira/ovs/_build(0)$ Is that correct? On Tue, Mar 05, 2019 at 03:08:59PM -0800, Ben Pfaff wrote: > That is worth a shot. Thank you. > > On Tue, Mar 05, 2019 at 11:06:08PM +, Fernando Casas Schössow wrote: > > Too bad. :( > > > > Should I

Re: [ovs-discuss] [PATCH ] ofproto: Fix for ovs-vswitchd crash on flow-mod with unsupported action

2019-03-05 Thread Ben Pfaff
On Tue, Mar 05, 2019 at 06:15:54PM +0530, parameswaran krishnamurthy wrote: > Problem Description: > The ovs-vswitchd is crashing while invoking flow-mod with upsupported > action(Tested with ovs2.10.1) Thanks for the patch. I simplified it a little and applied it to master, as appended. You

Re: [ovs-discuss] ovs-vswitchd memory consumption behavior

2019-03-05 Thread Ben Pfaff
That is worth a shot. Thank you. On Tue, Mar 05, 2019 at 11:06:08PM +, Fernando Casas Schössow wrote: > Too bad. :( > > Should I start over but leave it running for let's say 5-7 days instead? > Maybe 48 hours was not enough. > > On mié, mar 6, 2019 at 12:03 AM, Ben Pfaf

Re: [ovs-discuss] ovs-vswitchd memory consumption behavior

2019-03-05 Thread Ben Pfaff
On Tue, Mar 05, 2019 at 09:56:30PM +, Fernando Casas Schössow wrote: > Please find attached valgrind log. > It was running for around 48 hours. Hopefully it was enough otherwise let me > know and I can run it again for more time. Thanks for the log. There are several suspicious warnings to

Re: [ovs-discuss] ovs-vswitchd process huge memory consumption

2019-03-05 Thread Ben Pfaff
s it match anything that appears in the OpenFlow flow table? Are you using the kernel or DPDK datapath? On Tue, Mar 05, 2019 at 08:42:14PM +0400, Oleg Bondarev wrote: > Hi, > > thanks for your help! > > On Tue, Mar 5, 2019 at 7:26 PM Ben Pfaff wrote: > > > You're talking ab

Re: [ovs-discuss] ovs-vswitchd process huge memory consumption

2019-03-05 Thread Ben Pfaff
OK. That gives me something to investigate. I'll see what I can find out. You're running 64-bit kernel and userspace, x86-64? On Tue, Mar 05, 2019 at 08:42:14PM +0400, Oleg Bondarev wrote: > On Tue, Mar 5, 2019 at 7:26 PM Ben Pfaff wrote: > > > You're talking about the email wher

Re: [ovs-discuss] ovs-vswitchd process huge memory consumption

2019-03-05 Thread Ben Pfaff
a chance to debug the scripts yet, but just in case you > missed my last email with examples of repeatable blocks > and sequences - do you think we still need to analyze further, will the > scripts tell more about the heap? > > Thanks, > Oleg > > On Thu, Feb 28,

Re: [ovs-discuss] ovs-vswitchd memory consumption behavior

2019-03-04 Thread Ben Pfaff
lgrind running? 2-3 days? > > Thanks for looking into this Ben. > > On lun, mar 4, 2019 at 6:22 PM, Ben Pfaff wrote: > Running OVS through valgrind is probably going to be unacceptably slow. If it > works for you, though, then it will probably tell us the location of the >

Re: [ovs-discuss] ovs-vswitchd memory consumption behavior

2019-03-04 Thread Ben Pfaff
On Sat, Mar 02, 2019 at 09:53:18AM +, Fernando Casas Schössow wrote: > For this reason I'm adding OVS dev mailing list to the thread in case any of > the devs want to have a look at the dump and debug this issue. You've reached them already ;-) > If anyone wants access to the dump, reply to

Re: [ovs-discuss] ovs-vswitchd memory consumption behavior

2019-03-04 Thread Ben Pfaff
o run OVS through Valgrind and share the log file. > > What do you think? Any specific OVS or valgrind flags I should use? > > > > From: Fernando Casas Schössow > Sent: Saturday, March 2, 2019 10:59 AM > To: Ben Pfaff >

Re: [ovs-discuss] ovs-ofctl fails occasionally

2019-03-01 Thread Ben Pfaff
Thanks, I applied this to master and backported it as far as it would go. On Fri, Mar 01, 2019 at 04:45:22AM +, Ken Ajiro wrote: > > Ben, > > > The following stopgap appears to fix the problem on master. I suspect > > it could be easily backported as far as necessary. Does it work for

Re: [ovs-discuss] Router not allowing traffic in reverse

2019-02-28 Thread Ben Pfaff
ieve it is working exactly how it is > configured. I believe OpenStack is just configuring OVS, and it has put in a > flow rule or something that is allowing outbound for a network/subnet but not > inbound. I'm asking how to figure out where in OVS it is stopping at. > > > O

Re: [ovs-discuss] Router not allowing traffic in reverse

2019-02-28 Thread Ben Pfaff
gt; > > On Feb 28, 2019, at 4:33 PM, Ben Pfaff wrote: > > > >> On Wed, Feb 27, 2019 at 09:26:16PM -0600, John Carew wrote: > >> I have setup OpenStack with OVS. I have a single Hyper-V server running the > >> controller and three CentOS instances(10.0.0.x) on

Re: [ovs-discuss] Router not allowing traffic in reverse

2019-02-28 Thread Ben Pfaff
On Wed, Feb 27, 2019 at 09:26:16PM -0600, John Carew wrote: > I have setup OpenStack with OVS. I have a single Hyper-V server running the > controller and three CentOS instances(10.0.0.x) on a private subnet. I > created a router in OpenStack with SNAT disabled, as I only want it to route >

Re: [ovs-discuss] Open vSwitch 2.11.0 Available

2019-02-28 Thread Ben Pfaff
The correct URLs look like this: https://www.openvswitch.org/releases/NEWS-2.11.0.txt On Thu, Feb 28, 2019 at 10:15:13AM -0500, Flaviof wrote: > Heh, looks like a 404 indeed. > > For now, if you are looking for the actual content of 2.11.0, try this link: > >

Re: [ovs-discuss] ovs-vswitchd process huge memory consumption

2019-02-28 Thread Ben Pfaff
On Tue, Feb 26, 2019 at 01:41:45PM +0400, Oleg Bondarev wrote: > Hi, > > thanks for the scripts, so here's the output for a 24G core dump: > https://pastebin.com/hWa3R9Fx > there's 271 entries of 4MB - does it seem something we should take a closer > look at? I think that this output really just

Re: [ovs-discuss] How to send information from ovs to controller through Openflow

2019-02-27 Thread Ben Pfaff
On Thu, Feb 28, 2019 at 12:49:27AM +0700, Tuyen Dinh wrote: > I'm doing a project that need to modify ovs source code to do some > statistics about the packets (which I can't get that information from flow > tables). After get that statistics , I need to send them to the controller. > As far as I

Re: [ovs-discuss] ovs-ofctl fails occasionally

2019-02-27 Thread Ben Pfaff
On Wed, Feb 27, 2019 at 12:45:58PM +, Ken Ajiro wrote: > > Hello, > > When I use ovs-ofctl on OVS 2.10.1, it failed occasionally by error: > > ovs-ofctl: br0: failed to connect to socket (Broken pipe) > > This error is possible to be reproduced with: > > # while :; do

Re: [ovs-discuss] ovs-vswitchd process huge memory consumption

2019-02-25 Thread Ben Pfaff
s, if I find that the process memory usage grows up to around 500MB but > then becomes steady and is not growing anymore would it make sense to collect > a dump for analysis? > > On lun, feb 25, 2019 at 5:48 PM, Ben Pfaff wrote: > Both configurations should work, so probably you did find

Re: [ovs-discuss] ovs-vswitchd process huge memory consumption

2019-02-25 Thread Ben Pfaff
aid is steady for > almost a week so I will keep monitoring it for a couple more weeks just in > case and report back. > > Thanks. > Kind regards, > > Fernando > > On sáb, feb 23, 2019 at 12:23 AM, Ben Pfaff wrote: > It's odd that two people would notice the same problem at

Re: [ovs-discuss] How exactly OVS dispatch the Packet_In messages among different ODL controllers?

2019-02-25 Thread Ben Pfaff
On Mon, Feb 25, 2019 at 05:58:58AM +, JINTING LIN wrote: > Hi everyone, > > I am going to develop a load balancing application with ODL and OVS. But I am > not so sure about how exactly OVS dispatch the Packet_In messages among > different > controllers. > > The OpenFlow Switch

Re: [ovs-discuss] ovs-vswitchd process huge memory consumption

2019-02-22 Thread Ben Pfaff
It's odd that two people would notice the same problem at the same time on old branches. Anyway, I'm attaching the scripts I have. They are rough. The second one invokes the first one as a subprocess; it is probably the one you should use. I might have to walk you through how to use it, or

Re: [ovs-discuss] DPDK link state

2019-02-21 Thread Ben Pfaff
On Thu, Feb 21, 2019 at 02:58:16PM +0100, Riccardo Ravaioli wrote: > Let's say I have a basic setup with a Linux virtual machine with one > vhostuser interface, a physical interface in DPDK mode, and an OVS switch > with those two interfaces on it. > Can the VM know when the link on the physical

Re: [ovs-discuss] ovs-vswitchd memory consumption behavior

2019-02-16 Thread Ben Pfaff
ienced developer but I will do my best and find my way > to follow your suggestions. > > On sáb, feb 16, 2019 at 11:37 PM, Ben Pfaff wrote: > On Sat, Feb 16, 2019 at 10:00:46PM +, Fernando Casas Schössow wrote: > Indeed OVS is logging memory usage. As you can see after running f

Re: [ovs-discuss] ovs-vswitchd memory consumption behavior

2019-02-16 Thread Ben Pfaff
On Sat, Feb 16, 2019 at 10:00:46PM +, Fernando Casas Schössow wrote: > Indeed OVS is logging memory usage. As you can see after running for around 4 > months OVS memory usage grows as high as 15GB.: ... > Let me know if any other log information or command output can help to > understand

Re: [ovs-discuss] ovs-vswitchd memory consumption behavior

2019-02-16 Thread Ben Pfaff
It's not normal. OVS should be logging information about memory usage periodically. What do the logs say about this? On Sat, Feb 16, 2019 at 10:23:55AM +, Fernando Casas Schössow wrote: > Hi, > > I'm running OVS on a Qemu/KVM virtualization host for a while now. The > virtualization host

Re: [ovs-discuss] How to store the tcp_src or tcp_dst field value in a variable and then print in vlogs?

2019-02-15 Thread Ben Pfaff
> this value ? > > Thanks > > On Sat, Feb 16, 2019, 08:43 Ben Pfaff wrote: > > > Then you're going to have to work harder since miniflow_extract() is > > what initializes the L4 header pointer. > > > > On Sat, Feb 16, 2019 at 08:39:08AM +0800, Krish wrote:

Re: [ovs-discuss] How to store the tcp_src or tcp_dst field value in a variable and then print in vlogs?

2019-02-15 Thread Ben Pfaff
> > On Sat, Feb 16, 2019, 03:44 Ben Pfaff wrote: > > > On Fri, Feb 15, 2019 at 03:48:22PM +0800, Krish wrote: > > > Hi > > > > > > I want to store tcp_src, dst port in a variable. > > > This is what I am doing: > > > 1. Retrieve

Re: [ovs-discuss] How to store the tcp_src or tcp_dst field value in a variable and then print in vlogs?

2019-02-15 Thread Ben Pfaff
On Fri, Feb 15, 2019 at 03:48:22PM +0800, Krish wrote: > Hi > > I want to store tcp_src, dst port in a variable. > This is what I am doing: > 1. Retrieve packet from dp_packet_batch one by one. > 2. Retrieving field values by extracting packets headers: > > struct ip_header *ip =

Re: [ovs-discuss] RSTP in VLAN

2019-02-14 Thread Ben Pfaff
On Wed, Feb 13, 2019 at 08:43:56AM +0100, Matthias May via discuss wrote: > Hi > I've run into the situation where I need to receive/transmit VLAN-tagged RSTP > frames. > > I can not find any information on anyone ever doing that with OVS. > Any pointers on how to do that? > > What I've tried

Re: [ovs-discuss] how to enable the log of ovn

2019-02-14 Thread Ben Pfaff
On Thu, Feb 14, 2019 at 06:55:15PM +0800, taoyunupt wrote: > Sorry to disturb. I have use ovn with openstasck for a > while time,but i still do not know how to enable the log of ovn. > There are only logging options in the manpage or the help > of

Re: [ovs-discuss] Can I send a message to the controller whenever apacket arrives on the switch???

2019-02-13 Thread Ben Pfaff
I don't understand the question. On Thu, Feb 14, 2019 at 05:06:22AM +0900, 장예훈 wrote: > I’m so sorry. > Do I have to have the list like the one below?? > > 보낸 사람: Ben Pfaff > 보낸 날짜: 2019년 2월 14일 목요일 오전 5:01 > 받는 사람: 장예훈 > 참조: disc...@openvswitch.org > 제목: Re: [ovs-discu

Re: [ovs-discuss] Can I send a message to the controller whenever a packet arrives on the switch???

2019-02-13 Thread Ben Pfaff
Please don't drop the list. Yes. Yes. On Thu, Feb 14, 2019 at 04:55:17AM +0900, 장예훈 wrote: > Should I add it to the controller??? > When setting FlowEntry on the controller, do you set two actions?? > > Thank you very much for your answer. > > 2019년 2월 14일 (목) 오전 4:4

Re: [ovs-discuss] Can I send a message to the controller whenever a packet arrives on the switch???

2019-02-13 Thread Ben Pfaff
On Thu, Feb 14, 2019 at 04:29:21AM +0900, 장예훈 wrote: > I would like to send a message to the controller even if there is a FlowEntry > That matches every time a packet enters the switch. Have the controller put a send-to-controller action in its flow entries.

Re: [ovs-discuss] Can I create a new OpenFlow message from OVS to the controller???

2019-02-12 Thread Ben Pfaff
On Wed, Feb 13, 2019 at 06:27:43AM +0900, 장예훈 wrote: > I’m really sorry to keep asking you questions. Please help me once…. > > I want to create a new OpenFlow message from OVS and send it to the > controller. > What source code should I modify?? > > Or, I would like to add anew value to the

Re: [ovs-discuss] Insert flows from file

2019-02-11 Thread Ben Pfaff
On Mon, Feb 11, 2019 at 09:01:44PM +0200, George Papathanail wrote: > Hello, I wondering how can I insert flows on switches with ovs-ofctl > command, > from a bash script file that I wrote. ovs-ofctl add-flows ___ discuss mailing list

Re: [ovs-discuss] intrested in ovs

2019-02-09 Thread Ben Pfaff
For now, I’m in the first step, which is: > > Once the switch receives a packet, the packet header must be extracted to > read the (ip, ports, TCP flags) of the source and destination. > > I’m not sure how to do this using this switch. > > > Best, > > Sura > >

Re: [ovs-discuss] intrested in ovs

2019-02-08 Thread Ben Pfaff
On Fri, Feb 08, 2019 at 07:24:53PM +0300, Sura Takiddin wrote: > Is there a way to extract the ip address, ports and TCP flags from the > header's packet (before sending it to the flow table?) > I'm interested in adding few rules to the switch based on the ip, ports and > TCP flags. Maybe you

Re: [ovs-discuss] password in plain text?!

2019-02-01 Thread Ben Pfaff
On Fri, Feb 01, 2019 at 02:49:11PM -0700, Grant Taylor via discuss wrote: > On 02/01/2019 03:44 AM, Riccardo Ravaioli wrote: > > Why is the mailing list memberships reminder sending me my password in > > plain text? That's not too nice... :) > > That is how Mailman operates. (At least the 2.x

Re: [ovs-discuss] password in plain text?!

2019-02-01 Thread Ben Pfaff
On Fri, Feb 01, 2019 at 11:44:53AM +0100, Riccardo Ravaioli wrote: > Why is the mailing list memberships reminder sending me my password in > plain text? That's not too nice... :) > > Can that be fixed? It's what mailman always does everywhere I"m aware of. It's really made clear on the

Re: [ovs-discuss] [ovirt-users] Open_vSwitch no key error after upgrading to 4.2.8

2019-01-29 Thread Ben Pfaff
Each time you invoke it, you should specify the options you want. On Tue, Jan 29, 2019 at 11:32:05AM -0400, Jayme wrote: > I understand that, I'm just not sure which command to run it with to kill > this syslog spamming. > > On Tue, Jan 29, 2019 at 11:28 AM Ben Pfaff wrote: >

Re: [ovs-discuss] [ovirt-users] Open_vSwitch no key error after upgrading to 4.2.8

2019-01-29 Thread Ben Pfaff
On Tue, Jan 29, 2019 at 04:32:18PM +0100, Dominik Holler wrote: > On Tue, 29 Jan 2019 11:16:16 -0400 > Jayme wrote: > > > This command on ovirt host gives me: > > > > # ovs-vsctl --verbose=db_ctl_base:syslog:off > > ovs-vsctl: missing command name (use --help for help) > > > > Jayme, sorry

Re: [ovs-discuss] [ovirt-users] Open_vSwitch no key error after upgrading to 4.2.8

2019-01-29 Thread Ben Pfaff
n 28, 2019 at 3:35 PM Dominik Holler wrote: > > > On Mon, 28 Jan 2019 10:46:37 -0800 > > Ben Pfaff wrote: > > > > > On Mon, Jan 28, 2019 at 05:37:36PM +0100, Dominik Holler wrote: > > > > Is there a way to disable the error message > > > &g

Re: [ovs-discuss] [ovirt-users] Open_vSwitch no key error after upgrading to 4.2.8

2019-01-28 Thread Ben Pfaff
On Mon, Jan 28, 2019 at 05:37:36PM +0100, Dominik Holler wrote: > Is there a way to disable the error message > > ovs|1|db_ctl_base|ERR|no key "xxx" in Open_vSwitch record "." column > external_ids > > in syslog? > ovs-appctl vlog/set seems not to know about db_ctl_base. This message

Re: [ovs-discuss] OVS 2.10.1 build --with-dpdk 18.11 fails in compiling a structure

2019-01-27 Thread Ben Pfaff
On Sat, Jan 26, 2019 at 07:08:18PM -0500, Debug Netiq One via discuss wrote: > So - what version of OpenVswitch with what version of DPDK please??? Use the version recommended in the documentation for the version of OVS you're using. See Documentation/intro/install/dpdk.rst.

Re: [ovs-discuss] openvswitch not fault tolerant or contain failover mechanism

2019-01-24 Thread Ben Pfaff
On Fri, Jan 25, 2019 at 02:01:54AM +0300, Amer Hwitat wrote: > Hi, > > I have the following issue: > > [root@localhost neutron]# systemctl status network > ● network.service - LSB: Bring up/down networking >Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled) >Active:

Re: [ovs-discuss] 答复: Help about "ovs-vsctl add-port" command

2019-01-23 Thread Ben Pfaff
What you're seeing is that it doesn't work, in the same way and for the same reason, in both versions, but the later version reports the error. ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Re: [ovs-discuss] Help about "ovs-vsctl add-port" command

2019-01-23 Thread Ben Pfaff
On Thu, Jan 24, 2019 at 03:10:48AM +, 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

Re: [ovs-discuss] Two threads update a switch concurrently

2019-01-18 Thread Ben Pfaff
two threads > concurrently using ovs-ofctl? Did you mean OVS will internally serialize > the update requests from concurrent threads? > > > Thanks, > > Yiyang > > On 1/19/19 12:43 AM, Ben Pfaff wrote: > > On Sat, Jan 19, 2019 at 12:26:33AM -0500, Yiyang Chan

Re: [ovs-discuss] Two threads update a switch concurrently

2019-01-18 Thread Ben Pfaff
On Sat, Jan 19, 2019 at 12:26:33AM -0500, Yiyang Chang wrote: > I am wondering what will happen if there are two threads updating a > switch concurrently with ovs-ofctl. Is there a switch-level lock in OVS? OVS has a single thread that processes OpenFlow.

Re: [ovs-discuss] ovs-ofctl dump-flows output numbers base

2019-01-18 Thread Ben Pfaff
On Fri, Jan 18, 2019 at 11:43:05AM -0500, Matteo Olivi wrote: > in OvS 2.5.5. "ovs-ofctl dump-flows " output some numeric flow > fields (e.g. tun_id) are printed as hex numbers. Is there a way to get all > such numbers in decimal notation? No. ___

Re: [ovs-discuss] "ovs-vsctl destroy IPFIX" does not clear the table

2019-01-18 Thread Ben Pfaff
On Fri, Jan 18, 2019 at 03:36:08PM +0800, Rockmen Jack wrote: > I tried on 2.8.0 and 2.10.1, both failed to clear the table but there > is no error printed, the return code was 0 as well. It turns out > "ovs-vsctl clear Bridge br0 ipfix" will do the work, which is a > confusing behavior.(also

Re: [ovs-discuss] Incorrect packet statistics when mirroring vlans

2019-01-17 Thread Ben Pfaff
__ > From: Shweta Seth (shwseth) > Sent: Wednesday, January 2, 2019 1:15 PM > To: Ben Pfaff > Cc: ovs-discuss@openvswitch.org; Yegappan Lakshmanan (yega); Sabita Jasty > (sjasty) > Subject: Re: [ovs-discuss] Incorrect packet statistics when mirroring vlans > > Thanks

Re: [ovs-discuss] [ovs-dev] a problem the userspace datapath failed to create a new datapath flow for the QinQ packet

2019-01-15 Thread Ben Pfaff
On Mon, Jan 14, 2019 at 12:12:34PM +, wangyunjian wrote: > Hi, > > I found a problem the userspace datapath failed to create a > new datapath flow for the QinQ packet. When getting mask from > nlattrs with the mask include ip,udp,etc, it parsed 802.1Q > header wrongly. > > This patch fixes

Re: [ovs-discuss] ovs-ofctl transactions syntax

2019-01-15 Thread Ben Pfaff
Please don't drop the list. ovs-ofctl --bundle add-flows SWITCH - < Is there a way to do that without a file, i. e. specifying the flows > inline? > > Il giorno mar 15 gen 2019, 01:10 Ben Pfaff ha scritto: > > > On Mon, Jan 14, 2019 at 09:29:56PM -0500, Matteo Oliv

Re: [ovs-discuss] Way to distinguish different packets rather than parsing a packet?

2019-01-14 Thread Ben Pfaff
I don't know where I am going wrong. > I would really appreciate your help on this. > > > Thank You > > > > On Fri, Jan 11, 2019 at 2:42 AM Ben Pfaff wrote: > > > On Thu, Jan 10, 2019 at 02:34:47PM +0800, Krish wrote: > > > Is there any other wa

Re: [ovs-discuss] [SFC NSH] Update "eth_dst" for original packet after decap nsh encapsulation packet.

2019-01-11 Thread Ben Pfaff
16:3e:05:3a:12->eth_dst,resubmit(,5) > > As I known, after using decap() 2 times, I can get the original packet. So, > I can update eth_dst to it. > > > > > > Vào Th 6, 11 thg 1, 2019 vào lúc 04:32 Ben Pfaff đã viết: > > > On Fri, Jan 11, 2019 a

Re: [ovs-discuss] [SFC NSH] Update "eth_dst" for original packet after decap nsh encapsulation packet.

2019-01-10 Thread Ben Pfaff
On Fri, Jan 11, 2019 at 04:26:03AM +0900, Hoàng Công Phước wrote: > Hi experts, > > I am trying to update "eth_dst" for original packet after decap nsh > encapsulation packet. Here is my command about it: > > $ sudo ovs-ofctl add-flow br-int "table=10, priority=1, dl_vlan=4, >

Re: [ovs-discuss] Way to distinguish different packets rather than parsing a packet?

2019-01-10 Thread Ben Pfaff
On Thu, Jan 10, 2019 at 02:34:47PM +0800, Krish wrote: > Is there any other way to distinguish different types of packets/flows when > they enter dp_netdev_input__ and processed further(EMC,fastpath etc)? > > As of now, I have to *flow_extract* the packets using *struct flow flow*: > > if

Re: [ovs-discuss] Confusing errors in response to incorrectly formed OFPGroupMod

2019-01-09 Thread Ben Pfaff
On Tue, Jan 08, 2019 at 04:04:37PM +0300, Artem Gromov wrote: > Hi, > OVS sends confusing error message to incorrectly formed OFPGroupMod message > with OFPGC_ADD command and command_bucket_id set. > > This condition (absence of else keyword and body) is probably the main > cause: >

Re: [ovs-discuss] Bitmask

2019-01-09 Thread Ben Pfaff
On Mon, Jan 07, 2019 at 07:45:05PM +0200, George Papathanail wrote: > I have instantiate a topology in Mininet with 2hosts and 3 switches. > I have to encode the output ports of the switches on packet header in order > to reduce the state of the switches. > > For example if the output ports are 3

Re: [ovs-discuss] crash when restart openvswitch with huge vxlan traffic running

2018-12-28 Thread Ben Pfaff
On Fri, Dec 28, 2018 at 10:03:01AM -0800, Gregory Rose wrote: > > On 12/27/2018 1:38 PM, Gregory Rose wrote: > > > >On 12/27/2018 11:40 AM, Ben Pfaff wrote: > >>Greg, this is a kernel issue.  If you have the time, will you take a > >>look at it sometime? >

Re: [ovs-discuss] Incorrect packet statistics when mirroring vlans

2018-12-27 Thread Ben Pfaff
On Thu, Dec 13, 2018 at 09:30:09PM +, Shweta Seth (shwseth) via discuss wrote: > When mirroring packets between two VLANs, we have observed that the OVS > mirror packet transmit statistics as displayed by the "ovs-vsctl list > mirror show tx packets" command is not correct. Thank you for the

Re: [ovs-discuss] crash when restart openvswitch with huge vxlan traffic running

2018-12-27 Thread Ben Pfaff
Greg, this is a kernel issue. If you have the time, will you take a look at it sometime? On Thu, Dec 20, 2018 at 12:42:43PM +, 王志克 wrote: > Hi All, > > I did below test, and found system crash, does anyone knows whether there are > already some fix for it? > > Setup: > CentOS7.4

Re: [ovs-discuss] open vswitch / openflow includes for nicira extensions

2018-12-27 Thread Ben Pfaff
On Wed, Dec 19, 2018 at 06:59:05PM -0700, Raymond Burkholder wrote: > I have been using header file definitions found in > https://www.opennetworking.org/wp-content/uploads/2014/10/openflow-switch-v1.4.1.pdf > to build an open flow controller. > > The controller communicates successfully with

Re: [ovs-discuss] Cannot Add Meter in OVS 2.10.2

2018-12-27 Thread Ben Pfaff
't have DPDK compatible network cards. > > On Thu, Dec 27, 2018, 8:24 PM Ben Pfaff > > On Thu, Dec 27, 2018 at 12:02:50PM +0500, Ramzah Rehman wrote: > > > It is mentioned in FAQ of QoS that "Open vSwitch 2.10 has implemented > > > meters in the Linux kernel datapath &

Re: [ovs-discuss] Cannot Add Meter in OVS 2.10.2

2018-12-27 Thread Ben Pfaff
On Thu, Dec 27, 2018 at 12:02:50PM +0500, Ramzah Rehman wrote: > It is mentioned in FAQ of QoS that "Open vSwitch 2.10 has implemented > meters in the Linux kernel datapath " which means we can use meters in > kernel datapath. However, when I try to add meter, I get > OFPMMFC_INVALID_METER error.

Re: [ovs-discuss] Anything wrong with my settings, using two NICs for VPN.

2018-12-25 Thread Ben Pfaff
On Tue, Dec 25, 2018 at 05:37:53PM +0800, luckydog xf wrote: > I'm using OpenVswitch and Openstack to build an instance with two NICs > named eth0 and eth1, both NICs get IP by DHCP of DNSmasq. > > I also build a SoftEther VPN serice, eth0 is as management IP for SSH, > while eth1 as IP

Re: [ovs-discuss] flow match against an offset in the payload

2018-12-23 Thread Ben Pfaff
On Sun, Dec 23, 2018 at 08:24:07AM +, Avi Cohen (A) wrote: > I need to install a flow to be matched against a field in the UDP payload > in a known offset > Is this possible with OvS ? No. ___ discuss mailing list disc...@openvswitch.org

Re: [ovs-discuss] Single nic server and ovn

2018-12-19 Thread Ben Pfaff
hu, Dec 20, 2018 at 12:51:02AM +0300, Vasiliy Tolstov wrote: > As i understand in various tutorials i need to add ethernet device to > ovs to be able to send traffic or use localnet port > > ср, 19 дек. 2018 г. в 20:16, Ben Pfaff : > > > > On Wed, Dec 19, 2018 at 09:56

Re: [ovs-discuss] Connection loss when adding comm interface to ovs

2018-12-19 Thread Ben Pfaff
On Wed, Dec 19, 2018 at 02:19:49PM +0200, Sara Gittlin wrote: > Ok - found the answer for the 1st question in > http://docs.openvswitch.org/en/latest/faq/issues/ > you have to assign the ip-address to the br0. > what about my 2nd question : how to delete the persistent ovs configuration > file

Re: [ovs-discuss] Single nic server and ovn

2018-12-19 Thread Ben Pfaff
On Wed, Dec 19, 2018 at 09:56:28AM +0300, Vasiliy Tolstov wrote: > Hi, i have some servers that have only one nic for network. As i understand > for ovn i need to add this interface to ovs bridge. > But for host access i need some ip address on server and also if ovs or ovn > is down or something

Re: [ovs-discuss] a small mistake in function call

2018-12-19 Thread Ben Pfaff
On Wed, Dec 19, 2018 at 05:44:23PM +0800, shaoke xi wrote: > I am reading the source code about QoS module now, and I find there is a > small mistake at line 3801 in function sfq_tc_load() of file > ovs/lib/netdev-linux.c. When it calls the function sfq_install__(), it > passes parameter perturb

Re: [ovs-discuss] documentation improvements

2018-12-18 Thread Ben Pfaff
On Wed, Dec 19, 2018 at 01:08:47AM +, Davis, Matthew wrote: > *What is the full list of possible types for a port? I know of > dpdkvhostuserclient, dpdkvhostuser and internal. What are the other types? See ovs-vswitchd.conf.db(5). > *Every bridge example I've seen has

Re: [ovs-discuss] Traffic Shaping in OVS

2018-12-14 Thread Ben Pfaff
t; > > cookie=0x2b, duration=2872.227s, table=5, n_packets=67995, > n_bytes=17546204, idle_age=0, > priority=65235,ip,reg1=0x1,metadata=0x1485c02ed2e009 > actions=resubmit(,20),set_field:0x2b->reg > > 2,set_queue: > > > Thanks, > > -Jagan. > >

Re: [ovs-discuss] OVS stops working after 1 hour with repetitive errors in neutron-openvswitch-agent.log

2018-12-14 Thread Ben Pfaff
Thanks for the report. It's difficult to get much from this report because it does not include any of the information from OVS itself. Can you provide OVS logs? Is OVS leaving core dumps? (Can you provide backtraces?) OVS 2.10.1 has been released with many bug fixes over 2.10.0. Probably

Re: [ovs-discuss] vswitchd 2.9.3/2.10.1 crashes handling port add/mod

2018-12-12 Thread Ben Pfaff
; exit status 0, exiting > > > I ran with vlog DBG and it didn't seem to print anything more than that. > > What a puzzle! > > > > On Thu, Dec 13, 2018 at 9:29 AM Ben Pfaff wrote: > > > Thanks for testing. > > > > I discovered that this exact patch

Re: [ovs-discuss] [ovs-dev] Geneve remote_ip as flow for OVN hosts

2018-12-12 Thread Ben Pfaff
> -venu > > On Wednesday, October 31, 2018, 10:30:23 AM PDT, Ben Pfaff > wrote: > > Honestly the best thing to do is probably to propose a design or, if > it's simple enough, to send a patch.  That will probably be more > effective at sparking a discussion. >

Re: [ovs-discuss] vswitchd 2.9.3/2.10.1 crashes handling port add/mod

2018-12-12 Thread Ben Pfaff
wrote: > Yes sir. That fixes it - vswitchd no longer crashes. > > Thanks, > > > On Tue, Dec 11, 2018 at 12:31 PM Ben Pfaff wrote: > > > Here's a more specific patch that, if my hypothesis is correct, would > > solve the issue. > > > > diff --git a/of

Re: [ovs-discuss] Traffic Shaping in OVS

2018-12-12 Thread Ben Pfaff
Jagan. > > Thanks, > -Jagan. > > On Wed, Dec 12, 2018 at 7:56 AM Ben Pfaff wrote: > > > On Tue, Dec 11, 2018 at 11:18:16PM -0800, Rallapalli Jagannath wrote: > > > Hi, > > > I am new to OVS and I have a question on traffic shaping . > > > Setu

Re: [ovs-discuss] 答复: A coredump cause by the race condition by handler、upcall and revalidation thread

2018-12-12 Thread Ben Pfaff
. From master commit f2d3fef3d90253dda3e03822df2e921ec853192d. Fixes: 994fcc5a15d3 ("upcall: Check for recirc_id in ukey_create_from_dpif_flow()") Signed-off-by: Joe Stringer Reviewed-by: Greg Rose Acked-by: Ben Pfaff commit 8e4e55f17e07c45143338c543239c556c2214

Re: [ovs-discuss] Traffic Shaping in OVS

2018-12-12 Thread Ben Pfaff
On Tue, Dec 11, 2018 at 11:18:16PM -0800, Rallapalli Jagannath wrote: > Hi, > I am new to OVS and I have a question on traffic shaping . > Setup: > - > I have a bridge br1 with two interfaces br1(LOCAL) and tn1 tunnel > interface. Bridge br1 doesn't have any physical interfaces. > Traffic

Re: [ovs-discuss] Default datapath_type of Bridges

2018-12-10 Thread Ben Pfaff
On Mon, Dec 10, 2018 at 11:44:01PM +, Tobias Hofmann -T (tohofman - AAP3 INC at Cisco) wrote: > Hi Ben, > > Thanks for the quick reply. > > Command that I'm using: ovs-vsctl remove bridge test-br datapath_type netdev > Output message: ovs-vsctl: "remove" operation would put 0

Re: [ovs-discuss] vswitchd 2.9.3/2.10.1 crashes handling port add/mod

2018-12-10 Thread Ben Pfaff
*ofconn, ovs_assert(reason < 32); ovs_assert((unsigned int) type < OAM_N_TYPES); -if (!rconn_is_connected(ofconn->rconn)) { +if (!rconn_is_connected(ofconn->rconn) || !ofconn->protocol) { return false; } On Mon, Dec 10, 2018 at 12:37:14PM -0800,

Re: [ovs-discuss] Default datapath_type of Bridges

2018-12-10 Thread Ben Pfaff
On Mon, Dec 10, 2018 at 10:01:48PM +, Tobias Hofmann -T (tohofman - AAP3 INC at Cisco) via discuss wrote: > Hi, > > I noticed that the property datapath_type of a freshly created bridge is by > default empty. In order to support DPDK, I have to set the datapath_type to > netdev. > > Now

<    1   2   3   4   5   6   7   8   9   10   >