Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-01 Thread Orabuntu-LXC
Thanks Ben. I will keep hacking away at it. The protocols and design principles 
of Orabuntu-LXC require all installed software to be packaged - rpm or deb - so 
I will have to keep working on a solution to get the rpm package to build 
successfully.

BTW that was a typo earlier - we had been using ovs 2.5.4 not 2.0.5 - sorry - 
2.0.5 is the LXC version we were using for this testing

Sent from my BlackBerry 10 smartphone.
  Original Message  
From: Ben Pfaff
Sent: Tuesday, October 1, 2019 7:00 PM
To: Gilbert Standen
Cc: ovs-discuss@openvswitch.org
Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

OK.

It seems likely, then, that the Fedora RPM spec files are not suitable
for Oracle Linux. If so, then you can install OVS without the RPM
packaging, or create some new spec files for Oracle Linux.

On Tue, Oct 01, 2019 at 11:55:20PM +, Gilbert Standen wrote:
> I've tried all that - that was of course the first thing I tried.
> 
> I've tried everything I can think of:
> 
> [ubuntu@oracle8 ~]$ sudo yum install python-six python-sphinx
> [sudo] password for ubuntu:
> Last metadata expiration check: 0:27:33 ago on Tue 01 Oct 2019 06:20:33 PM 
> CDT.
> No match for argument: python-six
> No match for argument: python-sphinx
> Error: Unable to find a match
> [ubuntu@oracle8 ~]$
> 
> and the above is with all repos enabled AND epel installed and enabled:
> 
> [ubuntu@oracle8 yum.repos.d]$ sudo yum install python-six python-sphinx
> Extra Packages for Enterprise Linux 8 - Playground - x86_64 463 kB/s | 2.6 MB 
> 00:05
> Extra Packages for Enterprise Linux 8 - Playground - x86_64 - Debug 589 kB/s 
> | 1.6 MB 00:02
> Extra Packages for Enterprise Linux 8 - Playground - x86_64 - Source 130 kB/s 
> | 374 kB 00:02
> Extra Packages for Enterprise Linux 8 - x86_64 35 kB/s | 18 kB 00:00
> Extra Packages for Enterprise Linux 8 - x86_64 - Debug 295 kB/s | 656 kB 00:02
> Extra Packages for Enterprise Linux 8 - x86_64 - Source 239 kB/s | 390 kB 
> 00:01
> No match for argument: python-six
> No match for argument: python-sphinx
> Error: Unable to find a match
> [ubuntu@oracle8 yum.repos.d]$
> 
> [ubuntu@oracle8 yum.repos.d]$ sudo yum install python-six python-sphinx
> Oracle Linux 8 Addons (x86_64) 2.6 kB/s | 3.2 kB 00:01
> Oracle Linux 8 Application Stream (x86_64) 29 kB/s | 2.9 kB 00:00
> Oracle Linux 8 BaseOS Latest (x86_64) 18 kB/s | 2.7 kB 00:00
> Oracle Linux 8 CodeReady Builder (x86_64) - Unsupported 27 kB/s | 2.7 kB 00:00
> Oracle Linux 8 BaseOS GA (x86_64) 26 kB/s | 2.7 kB 00:00
> No match for argument: python-six
> No match for argument: python-sphinx
> Error: Unable to find a match
> [ubuntu@oracle8 yum.repos.d]$
> 
> I've also tried setting up a python virtual environment within the script - 
> that doesn't work either:
> 
> sudo alternatives --set python /usr/bin/python3
> python3 -m venv py36env
> source py36env/bin/activate
> python3 -m pip install six
> python3 -m pip install --upgrade pip
> python3 -m pip install six
> python3 -m pip install sphinx
> 
> all those commands work, but openvswitch build doesn't see sphinx or six - do 
> I need to set some switch on the build command ?
> 
> error: Failed build dependencies:
> python-six is needed by openvswitch-2.11.1-1.x86_64
> python-sphinx is needed by openvswitch-2.11.1-1.x86_64
> 
> 
> 
> From: Ben Pfaff 
> Sent: Tuesday, October 1, 2019 6:40 PM
> To: Gilbert Standen 
> Cc: ovs-discuss@openvswitch.org 
> Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8
> 
> You're using two different packaging systems here. The RPM spec file
> requires the RPMs it mentions to be installed (for Python 2), but you
> used pip to install them (for Python 3).
> 
> My guess is that "yum install python-six python-sphinx
> selinux-policy-devel unbound-devel" or its Oracle equivalent will fix
> the problem.
> 
> On Tue, Oct 01, 2019 at 11:17:18PM +, Gilbert Standen wrote:
> > For example:
> >
> > [ubuntu@oracle8 anylinux]$ python3 -m pip install six
> > Requirement already satisfied: six in /usr/local/lib/python3.6/site-packages
> > [ubuntu@oracle8 anylinux]$ python3 -m pip install sphinx
> > Requirement already satisfied: sphinx in 
> > /usr/local/lib64/python3.6/site-packages
> > Requirement already satisfied: requests>=2.5.0 in 
> > /usr/lib/python3.6/site-packages (from sphinx)
> > Requirement already satisfied: babel!=2.0,>=1.3 in 
> > /usr/local/lib64/python3.6/site-packages (from sphinx)
> > Requirement already satisfied: sphinxcontrib-serializinghtml in 
> > /usr/local/lib/python3.6/site-packages (from sphinx)
> > Requirement already satisfied: sphinxcontrib-jsmath in 
> > /usr/local/lib/python3.6/site-packages (from sphinx)
> > Requirement already satisfied: snowballstemmer>=1.1 in 
> > /usr/local/lib/python3.6/site-packages (from sphinx)
> > Requirement already satisfied: setuptools in 
> > /usr/lib/python3.6/site-packages (from sphinx)
> > Requirement already satisfied: alabaster<0.8,>=0.7 in 
> > 

Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-01 Thread Ben Pfaff
OK.

