On Tue, Nov 04, 2014 at 09:28:16AM +0800, Gang U Xu wrote: > Hi, > > For why I have to build openvswitch-kmod, > I think it is from spec under rhel/openvswitch.spec > ... > Requires: openvswitch-kmod, logrotate, python
Oh, you can comment that out. The rhel/openvswitch.spec supposes that the module is provided by an extra package which can be true in some cases. I mean, old RHEL-6 versions didn't include that module, so you would have to build kmod as well. However, that's not true for RHEL-7 which provides the module since 0day. > ... > I read spec from Fedora source rpm > ftp://fr2.rpmfind.net/linux/fedora/linux/development/rawhide/source/SRPMS/o/openvswitch-2.3.0-2.fc22.src.rpm > > ... > Requires: openssl iproute module-init-tools > Requires: kernel >= 3.15.0-0 > ... > > Our product node did not have so high kernel. So we will use > openvswitch-kmod intead. That's an upstream kernel version. For RHEL-7 you can use: Requires: kernel >= 0:3.10.0-123.2.1 You should be able to use openvswitch with any RHEL-7 kernel, but versions prior to the above missed one bugfix, so I'd recommend to use at least that version. fbl > Do you think it is reasonable? > Any comments? > From: Flavio Leitner <f...@redhat.com> > To: Gang U Xu/China/IBM@IBMCN > Cc: Alex Wang <al...@nicira.com>, b...@openvswitch.org > Date: 2014/11/03 20:40 > Subject: Re: [ovs-discuss] ovs 2.3 kernel module build failed on > rhel 7.0 GA > > > > On Mon, Nov 03, 2014 at 04:29:20PM +0800, Gang U Xu wrote: > > Hi, > > > > I followed your way and can build kernal succ. > > > > Seemed that important step is we need run boot.sh again. > > Indeed, that's what I meant by bootstrap the tree again > (./boot.sh). The ./configure script creates a cache file > so that in the next time you run, it doesn't need to go > checking everything on the system again. > > However, in this case that patch changes the things checked > by the script but it doesn't trigger any refresh. So you > need to do it by running ./boot.sh script. > > > I found after run this step, all errors changed to warning so build > > passed. > > Cool. > [...] > > Do you mean rhel 7.0 already provide ovs module? > > I checked 7.0 yum repo from rhn, seemed no ovs found now. > > The kernel module (the one you're building) is part of the > standard RHEL kernel. > > $ rpm -qpl kernel-3.10.0-123.2.1.el7.x86_64.rpm | grep openvswitch > /lib/modules/3.10.0-123.2.1.el7.x86_64/kernel/net/openvswitch > /lib/modules/3.10.0-123.2.1.el7.x86_64/kernel/net/openvswitch/openvswitch.ko > > fbl > > _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss