[ovs-dev] [PATCH 2/3] ovsdb-dot: Fix flake8 issues.

2024-04-10 Thread Ilya Maximets
Missing and extra spaces, missing empty lines, unused imports and variables, long lines. Decided to just comment out the unused 'tail' and 'head' as they seem useful in documenting the meaning of the words. Files added to flake8-check to avoid future issues. Signed-off-by: Ilya Maximets ---

[ovs-dev] [PATCH 3/3] github: Update python to 3.12.

2024-04-10 Thread Ilya Maximets
We pinned the python version to 3.9 because we had issues building older meson 0.47.1 with python 3.10. Since then meson was updated to 0.53.2 in our CI, but we didn't reconsider the python version. Newer versions of python uncover more issues with our python files. And newer major distributions

[ovs-dev] [PATCH 1/3] ovsdb-doc: Fix syntax warning with Python 3.12 and flake8 issues.

2024-04-10 Thread Ilya Maximets
ovsdb-doc script generates the following syntax warning while running with Python 3.12: /ovsdb/ovsdb-doc:240: SyntaxWarning: invalid escape sequence '\{' s += """ This doesn't cause a build failure because so far it's only a warning, but it will become a syntax error in the future. Fix that

[ovs-dev] [PATCH 0/3] Fix more issues with Python and update to 3.12.

2024-04-10 Thread Ilya Maximets
Fixing a few more issues with Python 3.12 and Python files in general. Switch CI testing to Python 3.12, more explanation in commit messages. Plan s to also backport these changes to fix issues on older branches and also to have uniform CI on all branches if possible. Ilya Maximets (3):

Re: [ovs-dev] [PATCH] rhel/systemd: Set ovsdb-server timeout to 5 minutes

2024-04-10 Thread Ilya Maximets
On 4/10/24 17:48, Chris Riches wrote: > If the database is particularly large (multi-GB), ovsdb-server can take Hi, Chris. May I ask how did you end up with multi-GB database? I would understand if it was an OVN Southbound DB, for example, but why the local database that only stores

[ovs-dev] [PATCH] rhel/systemd: Set ovsdb-server timeout to 5 minutes

2024-04-10 Thread Chris Riches
If the database is particularly large (multi-GB), ovsdb-server can take several minutes to come up. This tends to fall afoul of the default systemd start timeout, which is typically 90s, putting the service into an infinite restart loop. To avoid this, set the timeout to a more generous 5

[ovs-dev] [PATCH 3/3] python: ovsdb-idl: Convert new_uuid insert() arg to UUID.

2024-04-10 Thread Terry Wilson
The argument to insert() should be a uuid.UUID object. If it isn't then a Row is created with a string uuid attribute and that row is added to table.rows with a string key instead of a UUID key. Fixes: 55b9507e6824 ("ovsdb-idl: Add the support to specify the uuid for row insert.") Signed-off-by:

[ovs-dev] [PATCH 2/3] python: ovsdb-idl: Make IndexedRows mirror hmap.

2024-04-10 Thread Terry Wilson
The Python IDL code very closely mirrors the C IDL code, which uses an hmap to store table rows. hmap code allows duplicate keys, while IndexedRows, which is derived from DictBase does not. The persistent UUID code can attempt to temporarily add a Row with a duplicate UUID to table.rows, so

[ovs-dev] [PATCH 1/3] ovsdb-idl: Add python keyword to persistent UUID test.

2024-04-10 Thread Terry Wilson
The Python persistent UUID tests should have the keyword "python" added so that TESTSUITEFLAGS="-k python" will not miss testing them. Fixes: 55b9507e6824 ("ovsdb-idl: Add the support to specify the uuid for row insert.") Signed-off-by: Terry Wilson --- tests/ovsdb-idl.at | 2 +- 1 file

Re: [ovs-dev] [PATCH] python: Remove hacking dependency and use recent flake8.

2024-04-10 Thread Ilya Maximets
On 4/10/24 18:24, Simon Horman wrote: > On Wed, Apr 10, 2024 at 03:56:24PM +0200, Dumitru Ceara wrote: >> The previously enabled 'hacking' checks were only applicable to Python 2 >> code. OVS doesn't support Python 2 for a while now so it's fine to >> remove the dependency on hacking. >> >> A

Re: [ovs-dev] [PATCH] vlog: Log stack trace on vlog_abort.

2024-04-10 Thread Ilya Maximets
On 4/10/24 18:24, Simon Horman wrote: > On Wed, Apr 10, 2024 at 02:10:20PM +0200, Ilya Maximets wrote: >> On 4/6/24 00:08, Ilya Maximets wrote: >>> Currently, calls like ovs_assert() just print out a condition that >>> caused assertion to fail. But it may be not enough to understand what >>>

Re: [ovs-dev] [PATCH branch-2.17] xenserver: Fix tests with Python 3.12.

2024-04-10 Thread Ilya Maximets
On 4/10/24 18:17, Simon Horman wrote: > On Tue, Apr 09, 2024 at 10:24:09PM +0200, Ilya Maximets wrote: >> Without this change many unit tests are failing on systems with >> Python 3.12: >> >> +++ /tests/testsuite.dir/at-groups/2352/stdout >> @@ -1,3 +1,5 @@ >> +/./interface-reconfigure:98:

Re: [ovs-dev] [PATCH] cirrus: Update to FreeBSD 13.3.

2024-04-10 Thread Ilya Maximets
On 4/10/24 12:04, Kevin Traynor wrote: > On 10/04/2024 10:51, Eelco Chaudron wrote: >> >> >> On 10 Apr 2024, at 11:41, Ilya Maximets wrote: >> >>> 13.3 was released on March 5 and 13.2 will reach EoL in June. >>> Update now. >> >> Changing from 13.2 to 13.3 looks fine to me. Assume you ran it

Re: [ovs-dev] [PATCH] checkpatch: Don't spellcheck names in tags.

2024-04-10 Thread Ilya Maximets
On 4/10/24 11:37, Eelco Chaudron wrote: > > > On 9 Apr 2024, at 21:55, Ilya Maximets wrote: > >> Current code checks spelling of names in commit message tags and that >> makes no sense. >> >> Most of the tags are explicitly handled, but tags like 'Tested-by' or >> other lesser used ones are

Re: [ovs-dev] [ANN] Primary OVS branch renamed as main development branch as main.

2024-04-10 Thread Han Zhou
On Wed, Apr 10, 2024 at 6:52 AM Simon Horman wrote: > > Hi, > > I would like to announce that the primary development branch for OvS > has been renamed main. > > The rename occurred a little earlier today. > > OVS is currently hosted on GitHub. We can expect the following behaviour > after the

Re: [ovs-dev] [PATCH 2/2] github: Remove reference to master branch.

2024-04-10 Thread Ilya Maximets
On 4/10/24 16:09, Simon Horman wrote: > The OvS primary development branch has been renamed main > so there is no longer any need for this CI configuration > to refer to master. > > Signed-off-by: Simon Horman > --- > .github/workflows/build-and-test.yml | 2 +- > 1 file changed, 1

Re: [ovs-dev] [PATCH 1/2] appveyor: Remove reference to master branch.

2024-04-10 Thread Ilya Maximets
On 4/10/24 16:09, Simon Horman wrote: > The OvS primary development branch has been renamed main > so there is no longer any need for this CI configuration > to refer to master. > > Signed-off-by: Simon Horman > --- > appveyor.yml | 1 - > 1 file changed, 1 deletion(-) > > diff --git

Re: [ovs-dev] [PATCH] python: Remove hacking dependency and use recent flake8.

2024-04-10 Thread Simon Horman
On Wed, Apr 10, 2024 at 03:56:24PM +0200, Dumitru Ceara wrote: > The previously enabled 'hacking' checks were only applicable to Python 2 > code. OVS doesn't support Python 2 for a while now so it's fine to > remove the dependency on hacking. > > A similar change landed in OVN a while ago: >

Re: [ovs-dev] [PATCH] vlog: Log stack trace on vlog_abort.

2024-04-10 Thread Simon Horman
On Wed, Apr 10, 2024 at 02:10:20PM +0200, Ilya Maximets wrote: > On 4/6/24 00:08, Ilya Maximets wrote: > > Currently, calls like ovs_assert() just print out a condition that > > caused assertion to fail. But it may be not enough to understand what > > exactly has happened, especially if assertion

Re: [ovs-dev] [PATCH branch-2.17] xenserver: Fix tests with Python 3.12.

2024-04-10 Thread Simon Horman
On Tue, Apr 09, 2024 at 10:24:09PM +0200, Ilya Maximets wrote: > Without this change many unit tests are failing on systems with > Python 3.12: > > +++ /tests/testsuite.dir/at-groups/2352/stdout > @@ -1,3 +1,5 @@ > +/./interface-reconfigure:98: SyntaxWarning: invalid escape sequence '\s' >

Re: [ovs-dev] [PATCH ovn v2] treewide: Rename references from OvS master to main.

2024-04-10 Thread Dumitru Ceara
On 4/10/24 17:24, Simon Horman wrote: > On Wed, Apr 10, 2024 at 03:45:53PM +0200, Ales Musil wrote: >> There was recent switch in OvS from master to main branch. >> Use main in all the references across OVN code base. >> >> Signed-off-by: Ales Musil >> --- >> v2: Add the missing two references. >

Re: [ovs-dev] [PATCH ovn v2] treewide: Rename references from OvS master to main.

2024-04-10 Thread Simon Horman
On Wed, Apr 10, 2024 at 03:45:53PM +0200, Ales Musil wrote: > There was recent switch in OvS from master to main branch. > Use main in all the references across OVN code base. > > Signed-off-by: Ales Musil > --- > v2: Add the missing two references. Acked-by: Simon Horman

Re: [ovs-dev] [PATCH] vlog: Log stack trace on vlog_abort.

2024-04-10 Thread Kevin Traynor
On 10/04/2024 16:16, Ilya Maximets wrote: > On 4/10/24 17:01, Kevin Traynor wrote: >> On 05/04/2024 23:08, Ilya Maximets wrote: >>> Currently, calls like ovs_assert() just print out a condition that >>> caused assertion to fail. But it may be not enough to understand what >>> exactly has

Re: [ovs-dev] [PATCH] vlog: Log stack trace on vlog_abort.

2024-04-10 Thread Ilya Maximets
On 4/10/24 17:01, Kevin Traynor wrote: > On 05/04/2024 23:08, Ilya Maximets wrote: >> Currently, calls like ovs_assert() just print out a condition that >> caused assertion to fail. But it may be not enough to understand what >> exactly has happened, especially if assertion failed in some generic

Re: [ovs-dev] [PATCH] vlog: Log stack trace on vlog_abort.

2024-04-10 Thread Kevin Traynor
On 05/04/2024 23:08, Ilya Maximets wrote: > Currently, calls like ovs_assert() just print out a condition that > caused assertion to fail. But it may be not enough to understand what > exactly has happened, especially if assertion failed in some generic > function like dp_packet_resize() or

Re: [ovs-dev] [PATCH 2/2] github: Remove reference to master branch.

2024-04-10 Thread Eelco Chaudron
On 10 Apr 2024, at 16:09, Simon Horman wrote: > The OvS primary development branch has been renamed main > so there is no longer any need for this CI configuration > to refer to master. > > Signed-off-by: Simon Horman Thanks for following through with the main branch change. Acked-by: Eelco

Re: [ovs-dev] [PATCH 1/2] appveyor: Remove reference to master branch.

2024-04-10 Thread Eelco Chaudron
On 10 Apr 2024, at 16:09, Simon Horman wrote: > The OvS primary development branch has been renamed main > so there is no longer any need for this CI configuration > to refer to master. > > Signed-off-by: Simon Horman Thanks for following through with the main branch change. Acked-by: Eelco

Re: [ovs-dev] [PATCH 1/2] appveyor: Remove reference to master branch.

2024-04-10 Thread Alin Serdean
Acked-by: Alin Gabriel Serdean > > On 10 Apr 2024, at 16:09, Simon Horman wrote: > > The OvS primary development branch has been renamed main > so there is no longer any need for this CI configuration > to refer to master. > > Signed-off-by: Simon Horman > --- > appveyor.yml | 1 - > 1

[ovs-dev] [PATCH 1/2] appveyor: Remove reference to master branch.

2024-04-10 Thread Simon Horman
The OvS primary development branch has been renamed main so there is no longer any need for this CI configuration to refer to master. Signed-off-by: Simon Horman --- appveyor.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 050c7dead786..baa844753962

[ovs-dev] [PATCH 2/2] github: Remove reference to master branch.

2024-04-10 Thread Simon Horman
The OvS primary development branch has been renamed main so there is no longer any need for this CI configuration to refer to master. Signed-off-by: Simon Horman --- .github/workflows/build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[ovs-dev] [PATCH 0/2] ci: Remove reference to master branch.

2024-04-10 Thread Simon Horman
The OvS primary development branch has been renamed main so there is no longer any need for CI configuration to refer to master. Signed-off-by: Simon Horman --- Simon Horman (2): appveyor: Remove reference to master branch. github: Remove reference to master branch.

[ovs-dev] [PATCH] python: Remove hacking dependency and use recent flake8.

2024-04-10 Thread Dumitru Ceara
The previously enabled 'hacking' checks were only applicable to Python 2 code. OVS doesn't support Python 2 for a while now so it's fine to remove the dependency on hacking. A similar change landed in OVN a while ago: https://github.com/ovn-org/ovn/commit/271186fa7d76 Signed-off-by: Dumitru

[ovs-dev] [ANN] Primary OVS branch renamed as main development branch as main.

2024-04-10 Thread Simon Horman
Hi, I would like to announce that the primary development branch for OvS has been renamed main. The rename occurred a little earlier today. OVS is currently hosted on GitHub. We can expect the following behaviour after the rename: * GitHub pull requests against master should have been

Re: [ovs-dev] [PATCH ovn] ci: Rename OvS master branch to main.

2024-04-10 Thread Ales Musil
On Wed, Apr 10, 2024 at 3:42 PM Dumitru Ceara wrote: > Hi Ales, Simon, > > On 4/10/24 15:39, Simon Horman wrote: > > On Wed, Apr 10, 2024 at 03:26:25PM +0200, Ales Musil wrote: > >> There was recent switch in OvS from master to main branch. > >> Use main instead in ovn-fake-mutlinode tests. > >

[ovs-dev] [PATCH ovn v2] treewide: Rename references from OvS master to main.

2024-04-10 Thread Ales Musil
There was recent switch in OvS from master to main branch. Use main in all the references across OVN code base. Signed-off-by: Ales Musil --- v2: Add the missing two references. --- .github/workflows/ovn-fake-multinode-tests.yml | 4 ++-- Documentation/tutorials/ovn-sandbox.rst| 2 +-

Re: [ovs-dev] [PATCH] checkpatch: Allow rST manpages to be added.

2024-04-10 Thread Eelco Chaudron
On 9 Apr 2024, at 9:19, Adrian Moreno wrote: > The current __check_doc_is_listed() verifies that the new .rst file is > listed in Documentation/automake.mk with the full path (i.e: > "{directory}/{filename}"). > > While this holds true for generic documentation files, which are added > to

Re: [ovs-dev] [PATCH ovn] ci: Rename OvS master branch to main.

2024-04-10 Thread Dumitru Ceara
Hi Ales, Simon, On 4/10/24 15:39, Simon Horman wrote: > On Wed, Apr 10, 2024 at 03:26:25PM +0200, Ales Musil wrote: >> There was recent switch in OvS from master to main branch. >> Use main instead in ovn-fake-mutlinode tests. Nit: typo :) >> >> Signed-off-by: Ales Musil > > Acked-by: Simon

Re: [ovs-dev] [PATCH ovn] ci: Rename OvS master branch to main.

2024-04-10 Thread Simon Horman
On Wed, Apr 10, 2024 at 03:26:25PM +0200, Ales Musil wrote: > There was recent switch in OvS from master to main branch. > Use main instead in ovn-fake-mutlinode tests. > > Signed-off-by: Ales Musil Acked-by: Simon Horman ___ dev mailing list

Re: [ovs-dev] [PATCH v3] Documentation: Updates for rename of primary development branch as main.

2024-04-10 Thread Simon Horman
On Wed, Apr 10, 2024 at 12:07:12PM +0100, Simon Horman wrote: > On Tue, Apr 09, 2024 at 07:28:08PM +0200, Ilya Maximets wrote: > > On 4/5/24 15:57, Simon Horman wrote: > > > Recently OVS adopted a policy of using the inclusive naming word list v1 > > > [1, 2]. > > > > > > In keeping with this

Re: [ovs-dev] [PATCH ovn v2] northd, controller: Use paused controller action for packet buffering.

2024-04-10 Thread Ales Musil
On Tue, Apr 9, 2024 at 5:54 PM Numan Siddique wrote: > > > On Tue, Apr 9, 2024, 7:46 AM Dumitru Ceara wrote: > >> On 4/8/24 09:19, Ales Musil wrote: >> > On Fri, Apr 5, 2024 at 10:35 PM Numan Siddique wrote: >> > >> >> >> >> >> >> On Tue, Apr 2, 2024 at 2:28 AM Ales Musil wrote: >> >> >> >>>

[ovs-dev] [PATCH ovn v3 2/2] northd, controller: Use paused controller action for packet buffering.

2024-04-10 Thread Ales Musil
The current packet injection loses ct_state in the process. When the ct_state is lost we might commit to DNAT zone and perform zero SNAT after the packet injection. This causes the first session to be wrong as the reply packets are not unDNATted. Instead of re-injecting the packet back into the

[ovs-dev] [PATCH ovn v3 1/2] ci: Make sure that multinode test runs on correct branch.

2024-04-10 Thread Ales Musil
The ovn-fake-multinode workflow can be triggered manually, however the definition didn't respect the branch for the manual run and always used main branch. Make sure that the correct branch is used for the ovn-fake-multinode workflow. Fixes: 033f5bebf94d ("CI: Add a couple of periodic jobs using

[ovs-dev] [PATCH ovn] ci: Rename OvS master branch to main.

2024-04-10 Thread Ales Musil
There was recent switch in OvS from master to main branch. Use main instead in ovn-fake-mutlinode tests. Signed-off-by: Ales Musil --- .github/workflows/ovn-fake-multinode-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [ovs-dev] [PATCH] checkpatch: Allow rST manpages to be added.

2024-04-10 Thread Simon Horman
On Tue, Apr 09, 2024 at 09:19:02AM +0200, Adrian Moreno wrote: > The current __check_doc_is_listed() verifies that the new .rst file is > listed in Documentation/automake.mk with the full path (i.e: > "{directory}/{filename}"). > > While this holds true for generic documentation files, which are

Re: [ovs-dev] [PATCH] vlog: Log stack trace on vlog_abort.

2024-04-10 Thread Ilya Maximets
On 4/6/24 00:08, Ilya Maximets wrote: > Currently, calls like ovs_assert() just print out a condition that > caused assertion to fail. But it may be not enough to understand what > exactly has happened, especially if assertion failed in some generic > function like dp_packet_resize() or similar.

Re: [ovs-dev] [PATCH v7] rhel: make the version, displayed to the user, customizable

2024-04-10 Thread Ilya Maximets
On 4/3/24 17:15, Timothy Redaelli wrote: > Since on CentOS/RHEL the builds are based on stable branches and not on > tags for debugging purpose it's better to have the downstream version as > version so it's easier to know which commits are included in a build. > > This commit adds

Re: [ovs-dev] [PATCH v3] Documentation: Updates for rename of primary development branch as main.

2024-04-10 Thread Simon Horman
On Tue, Apr 09, 2024 at 07:28:08PM +0200, Ilya Maximets wrote: > On 4/5/24 15:57, Simon Horman wrote: > > Recently OVS adopted a policy of using the inclusive naming word list v1 > > [1, 2]. > > > > In keeping with this policy rename the primary development branch from > > 'master' to 'main'.

Re: [ovs-dev] [PATCH] cirrus: Update to FreeBSD 13.3.

2024-04-10 Thread Eelco Chaudron
On 10 Apr 2024, at 12:49, Ilya Maximets wrote: > On 4/10/24 12:44, Eelco Chaudron wrote: >> >> >> On 10 Apr 2024, at 12:09, Kevin Traynor wrote: >> >>> On 10/04/2024 11:04, Kevin Traynor wrote: On 10/04/2024 10:51, Eelco Chaudron wrote: > > > On 10 Apr 2024, at 11:41, Ilya

Re: [ovs-dev] [PATCH] cirrus: Update to FreeBSD 13.3.

2024-04-10 Thread Ilya Maximets
On 4/10/24 12:44, Eelco Chaudron wrote: > > > On 10 Apr 2024, at 12:09, Kevin Traynor wrote: > >> On 10/04/2024 11:04, Kevin Traynor wrote: >>> On 10/04/2024 10:51, Eelco Chaudron wrote: On 10 Apr 2024, at 11:41, Ilya Maximets wrote: > 13.3 was released on March 5 and

Re: [ovs-dev] [PATCH] cirrus: Update to FreeBSD 13.3.

2024-04-10 Thread Eelco Chaudron
On 10 Apr 2024, at 12:09, Kevin Traynor wrote: > On 10/04/2024 11:04, Kevin Traynor wrote: >> On 10/04/2024 10:51, Eelco Chaudron wrote: >>> >>> >>> On 10 Apr 2024, at 11:41, Ilya Maximets wrote: >>> 13.3 was released on March 5 and 13.2 will reach EoL in June. Update now. >>> >>>

Re: [ovs-dev] [PATCH] cirrus: Update to FreeBSD 13.3.

2024-04-10 Thread Kevin Traynor
On 10/04/2024 11:04, Kevin Traynor wrote: > On 10/04/2024 10:51, Eelco Chaudron wrote: >> >> >> On 10 Apr 2024, at 11:41, Ilya Maximets wrote: >> >>> 13.3 was released on March 5 and 13.2 will reach EoL in June. >>> Update now. >> >> Changing from 13.2 to 13.3 looks fine to me. Assume you ran it

Re: [ovs-dev] [PATCH] cirrus: Update to FreeBSD 13.3.

2024-04-10 Thread Kevin Traynor
On 10/04/2024 10:51, Eelco Chaudron wrote: > > > On 10 Apr 2024, at 11:41, Ilya Maximets wrote: > >> 13.3 was released on March 5 and 13.2 will reach EoL in June. >> Update now. > > Changing from 13.2 to 13.3 looks fine to me. Assume you ran it trough GitHub > actions; > I ran it here:

Re: [ovs-dev] [PATCH] cirrus: Update to FreeBSD 13.3.

2024-04-10 Thread Eelco Chaudron
On 10 Apr 2024, at 11:41, Ilya Maximets wrote: > 13.3 was released on March 5 and 13.2 will reach EoL in June. > Update now. Changing from 13.2 to 13.3 looks fine to me. Assume you ran it trough GitHub actions; Acked-by: Eelco Chaudron //Eelco > Signed-off-by: Ilya Maximets > --- >

[ovs-dev] [PATCH] cirrus: Update to FreeBSD 13.3.

2024-04-10 Thread Ilya Maximets
13.3 was released on March 5 and 13.2 will reach EoL in June. Update now. Signed-off-by: Ilya Maximets --- .cirrus.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.cirrus.yml b/.cirrus.yml index d8a972280..8db385f00 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -2,7 +2,7

Re: [ovs-dev] [PATCH] checkpatch: Don't spellcheck names in tags.

2024-04-10 Thread Eelco Chaudron
On 9 Apr 2024, at 21:55, Ilya Maximets wrote: > Current code checks spelling of names in commit message tags and that > makes no sense. > > Most of the tags are explicitly handled, but tags like 'Tested-by' or > other lesser used ones are falling through to the spellchecker and > need to be

Re: [ovs-dev] Hardware Offload Scaling

2024-04-10 Thread Eelco Chaudron
On 9 Apr 2024, at 16:58, Shahaji Bhosle wrote: > Thanks Eelco, Sorry for the late reply. > We are not using NVDIA NIC, and are using OVS+DPDK. > It appears the revalidator threads are complaining because it is not able > to get all the stats for million flows within its time window. > Just