It seems likely, then, that the Fedora RPM spec files are not suitable
for Oracle Linux.  If so, then you can install OVS without the RPM
packaging, or create some new spec files for Oracle Linux.

On Tue, Oct 01, 2019 at 11:55:20PM +, Gilbert Standen wrote:
> I've tried all that - that was of course the first thing I tried.
> 
> I've tried everything I can think of:
> 
> [ubuntu@oracle8 ~]$ sudo yum install python-six python-sphinx
> [sudo] password for ubuntu:
> Last metadata expiration check: 0:27:33 ago on Tue 01 Oct 2019 06:20:33 PM 
> CDT.
> No match for argument: python-six
> No match for argument: python-sphinx
> Error: Unable to find a match
> [ubuntu@oracle8 ~]$
> 
> and the above is with all repos enabled AND epel installed and enabled:
> 
> [ubuntu@oracle8 yum.repos.d]$ sudo yum install python-six python-sphinx
> Extra Packages for Enterprise Linux 8 - Playground - x86_64   
>   
>   463 kB/s | 2.6 MB 00:05
> Extra Packages for Enterprise Linux 8 - Playground - x86_64 - Debug   
>   
>   589 kB/s | 1.6 MB 00:02
> Extra Packages for Enterprise Linux 8 - Playground - x86_64 - Source  
>   
>   130 kB/s | 374 kB 00:02
> Extra Packages for Enterprise Linux 8 - x86_64
>   
>35 kB/s |  18 kB 00:00
> Extra Packages for Enterprise Linux 8 - x86_64 - Debug
>   
>   295 kB/s | 656 kB 00:02
> Extra Packages for Enterprise Linux 8 - x86_64 - Source   
>   
>   239 kB/s | 390 kB 00:01
> No match for argument: python-six
> No match for argument: python-sphinx
> Error: Unable to find a match
> [ubuntu@oracle8 yum.repos.d]$
> 
> [ubuntu@oracle8 yum.repos.d]$ sudo yum install python-six python-sphinx
> Oracle Linux 8 Addons (x86_64)
>   
>   2.6 kB/s | 3.2 kB 00:01
> Oracle Linux 8 Application Stream (x86_64)
>   
>29 kB/s | 2.9 kB 00:00
> Oracle Linux 8 BaseOS Latest (x86_64) 
>   
>18 kB/s | 2.7 kB 00:00
> Oracle Linux 8 CodeReady Builder (x86_64) - Unsupported   
>   
>27 kB/s | 2.7 kB 00:00
> Oracle Linux 8 BaseOS GA (x86_64) 
>   
>26 kB/s | 2.7 kB 00:00
> No match for argument: python-six
> No match for argument: python-sphinx
> Error: Unable to find a match
> [ubuntu@oracle8 yum.repos.d]$
> 
> I've also tried setting up a python virtual environment within the script - 
> that doesn't work either:
> 
> sudo alternatives --set python 
> /usr/bin/python3
> python3 -m venv py36env
> source py36env/bin/activate
> python3 -m pip install six
> python3 -m pip install --upgrade pip
> python3 -m pip install six
> python3 -m pip install sphinx
> 
> all those commands work, but openvswitch build doesn't see sphinx or six - do 
> I need to set some switch on the build command ?
> 
> error: Failed build dependencies:
> python-six is needed by openvswitch-2.11.1-1.x86_64
> python-sphinx is needed by openvswitch-2.11.1-1.x86_64
> 
> 
> 
> From: Ben Pfaff 
> Sent: Tuesday, October 1, 2019 6:40 PM
> To: Gilbert Standen 
> Cc: ovs-discuss@openvswitch.org 
> Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8
> 
> You're using two different packaging systems 

Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-01 Thread Gilbert Standen
I've tried all that - that was of course the first thing I tried.

