Below Thanks
From: Flavio Leitner <f...@redhat.com> To: Gang U Xu/China/IBM@IBMCN Cc: Alex Wang <al...@nicira.com>, b...@openvswitch.org Date: 2014/10/31 21:33 Subject: Re: [ovs-discuss] ovs 2.3 kernel module build failed on rhel 7.0 GA Hi Gang, I've tried 2.3 with that fix on 3.10.0-123.8.1. See my steps below: [root@rhel7-i7 openvswitch]# git checkout v2.3 -b rhel7-`uname -r` Switched to a new branch 'rhel7-3.10.0-123.8.1.el7.x86_64' [root@rhel7-i7 openvswitch]# git cherry-pick 4ae2b2c1c4c345d0cb5f5a6b0f20fd6afb4a6962 error: could not apply 4ae2b2c... datapath: Add support for RHEL-7 / CentOS-7 kernel. hint: after resolving the conflicts, mark the corrected paths hint: with 'git add <paths>' or 'git rm <paths>' hint: and commit the result with 'git commit' <fixed the conflict, leaved the hunk there> [root@rhel7-i7 openvswitch]# git add datapath/linux/compat/include/net/vxlan.h [root@rhel7-i7 openvswitch]# git commit [rhel7-3.10.0-123.8.1.el7.x86_64 5c85bae] datapath: Add support for RHEL-7 / CentOS-7 kernel. Author: Pravin B Shelar <pshe...@nicira.com> 12 files changed, 57 insertions(+), 13 deletions(-) [root@rhel7-i7 openvswitch]# ./boot.sh && ./configure && make dist [...] [root@rhel7-i7 openvswitch]# mv openvswitch-2.3.0.tar.gz ~/rpmbuild/SOURCES [root@rhel7-i7 openvswitch]# rpmbuild -bb -D "kversion `uname -r`" rhel/openvswitch-kmod-fedora.spec Seemed most steps are the same except I used openvswitch-kmod-rhel6.spec. Why use fedora.spec for rhel 7.0? [...] Requires(rpmlib): rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/openvswitch-kmod-2.3.0-1.el7.x86_64 Wrote: /root/rpmbuild/RPMS/x86_64/openvswitch-kmod-2.3.0-1.el7.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/openvswitch-kmod-debuginfo-2.3.0-1.el7.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.NQtFoi + umask 022 + cd /root/rpmbuild/BUILD + cd openvswitch-2.3.0 + rm -rf /root/rpmbuild/BUILDROOT/openvswitch-kmod-2.3.0-1.el7.x86_64 + exit 0 [root@rhel7-i7 openvswitch]# rpm -qpl /root/rpmbuild/RPMS/x86_64/openvswitch-kmod-2.3.0-1.el7.x86_64.rpm /lib/modules/3.10.0-123.8.1.el7.x86_64/kernel/extra/openvswitch/openvswitch.ko [root@rhel7-i7 openvswitch]# rpm -ivh /root/rpmbuild/RPMS/x86_64/openvswitch-kmod-2.3.0-1.el7.x86_64.rpm Preparing... ################################# [100%] Updating / installing... 1:openvswitch-kmod-2.3.0-1.el7 ################################# [100%] [root@rhel7-i7 openvswitch]# find /lib/modules/3.10.0-123.8.1.el7.x86_64/ -name openvswitch.ko /lib/modules/3.10.0-123.8.1.el7.x86_64/extra/openvswitch.ko /lib/modules/3.10.0-123.8.1.el7.x86_64/kernel/extra/openvswitch/openvswitch.ko /lib/modules/3.10.0-123.8.1.el7.x86_64/kernel/net/openvswitch/openvswitch.ko [root@rhel7-i7 openvswitch]# systemctl stop openvswitch [root@rhel7-i7 openvswitch]# rmmod openvswitch [root@rhel7-i7 openvswitch]# rmmod openvswitch rmmod: ERROR: Module openvswitch is not currently loaded [root@rhel7-i7 openvswitch]# insmod /lib/modules/3.10.0-123.8.1.el7.x86_64/kernel/extra/openvswitch/openvswitch.ko [root@rhel7-i7 openvswitch]# lsmod | grep openvswitch openvswitch 79963 0 vxlan 37584 1 openvswitch gre 13808 1 openvswitch libcrc32c 12644 1 openvswitch [root@rhel7-i7 openvswitch]# modinfo openvswitch filename: /lib/modules/3.10.0-123.8.1.el7.x86_64/extra/openvswitch.ko version: 2.3.0 license: GPL description: Open vSwitch switching datapath srcversion: 3C8BDB38B211A44E4C22697 depends: libcrc32c,vxlan,gre vermagic: 3.10.0-123.8.1.el7.x86_64 SMP mod_unload modversions [root@rhel7-i7 openvswitch]# systemctl start openvswitch [root@rhel7-i7 openvswitch]# ovs-vsctl show 10ea2f3c-78e3-4041-a49b-21576201b60a Bridge "ovs0" Port "p64p1" Interface "p64p1" Port "ovs0" Interface "ovs0" type: internal ovs_version: "2.3.90" [root@rhel7-i7 openvswitch]# fbl
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss