[ovs-discuss] [opnfv-tech-discuss] Persistent error when trying to install Devstack+OVN

Numan Siddique nusiddiq at redhat.com
Thu May 31 19:59:11 UTC 2018


Hi Amir,

In order for devstack to not compile ovs kernel module,  you can set
"OVN_BUILD_MODULES=False" in your devstack local.conf file. The openvswitch
kernel module from the centos 7 would be used.

The compilation error definitely needs to be resolved though.

Thanks
Numan


On Thu, May 31, 2018 at 10:20 PM, Morales, Victor <victor.morales at intel.com>
wrote:

> Hey Amir,
>
>
>
> I haven’t tried to use OVN in Devstack before but it seems like it’s
> related with the OVS version that you’re using. Can you provide the version
> number of OVS?
>
>
>
> Regards,
>
> Victor Morales
>
>
>
> *From: *<opnfv-tech-discuss-bounces at lists.opnfv.org> on behalf of Amir
> Mohamad <a.ibrahim at fci-cu.edu.eg>
> *Date: *Thursday, May 31, 2018 at 5:15 AM
> *To: *"ovs-discuss at openvswitch.org" <ovs-discuss at openvswitch.org>, "
> jmcdowall at paloaltonetworks.com" <jmcdowall at paloaltonetworks.com>
> *Subject: *[opnfv-tech-discuss] Persistent error when trying to install
> Devstack+OVN
>
>
>
> Hello,
>
>           I've been trying to install Devstack+OVN on CentOS7,on the
> physical machine not a VM, and the environment is a desktop with core i5
> (4th gen), 8 Gigs of ram, and 500 GB disk.
>
>
>
> I followed the following steps to install:
>
>
>
> 1. Installed minimal centos7
>
> 2. Created a stack user:
>
> $ sudo useradd -s /bin/bash -d /opt/stack -m stack
>
> $ echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
>
> $ sudo su - stack
>
> 3. Pulled the devstack and OS OVN plugin
>
> $ sudo yum install git -y
>
> $ git clone http://git.openstack.org/openstack-dev/devstack.git
>
> $ git clone http://git.openstack.org/openstack/networking-ovn.git
>
> $ cd devstack
>
> $ cp ../networking-ovn/devstack/local.conf.sample local.conf
>
> $ ./stack.sh
>
>
>
>
>
> Every time the installation stops and exits with the error below:
>
>
>
> make -C /lib/modules/3.10.0-862.el7.x86_64/build
> M=/opt/stack/ovs/datapath/linux
>                                     modules
>
> make[4]: Entering directory `/usr/src/kernels/3.10.0-862.el7.x86_64'
>
>   CC [M]  /opt/stack/ovs/datapath/linux/actions.o
>
>   CC [M]  /opt/stack/ovs/datapath/linux/conntrack.o
>
>   CC [M]  /opt/stack/ovs/datapath/linux/dp_notify.o
>
>   CC [M]  /opt/stack/ovs/datapath/linux/datapath.o
>
>   CC [M]  /opt/stack/ovs/datapath/linux/flow.o
>
>   CC [M]  /opt/stack/ovs/datapath/linux/flow_netlink.o
>
>   CC [M]  /opt/stack/ovs/datapath/linux/flow_table.o
>
>   CC [M]  /opt/stack/ovs/datapath/linux/vport.o
>
>   CC [M]  /opt/stack/ovs/datapath/linux/vport-internal_dev.o
>
> /opt/stack/ovs/datapath/linux/flow_netlink.c: In function
> 'validate_and_copy_set
>                        _tun':
>
> /opt/stack/ovs/datapath/linux/flow_netlink.c:2551:10: error: too many
> arguments
>             to function 'metadata_dst_alloc'
>
>           GFP_KERNEL);
>
>           ^
>
> In file included from /opt/stack/ovs/datapath/linux/compat/include/net/udp_tunne
>
>  l.h:8:0,
>
>                  from /opt/stack/ovs/datapath/linux/compat/include/net/geneve.h:
>
>  5,
>
>                  from /opt/stack/ovs/datapath/linux/flow_netlink.c:43:
>
> /opt/stack/ovs/datapath/linux/compat/include/net/dst_metadata.h:50:36:
> note: dec
>            lared here
>
>  static inline struct metadata_dst *metadata_dst_alloc(u8 optslen, gfp_t
> flags)
>
>                                     ^
>
> make[5]: *** [/opt/stack/ovs/datapath/linux/flow_netlink.o] Error 1
>
> make[5]: *** Waiting for unfinished jobs....
>
> make[4]: *** [_module_/opt/stack/ovs/datapath/linux] Error 2
>
> make[4]: Leaving directory `/usr/src/kernels/3.10.0-862.el7.x86_64'
>
> make[3]: *** [default] Error 2
>
> make[3]: Leaving directory `/opt/stack/ovs/datapath/linux'
>
> make[2]: *** [all-recursive] Error 1
>
> make[2]: Leaving directory `/opt/stack/ovs/datapath'
>
> make[1]: *** [all-recursive] Error 1
>
> make[1]: Leaving directory `/opt/stack/ovs'
>
> make: *** [all] Error 2
>
> Error on exit
>
> World dumping... see /opt/stack/logs/worlddump-2018-05-30-144941.txt for
> details
>
> [stack at localhost devstack]$
>
>
>
>
>
> ===================================
>
>
>
> Appreciate your feedback to help me.
>
>
>
> --
>
>    Regards
> Amir I. Mohamad
> Assistant Lecturer
> Faculty of Computers & Information
> IT Dept. Cairo University
>
>
>
>
>
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20180601/64394d51/attachment.html>


More information about the discuss mailing list