I've tried everything I can think of:

[ubuntu@oracle8 ~]$ sudo yum install python-six python-sphinx
[sudo] password for ubuntu:
Last metadata expiration check: 0:27:33 ago on Tue 01 Oct 2019 06:20:33 PM CDT.
No match for argument: python-six
No match for argument: python-sphinx
Error: Unable to find a match
[ubuntu@oracle8 ~]$

and the above is with all repos enabled AND epel installed and enabled:

[ubuntu@oracle8 yum.repos.d]$ sudo yum install python-six python-sphinx
Extra Packages for Enterprise Linux 8 - Playground - x86_64 

  463 kB/s | 2.6 MB 00:05
Extra Packages for Enterprise Linux 8 - Playground - x86_64 - Debug 

  589 kB/s | 1.6 MB 00:02
Extra Packages for Enterprise Linux 8 - Playground - x86_64 - Source

  130 kB/s | 374 kB 00:02
Extra Packages for Enterprise Linux 8 - x86_64  

   35 kB/s |  18 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 - Debug  

  295 kB/s | 656 kB 00:02
Extra Packages for Enterprise Linux 8 - x86_64 - Source 

  239 kB/s | 390 kB 00:01
No match for argument: python-six
No match for argument: python-sphinx
Error: Unable to find a match
[ubuntu@oracle8 yum.repos.d]$

[ubuntu@oracle8 yum.repos.d]$ sudo yum install python-six python-sphinx
Oracle Linux 8 Addons (x86_64)  

  2.6 kB/s | 3.2 kB 00:01
Oracle Linux 8 Application Stream (x86_64)  

   29 kB/s | 2.9 kB 00:00
Oracle Linux 8 BaseOS Latest (x86_64)   

   18 kB/s | 2.7 kB 00:00
Oracle Linux 8 CodeReady Builder (x86_64) - Unsupported 

   27 kB/s | 2.7 kB 00:00
Oracle Linux 8 BaseOS GA (x86_64)   

   26 kB/s | 2.7 kB 00:00
No match for argument: python-six
No match for argument: python-sphinx
Error: Unable to find a match
[ubuntu@oracle8 yum.repos.d]$

I've also tried setting up a python virtual environment within the script - 
that doesn't work either:

sudo alternatives --set python /usr/bin/python3
python3 -m venv py36env
source py36env/bin/activate
python3 -m pip install six
python3 -m pip install --upgrade pip
python3 -m pip install six
python3 -m pip install sphinx

all those commands work, but openvswitch build doesn't see sphinx or six - do I 
need to set some switch on the build command ?

error: Failed build dependencies:
python-six is needed by openvswitch-2.11.1-1.x86_64
python-sphinx is needed by openvswitch-2.11.1-1.x86_64



From: Ben Pfaff 
Sent: Tuesday, October 1, 2019 6:40 PM
To: Gilbert Standen 
Cc: ovs-discuss@openvswitch.org 
Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

You're using two different packaging systems here.  The RPM spec file
requires the RPMs it mentions to be installed (for Python 2), but you
used pip to install them (for Python 3).

