What system are you building OVS for? I just followed the steps on
fresh ubuntu 16.04 and it worked ok.

Also note on OVS INSTALL:

"flake8, version 2.X, along with the hacking flake8 plugin (for Python
code).  The automatic flake8 check that runs against Python code has
some warnings enabled that come from the "hacking" flake8 plugin. If
it's not installed, the warnings just won't occur until it's run on a
system with "hacking" installed.  Note that there are problems with
flake8 3.0 and the hacking plugin. To ensure you get flake8 2.X, you
can use pip install flake8<3.0."

In my case I did not have flake8 installed.

BR
Jaime.

-----Original Message-----
From: "PRAKASH, OM" <[email protected]>
To: Jaime Caamaño Ruiz <[email protected]>, om prakash <[email protected]
m>
Cc: "SINGH, ABHIJEET K" <[email protected]>, "FREEMAN, BRIAN D" <bf1936@at
t.com>, [email protected] <[email protected]
ght.org>, [email protected] <[email protected]
g>
Subject: RE: [sfc-dev] Opendaylight support for networking-sfc
Date: Fri, 8 Jun 2018 14:24:14 +0000

Hi Jaime,
 
Devstack/neutron( queen) overwrite the OVS installation to 2.8 because
it has some or many python package that needs OVS 2.8. I manually
removed OVS  and other package from below files but then every other
package I need to go and check it . Even I tried  to put
SKIP_OVS_INSTALL=True, it did not work . Devstack went ahead and
installed the ovs 2.8.1 version.
 
2nd option I tried is that I installed everything . And then I stopped
neutron/ovs/odl server  . And I tried to install OVS 2.6.1 from the
link you gave to overwrite 2.8.1 version . it failed because of
'flake8-check' failed. The detail error is below .
 
Any other option you can suggest ?
 
ubuntu@master:~/stack$ gedit networking-sfc/lower-constraints.txt
ubuntu@master:~/stack$ gedit requirements/upper-constraints.txt
ubuntu@master:~/stack$ gedit requirements/.venv/lib/python2.7/site-
packages/openstack_requirements/tests/files/upper-constraints.txt
ubuntu@master:~/stack$ gedit
requirements/openstack_requirements/tests/files/upper-constraints.txt
ubuntu@master:~/stack$ gedit requirements/global-requirements.txt
ubuntu@master:~/stack$ gedit neutron/requirements.txt
ubuntu@master:~/stack$ gedit neutron/neutron.egg-info/requires.txt
 
2018-06-08 13:21:29.926 | Collecting msgpack-python>=0.3.0 (from
ryu===4.21->-c /opt/stack/requirements/upper-constraints.txt (line
443))
2018-06-08 13:21:30.196 |   Downloading https://files.pythonhosted.org/
packages/8a/20/6eca772d1a5830336f84aca1d8198e5a3f4715cd1c7fc36d3cc7f718
5091/msgpack-python-0.5.6.tar.gz (138kB)
2018-06-08 13:21:31.159 | Collecting ovs>=2.6.0 (from ryu===4.21->-c
/opt/stack/requirements/upper-constraints.txt (line 443))
2018-06-08 13:21:31.388 |   Downloading https://files.pythonhosted.org/
packages/cc/68/3f2f9bf14e5a3bf23636d1180fe09643d9029d0852c658ba5783124d
0aa0/ovs-2.9.0.tar.gz (74kB)
2018-06-08 13:21:32.202 | Requirement already satisfied:
Tempita===0.5.2 in /usr/local/lib/python2.7/dist-packages (from -c
/opt/stack/requirements/upper-constraints.txt (line 32))
 
 
Error from Second Option I tried.
 
python/ovs/poller.py:16:1: I201 Missing newline before sections or
imports.
python/ovs/poller.py:18:1: I100 Import statements are in the wrong
order. import select should be before import ovs.vlog
python/ovs/poller.py:18:1: I201 Missing newline before sections or
imports.
python/ovs/poller.py:20:1: I100 Import statements are in the wrong
order. import os should be before import socket
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I
./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare
-Wpointer-arith -Wformat-security -Wswitch-enum -Wunused-parameter
-Wbad-function-cast -Wcast-align -Wmissing-prototypes -Wmissing-field-
initializers -fno-strict-aliasing -g -O2 -c lib/mac-learning.c  -fPIC
-DPIC -o lib/.libs/mac-learning.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I
./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare
-Wpointer-arith -Wformat-security -Wswitch-enum -Wunused-parameter
-Wbad-function-cast -Wcast-align -Wmissing-prototypes -Wmissing-field-
initializers -fno-strict-aliasing -g -O2 -c lib/lockfile.c  -fPIC -DPIC
-o lib/.libs/lockfile.o
python/ovs/reconnect.py:18:1: I100 Import statements are in the wrong
order. import ovs.util should be before import ovs.vlog
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I
./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare
-Wpointer-arith -Wformat-security -Wswitch-enum -Wunused-parameter
-Wbad-function-cast -Wcast-align -Wmissing-prototypes -Wmissing-field-
initializers -fno-strict-aliasing -g -O2 -c lib/match.c  -fPIC -DPIC -o
lib/.libs/match.o
python/ovs/socket_util.py:24:1: I100 Import statements are in the wrong
order. import ovs.fatal_signal should be before from six.moves
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I
./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare
-Wpointer-arith -Wformat-security -Wswitch-enum -Wunused-parameter
-Wbad-function-cast -Wcast-align -Wmissing-prototypes -Wmissing-field-
initializers -fno-strict-aliasing -g -O2 -c lib/learning-switch.c -o
lib/learning-switch.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I
./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare
-Wpointer-arith -Wformat-security -Wswitch-enum -Wunused-parameter
-Wbad-function-cast -Wcast-align -Wmissing-prototypes -Wmissing-field-
initializers -fno-strict-aliasing -g -O2 -c lib/lockfile.c -o
lib/lockfile.o >/dev/null 2>&1
python/ovs/stream.py:21:1: I100 Import statements are in the wrong
order. import ovs.poller should be before import six
python/ovs/unixctl/__init__.py:16:1: I100 Import statements are in the
wrong order. import sys should be before import six
python/ovs/unixctl/__init__.py:16:1: I201 Missing newline before
sections or imports.
python/ovs/unixctl/client.py:19:1: I100 Import statements are in the
wrong order. import ovs.jsonrpc should be before import six
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H
-I.    -I ./include -I ./include -I ./lib -I ./lib    -Wstrict-
prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith -Wformat-
security -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-
align -Wmissing-prototypes -Wmissing-field-initializers -fno-strict-
aliasing    -g -O2 -c -o lib/mcast-snooping.lo lib/mcast-snooping.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I
./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare
-Wpointer-arith -Wformat-security -Wswitch-enum -Wunused-parameter
-Wbad-function-cast -Wcast-align -Wmissing-prototypes -Wmissing-field-
initializers -fno-strict-aliasing -g -O2 -c lib/mac-learning.c -o
lib/mac-learning.o >/dev/null 2>&1
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H
-I.    -I ./include -I ./include -I ./lib -I ./lib    -Wstrict-
prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith -Wformat-
security -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-
align -Wmissing-prototypes -Wmissing-field-initializers -fno-strict-
aliasing    -g -O2 -c -o lib/memory.lo lib/memory.c
python/ovs/unixctl/server.py:23:1: I100 Import statements are in the
wrong order. import ovs.dirs should be before from six.moves
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H
-I.    -I ./include -I ./include -I ./lib -I ./lib    -Wstrict-
prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith -Wformat-
security -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-
align -Wmissing-prototypes -Wmissing-field-initializers -fno-strict-
aliasing    -g -O2 -c -o lib/meta-flow.lo lib/meta-flow.c
python/ovs/vlog.py:28:1: I100 Import statements are in the wrong order.
import ovs.dirs should be before from six.moves
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I
./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare
-Wpointer-arith -Wformat-security -Wswitch-enum -Wunused-parameter
-Wbad-function-cast -Wcast-align -Wmissing-prototypes -Wmissing-field-
initializers -fno-strict-aliasing -g -O2 -c lib/memory.c  -fPIC -DPIC
-o lib/.libs/memory.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I
./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare
-Wpointer-arith -Wformat-security -Wswitch-enum -Wunused-parameter
-Wbad-function-cast -Wcast-align -Wmissing-prototypes -Wmissing-field-
initializers -fno-strict-aliasing -g -O2 -c lib/mcast-snooping.c  -fPIC
-DPIC -o lib/.libs/mcast-snooping.o
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H
-I.    -I ./include -I ./include -I ./lib -I ./lib    -Wstrict-
prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith -Wformat-
security -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-
align -Wmissing-prototypes -Wmissing-field-initializers -fno-strict-
aliasing    -g -O2 -c -o lib/multipath.lo lib/multipath.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I
./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare
-Wpointer-arith -Wformat-security -Wswitch-enum -Wunused-parameter
-Wbad-function-cast -Wcast-align -Wmissing-prototypes -Wmissing-field-
initializers -fno-strict-aliasing -g -O2 -c lib/meta-flow.c  -fPIC
-DPIC -o lib/.libs/meta-flow.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I
./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare
-Wpointer-arith -Wformat-security -Wswitch-enum -Wunused-parameter
-Wbad-function-cast -Wcast-align -Wmissing-prototypes -Wmissing-field-
initializers -fno-strict-aliasing -g -O2 -c lib/memory.c -o
lib/memory.o >/dev/null 2>&1
python/ovstest/rpcserver.py:22:1: I100 Import statements are in the
wrong order. import sys should be before import exceptions
python/ovstest/rpcserver.py:22:1: I201 Missing newline before sections
or imports.
python/ovstest/rpcserver.py:25:1: I201 Missing newline before sections
or imports.
python/ovstest/rpcserver.py:28:1: I100 Import statements are in the
wrong order. server should be before xmlrpc
python/ovstest/rpcserver.py:30:1: I100 Import statements are in the
wrong order. import tcp should be before from twisted.web
python/ovstest/rpcserver.py:31:1: I201 Missing newline before sections
or imports.
python/ovstest/rpcserver.py:32:1: I201 Missing newline before sections
or imports.
python/ovstest/rpcserver.py:33:1: I201 Missing newline before sections
or imports.
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H
-I.    -I ./include -I ./include -I ./lib -I ./lib    -Wstrict-
prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith -Wformat-
security -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-
align -Wmissing-prototypes -Wmissing-field-initializers -fno-strict-
aliasing    -g -O2 -c -o lib/netdev-dummy.lo lib/netdev-dummy.c
python/ovstest/tcp.py:19:1: I101 Imported names are in the wrong order.
Should be ClientFactory, Factory, Protocol
python/ovstest/tcp.py:20:1: I100 Import statements are in the wrong
order. from twisted.internet should be before from
twisted.internet.protocol
python/ovstest/tcp.py:21:1: I201 Missing newline before sections or
imports.
python/ovstest/tcp.py:22:1: I100 Import statements are in the wrong
order. import time should be before from zope.interface
python/ovstest/tcp.py:22:1: I201 Missing newline before sections or
imports.
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I
./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare
-Wpointer-arith -Wformat-security -Wswitch-enum -Wunused-parameter
-Wbad-function-cast -Wcast-align -Wmissing-prototypes -Wmissing-field-
initializers -fno-strict-aliasing -g -O2 -c lib/multipath.c  -fPIC
-DPIC -o lib/.libs/multipath.o
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H
-I.    -I ./include -I ./include -I ./lib -I ./lib    -Wstrict-
prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith -Wformat-
security -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-
align -Wmissing-prototypes -Wmissing-field-initializers -fno-strict-
aliasing    -g -O2 -c -o lib/netdev-vport.lo lib/netdev-vport.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I
./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare
-Wpointer-arith -Wformat-security -Wswitch-enum -Wunused-parameter
-Wbad-function-cast -Wcast-align -Wmissing-prototypes -Wmissing-field-
initializers -fno-strict-aliasing -g -O2 -c lib/match.c -o lib/match.o
>/dev/null 2>&1
python/ovstest/util.py:19:1: I201 Missing newline before sections or
imports.
python/ovstest/util.py:20:1: I100 Import statements are in the wrong
order. import fcntl should be before import exceptions
python/ovstest/util.py:20:1: I201 Missing newline before sections or
imports.
python/ovstest/util.py:25:1: I100 Import statements are in the wrong
order. import signal should be before import struct
python/ovstest/util.py:27:1: I100 Import statements are in the wrong
order. import re should be before import subprocess
python/ovstest/util.py:30:1: I100 Import statements are in the wrong
order. import six.moves.xmlrpc_client should be before from six.moves
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I
./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare
-Wpointer-arith -Wformat-security -Wswitch-enum -Wunused-parameter
-Wbad-function-cast -Wcast-align -Wmissing-prototypes -Wmissing-field-
initializers -fno-strict-aliasing -g -O2 -c lib/netdev-dummy.c  -fPIC
-DPIC -o lib/.libs/netdev-dummy.o
python/setup.py:14:1: I201 Missing newline before sections or imports.
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I
./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare
-Wpointer-arith -Wformat-security -Wswitch-enum -Wunused-parameter
-Wbad-function-cast -Wcast-align -Wmissing-prototypes -Wmissing-field-
initializers -fno-strict-aliasing -g -O2 -c lib/multipath.c -o
lib/multipath.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I
./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare
-Wpointer-arith -Wformat-security -Wswitch-enum -Wunused-parameter
-Wbad-function-cast -Wcast-align -Wmissing-prototypes -Wmissing-field-
initializers -fno-strict-aliasing -g -O2 -c lib/mcast-snooping.c -o
lib/mcast-snooping.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I
./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare
-Wpointer-arith -Wformat-security -Wswitch-enum -Wunused-parameter
-Wbad-function-cast -Wcast-align -Wmissing-prototypes -Wmissing-field-
initializers -fno-strict-aliasing -g -O2 -c lib/netdev-vport.c  -fPIC
-DPIC -o lib/.libs/netdev-vport.o
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H
-I.    -I ./include -I ./include -I ./lib -I ./lib    -Wstrict-
prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith -Wformat-
security -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-
align -Wmissing-prototypes -Wmissing-field-initializers -fno-strict-
aliasing    -g -O2 -c -o lib/netdev.lo lib/netdev.c
vtep/ovs-vtep:28:1: I100 Import statements are in the wrong order.
import ovs.daemon should be before import ovs.util
vtep/ovs-vtep:31:1: I201 Missing newline before sections or imports.
vtep/ovs-vtep:32:1: I100 Import statements are in the wrong order.
import six should be before from six.moves
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I
./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare
-Wpointer-arith -Wformat-security -Wswitch-enum -Wunused-parameter
-Wbad-function-cast -Wcast-align -Wmissing-prototypes -Wmissing-field-
initializers -fno-strict-aliasing -g -O2 -c lib/netdev.c  -fPIC -DPIC
-o lib/.libs/netdev.o
Makefile:5635: recipe for target 'flake8-check' failed
make[3]: *** [flake8-check] Error 1
make[3]: *** Waiting for unfinished jobs....
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I
./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare
-Wpointer-arith -Wformat-security -Wswitch-enum -Wunused-parameter
-Wbad-function-cast -Wcast-align -Wmissing-prototypes -Wmissing-field-
initializers -fno-strict-aliasing -g -O2 -c lib/meta-flow.c -o
lib/meta-flow.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I
./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare
-Wpointer-arith -Wformat-security -Wswitch-enum -Wunused-parameter
-Wbad-function-cast -Wcast-align -Wmissing-prototypes -Wmissing-field-
initializers -fno-strict-aliasing -g -O2 -c lib/netdev-dummy.c -o
lib/netdev-dummy.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I
./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare
-Wpointer-arith -Wformat-security -Wswitch-enum -Wunused-parameter
-Wbad-function-cast -Wcast-align -Wmissing-prototypes -Wmissing-field-
initializers -fno-strict-aliasing -g -O2 -c lib/netdev-vport.c -o
lib/netdev-vport.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I
./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare
-Wpointer-arith -Wformat-security -Wswitch-enum -Wunused-parameter
-Wbad-function-cast -Wcast-align -Wmissing-prototypes -Wmissing-field-
initializers -fno-strict-aliasing -g -O2 -c lib/netdev.c -o
lib/netdev.o >/dev/null 2>&1
make[3]: Leaving directory '/opt/ovs/ovs'
Makefile:4960: recipe for target 'install-recursive' failed
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory '/opt/ovs/ovs'
Makefile:5266: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory '/opt/ovs/ovs'
dh_auto_install: make -j8 install DESTDIR=/opt/ovs/ovs/debian/tmp
AM_UPDATE_INFO_DIR=no returned exit code 2
debian/rules:25: recipe for target 'binary' failed
make: *** [binary] Error 2
ERROR:Creating Debian packages failed.
 
 
Thanks
Om Prakash
 
 
_______________________________________________
sfc-dev mailing list
[email protected]
https://lists.opendaylight.org/mailman/listinfo/sfc-dev

Reply via email to