My guess is that "yum install python-six python-sphinx
selinux-policy-devel unbound-devel" or its Oracle equivalent will fix
the problem.

On Tue, Oct 01, 2019 at 11:17:18PM +, Gilbert Standen wrote:
> For example:
>
> [ubuntu@oracle8 anylinux]$ python3 -m pip install six
> Requirement already satisfied: 

Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-01 Thread Ben Pfaff
You're using two different packaging systems here.  The RPM spec file
requires the RPMs it mentions to be installed (for Python 2), but you
used pip to install them (for Python 3).

My guess is that "yum install python-six python-sphinx
selinux-policy-devel unbound-devel" or its Oracle equivalent will fix
the problem.

On Tue, Oct 01, 2019 at 11:17:18PM +, Gilbert Standen wrote:
> For example:
> 
> [ubuntu@oracle8 anylinux]$ python3 -m pip install six
> Requirement already satisfied: six in /usr/local/lib/python3.6/site-packages
> [ubuntu@oracle8 anylinux]$ python3 -m pip install sphinx
> Requirement already satisfied: sphinx in 
> /usr/local/lib64/python3.6/site-packages
> Requirement already satisfied: requests>=2.5.0 in 
> /usr/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: babel!=2.0,>=1.3 in 
> /usr/local/lib64/python3.6/site-packages (from sphinx)
> Requirement already satisfied: sphinxcontrib-serializinghtml in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: sphinxcontrib-jsmath in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: snowballstemmer>=1.1 in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: setuptools in /usr/lib/python3.6/site-packages 
> (from sphinx)
> Requirement already satisfied: alabaster<0.8,>=0.7 in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: imagesize in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: packaging in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: Pygments>=2.0 in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: sphinxcontrib-htmlhelp in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: sphinxcontrib-applehelp in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: docutils>=0.12 in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: Jinja2>=2.3 in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: sphinxcontrib-devhelp in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: sphinxcontrib-qthelp in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: chardet<3.1.0,>=3.0.2 in 
> /usr/lib/python3.6/site-packages (from requests>=2.5.0->sphinx)
> Requirement already satisfied: idna<2.8,>=2.5 in 
> /usr/lib/python3.6/site-packages (from requests>=2.5.0->sphinx)
> Requirement already satisfied: urllib3<1.25,>=1.21.1 in 
> /usr/lib/python3.6/site-packages (from requests>=2.5.0->sphinx)
> Requirement already satisfied: pytz>=2015.7 in 
> /usr/lib/python3.6/site-packages (from babel!=2.0,>=1.3->sphinx)
> Requirement already satisfied: pyparsing>=2.0.2 in 
> /usr/local/lib/python3.6/site-packages (from packaging->sphinx)
> Requirement already satisfied: six in /usr/local/lib/python3.6/site-packages 
> (from packaging->sphinx)
> Requirement already satisfied: MarkupSafe>=0.23 in 
> /usr/local/lib64/python3.6/site-packages (from Jinja2>=2.3->sphinx)
> [ubuntu@oracle8 anylinux]$ sudo alternatives --config python
> 
> There are 3 programs which provide 'python'.
> 
>   SelectionCommand
> ---
> *  1   /usr/libexec/no-python
>  + 2   /usr/bin/python3
>3   /usr/bin/python2
> 
> Enter to keep the current selection[+], or type selection number: 2
> [ubuntu@oracle8 anylinux]$
> 
> But still when I go to build openvswitch, I get:
> 
> error: Failed build dependencies:
> python-six is needed by openvswitch-2.11.1-1.x86_64
> python-sphinx is needed by openvswitch-2.11.1-1.x86_64
> selinux-policy-devel is needed by openvswitch-2.11.1-1.x86_64
> unbound-devel is needed by openvswitch-2.11.1-1.x86_64
> 
> I guess it's going to be obvious I'm not much good with python ... they seem 
> to be installed so why can't openvswitch use/see them?
> 
> 
> 
> From: Gilbert Standen 
> Sent: Tuesday, October 1, 2019 5:32 PM
> To: Ben Pfaff 
> Cc: ovs-discuss@openvswitch.org 
> Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8
> 
> Thanks Ben. I've tried that too. When I try to install openvswitch 2.11.x I 
> run into needing python-six and python-sphinx and I've been trying for a 
> couple days to figure out how to get those installed on Oracle Linux 8 to no 
> avail ...
> 
> 
> "If BlackBerrys were as plentiful as Apples, upon compulsions, no man seven 
> reasons would I give, for BlackBerry 10 reasons hath one to give, I."
> 
> Gilbert Standen after William Shakespeare, Henry IV‎ . Sent from my 
> BlackBerry 10 Classic.
>   Original Message
> From: Ben Pfaff
> Sent: Tuesday, October 1, 2019 4:57 PM
> To: Gilbert Standen
> Cc: 

Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-01 Thread Gilbert Standen
For example:

[ubuntu@oracle8 anylinux]$ python3 -m pip install six
Requirement already satisfied: six in /usr/local/lib/python3.6/site-packages
[ubuntu@oracle8 anylinux]$ python3 -m pip install sphinx
Requirement already satisfied: sphinx in 
/usr/local/lib64/python3.6/site-packages
Requirement already satisfied: requests>=2.5.0 in 
/usr/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: babel!=2.0,>=1.3 in 
/usr/local/lib64/python3.6/site-packages (from sphinx)
Requirement already satisfied: sphinxcontrib-serializinghtml in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: sphinxcontrib-jsmath in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: snowballstemmer>=1.1 in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: setuptools in /usr/lib/python3.6/site-packages 
(from sphinx)
Requirement already satisfied: alabaster<0.8,>=0.7 in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: imagesize in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: packaging in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: Pygments>=2.0 in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: sphinxcontrib-htmlhelp in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: sphinxcontrib-applehelp in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: docutils>=0.12 in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: Jinja2>=2.3 in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: sphinxcontrib-devhelp in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: sphinxcontrib-qthelp in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in 
/usr/lib/python3.6/site-packages (from requests>=2.5.0->sphinx)
Requirement already satisfied: idna<2.8,>=2.5 in 
/usr/lib/python3.6/site-packages (from requests>=2.5.0->sphinx)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in 
/usr/lib/python3.6/site-packages (from requests>=2.5.0->sphinx)
Requirement already satisfied: pytz>=2015.7 in /usr/lib/python3.6/site-packages 
(from babel!=2.0,>=1.3->sphinx)
Requirement already satisfied: pyparsing>=2.0.2 in 
/usr/local/lib/python3.6/site-packages (from packaging->sphinx)
Requirement already satisfied: six in /usr/local/lib/python3.6/site-packages 
(from packaging->sphinx)
Requirement already satisfied: MarkupSafe>=0.23 in 
/usr/local/lib64/python3.6/site-packages (from Jinja2>=2.3->sphinx)
[ubuntu@oracle8 anylinux]$ sudo alternatives --config python

There are 3 programs which provide 'python'.

  SelectionCommand
---
*  1   /usr/libexec/no-python
 + 2   /usr/bin/python3
   3   /usr/bin/python2

Enter to keep the current selection[+], or type selection number: 2
[ubuntu@oracle8 anylinux]$

But still when I go to build openvswitch, I get:

error: Failed build dependencies:
python-six is needed by openvswitch-2.11.1-1.x86_64
python-sphinx is needed by openvswitch-2.11.1-1.x86_64
selinux-policy-devel is needed by openvswitch-2.11.1-1.x86_64
unbound-devel is needed by openvswitch-2.11.1-1.x86_64

I guess it's going to be obvious I'm not much good with python ... they seem to 
be installed so why can't openvswitch use/see them?



From: Gilbert Standen 
Sent: Tuesday, October 1, 2019 5:32 PM
To: Ben Pfaff 
Cc: ovs-discuss@openvswitch.org 
Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

Thanks Ben. I've tried that too. When I try to install openvswitch 2.11.x I run 
into needing python-six and python-sphinx and I've been trying for a couple 
days to figure out how to get those installed on Oracle Linux 8 to no avail ...


"If BlackBerrys were as plentiful as Apples, upon compulsions, no man seven 
reasons would I give, for BlackBerry 10 reasons hath one to give, I."

Gilbert Standen after William Shakespeare, Henry IV‎ . Sent from my BlackBerry 
10 Classic.
  Original Message
From: Ben Pfaff
Sent: Tuesday, October 1, 2019 4:57 PM
To: Gilbert Standen
Cc: ovs-discuss@openvswitch.org
Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8


On Tue, Oct 01, 2019 at 09:46:41PM +, Gilbert Standen wrote:
> Hi, when I try to build OpenvSwitch 2.0.5 on Oracle Linux 8 I get the
> following errors.  Any ideas on how to address this ?  Thanks!

OVS 2.0 was released in 2013.  Use a newer version.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-01 Thread Gilbert Standen
Thanks Ben. I've tried that too. When I try to install openvswitch 2.11.x I run 
into needing python-six and python-sphinx and I've been trying for a couple 
days to figure out how to get those installed on Oracle Linux 8 to no avail ...


"If BlackBerrys were as plentiful as Apples, upon compulsions, no man seven 
reasons would I give, for BlackBerry 10 reasons hath one to give, I."

Gilbert Standen after William Shakespeare, Henry IV‎ . Sent from my BlackBerry 
10 Classic.
  Original Message
From: Ben Pfaff
Sent: Tuesday, October 1, 2019 4:57 PM
To: Gilbert Standen
Cc: ovs-discuss@openvswitch.org
Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8


On Tue, Oct 01, 2019 at 09:46:41PM +, Gilbert Standen wrote:
> Hi, when I try to build OpenvSwitch 2.0.5 on Oracle Linux 8 I get the
> following errors.  Any ideas on how to address this ?  Thanks!

OVS 2.0 was released in 2013.  Use a newer version.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-01 Thread Ben Pfaff
On Tue, Oct 01, 2019 at 09:46:41PM +, Gilbert Standen wrote:
> Hi, when I try to build OpenvSwitch 2.0.5 on Oracle Linux 8 I get the
> following errors.  Any ideas on how to address this ?  Thanks!

OVS 2.0 was released in 2013.  Use a newer version.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-01 Thread Gilbert Standen
Hi, when I try to build OpenvSwitch 2.0.5 on Oracle Linux 8 I get the following 
errors.  Any ideas on how to address this ?  Thanks!

lib/dhparams.c:2:12: error: static declaration of 'get_dh1024' follows 
non-static declaration
 static DH *get_dh1024(void)
^~
In file included from lib/dhparams.c:1:
./lib/dhparams.h:22:5: note: previous declaration of 'get_dh1024' was here
 DH *get_dh1024(void);
 ^~
lib/dhparams.c:38:12: error: static declaration of 'get_dh2048' follows 
non-static declaration
 static DH *get_dh2048(void)
^~
In file included from lib/dhparams.c:1:
./lib/dhparams.h:23:5: note: previous declaration of 'get_dh2048' was here
 DH *get_dh2048(void);
 ^~
lib/dhparams.c:87:12: error: static declaration of 'get_dh4096' follows 
non-static declaration
 static DH *get_dh4096(void)
^~
In file included from lib/dhparams.c:1:
./lib/dhparams.h:24:5: note: previous declaration of 'get_dh4096' was here
 DH *get_dh4096(void);
 ^~
lib/dhparams.c:87:12: warning: 'get_dh4096' defined but not used 
[-Wunused-function]
 static DH *get_dh4096(void)
^~
lib/dhparams.c:38:12: warning: 'get_dh2048' defined but not used 
[-Wunused-function]
 static DH *get_dh2048(void)
^~
lib/dhparams.c:2:12: warning: 'get_dh1024' defined but not used 
[-Wunused-function]
 static DH *get_dh1024(void)
^~
make[2]: *** [Makefile:4036: lib/dhparams.lo] Error 1
make[2]: Leaving directory 
'/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILD/openvswitch-2.5.4'
make[1]: *** [Makefile:4688: all-recursive] Error 1
make[1]: Leaving directory 
'/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILD/openvswitch-2.5.4'
make: *** [Makefile:2626: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.jepWHo (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.jepWHo (%build)

___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] Too many resubmits in the OVS pipeline for scaled OVN topologies due to multicast_group implementation

2019-10-01 Thread Han Zhou
On Tue, Oct 1, 2019 at 3:34 AM Dumitru Ceara  wrote:
>
> Hi,
>
> We've hit a scaling issue recently [1] in the following topology:
>
> - External network connected to public logical switch "LS-pub"
> - ~300 logical networks (LR-i <--> LS-i <--> VMi) connected to LS-pub
> with dnat_and_snat rules.
>
> While trying to ping the VMs from outside the ARP request packet from
> the external host doesn't reach all the LR-i pipelines because it gets
> dropped due to "Too many resubmits".
>
> This happens because the MC_FLOOD group for LS-pub installs openflow
> entries that resubmit the packet:
> - through the patch ports towards all LR-i (one entry in table 32 with
> 300 resubmit actions).
> - to the egress pipeline for each VIF that's local to LS-pub (one
> entry in table 33).
>
> This means that for the ARP broadcast packet we'll execute the LR-i
> ingress/egress pipeline 300 times. For each execution we do a fair
> amount of resubmits through the different tables of the pipeline
> leading to a total number of resubmits for the single initial
> broadcast packet of more than 4K, the maximum allowed by OVS.
>
> After looking at the implementation I couldn't figure out a way to
> avoid running the full pipelines for each potential logical output
> port (patch or local VIF) because we might have flows later in the
> pipelines that perform actions based on the value of the logical
> output port (e.g., out ACL, qos).
>
> Do you think there's a different approach that we could use to
> implement flooding of broadcast/unknown unicast packets that would
> require less resubmit actions?
>
> This issue could also appear in a flat topology with a single logical
> switch and multiple VIFs (>300). In this case the resubmits would be
> part of the the openflow entry in table 33 but the result would be the
> same: too many resubmits due to the egress pipeline resubmits for each
> logical output port.
>
> Thanks,
> Dumitru
>
> [1] https://bugzilla.redhat.com/show_bug.cgi?id=1756945

Thanks Dumitru for reporting this interesting problem.
In theory, I don't think we can avoid this because different datapath can
have different actions for the same packet, so when a packet need to be
sent to multiple datapaths, we will have to let it go through each steps
following each datapath.
In practice, the number of stages to go through depends on the number of
output ports in the broadcast domain and the number of stages in each
output port. To alleviate the problem, we should try our best to handle
broadcast packets at the earliest stages of each datapath, and terminate
the packet pipeline as early as possible, e.g. ARP reponse, to reduce the
total number of resubmits.

So I think what we can do are (although I hope there are better ways):
- Increase the limit in OVS for the maximum allowed resubmit, considering
the value for worst case reasonable real world deployment
- Try to avoid large broadcast domain in deployment (of course, only when
we have a choice)
- See if there is optimization opportunity to move broadcast related
processing earlier in pipeline and complete as early as possible for the
processing for the packet.

Thanks,
Han
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] Too many resubmits in the OVS pipeline for scaled OVN topologies due to multicast_group implementation

2019-10-01 Thread Dumitru Ceara
Hi,

We've hit a scaling issue recently [1] in the following topology:

- External network connected to public logical switch "LS-pub"
- ~300 logical networks (LR-i <--> LS-i <--> VMi) connected to LS-pub
with dnat_and_snat rules.

While trying to ping the VMs from outside the ARP request packet from
the external host doesn't reach all the LR-i pipelines because it gets
dropped due to "Too many resubmits".

This happens because the MC_FLOOD group for LS-pub installs openflow
entries that resubmit the packet:
- through the patch ports towards all LR-i (one entry in table 32 with
300 resubmit actions).
- to the egress pipeline for each VIF that's local to LS-pub (one
entry in table 33).

This means that for the ARP broadcast packet we'll execute the LR-i
ingress/egress pipeline 300 times. For each execution we do a fair
amount of resubmits through the different tables of the pipeline
leading to a total number of resubmits for the single initial
broadcast packet of more than 4K, the maximum allowed by OVS.

After looking at the implementation I couldn't figure out a way to
avoid running the full pipelines for each potential logical output
port (patch or local VIF) because we might have flows later in the
pipelines that perform actions based on the value of the logical
output port (e.g., out ACL, qos).

Do you think there's a different approach that we could use to
implement flooding of broadcast/unknown unicast packets that would
require less resubmit actions?

This issue could also appear in a flat topology with a single logical
switch and multiple VIFs (>300). In this case the resubmits would be
part of the the openflow entry in table 33 but the result would be the
same: too many resubmits due to the egress pipeline resubmits for each
logical output port.

Thanks,
Dumitru

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1756945
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss