[ovs-discuss] Openvswitch

David Pendell davidp at cityofdelta.net
Wed Feb 26 19:41:51 UTC 2014


Sorry for the lack of clarity. Wouldn't it be better if the kernel module
and the userspace daemons and utilities matched?

d.p.


On Wed, Feb 26, 2014 at 10:03 AM, Flavio Leitner <fbl at redhat.com> wrote:

> On Tue, Feb 25, 2014 at 03:46:02PM -0700, David Pendell wrote:
> > If I try building it without the -D option, it won't build. If try
> building
> > it with the -D "kversion 3.12.11-201.fc19.x86_64" option it still doesn't
> > build, but it says that kernels newer than 3.11.x are not supported.
> >
> >
> > checking whether gcc accepts -Wno-unused-parameter... yes
> > checking target hint for cgcc... x86_64
> > checking whether make has GNU make $(if) extension... yes
> > checking for Linux build directory... no
> > configure: error: source dir /usr/src/kernels/3.12.11-201.fc19-x86_64
> > doesn't exist                  <------------
> > error: Bad exit status from /var/tmp/rpm-tmp.UfaF7J (%build)
> > [...]
> > RPM build errors:
> >     Bad exit status from /var/tmp/rpm-tmp.UfaF7J (%build)
> > [davidp at lostogre-desktop openvswitch-2.1.0]$ rpmbuild -bb
> > rhel/openvswitch-kmod-fedora.spec -D "kversion 3.12.11-201.fc19.x86_64"
> > <---------------------
> > Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.usjkpE
> > + umask 022
> > + cd /home/davidp/rpmbuild/BUILD
> > + cd /home/davidp/rpmbuild/BUILD
> > [...]
> > checking whether make has GNU make $(if) extension... yes
> > checking for Linux build directory...
> > /lib/modules/3.12.11-201.fc19.x86_64/build
> > checking for Linux source directory...
> > /lib/modules/3.12.11-201.fc19.x86_64/build
> > checking for kernel version... 3.12.11
> > configure: error: Linux kernel in
> > /lib/modules/3.12.11-201.fc19.x86_64/build is version 3.12.11, but
> version
> > newer than 3.11.x is not supported     <------------------
> > error: Bad exit status from /var/tmp/rpm-tmp.qOc3P5 (%build)
> >
> >
> > RPM build errors:
> >     Bad exit status from /var/tmp/rpm-tmp.qOc3P5 (%build)
>
> Ok, so you are building the kernel module.
> Why can't you use the module provided by the fedora's kernel package?
>
> Basically to use openvswitch 2.0 on Fedora 20 you just need to install
> the fedora's kernel rpm package and fedora's openvswitch rpm package.
> If you need 2.1, then build the rhel/openvswitch-fedora.spec out of
> git tree and use fedora's kernel rpm package.
>
> It would be helpful if you explain what you're trying to do.
>
> fbl
>
> >
> >
> >
> > On Tue, Feb 25, 2014 at 12:45 PM, Flavio Leitner <fbl at redhat.com> wrote:
> >
> > > On Tue, Feb 25, 2014 at 12:32:06PM -0700, David Pendell wrote:
> > > > I was compiling from git branch-2.1 and it claims that it is not
> > > supported.
> > >
> > > I just successfully compiled from git branch-2.1 on Fedora 20.
> > >
> > > Also, I built the RPM packages using the steps described in
> > > file INSTALL.Fedora:
> > >
> > > [fleitner at t520 openvswitch]$ rpmbuild -bb rhel/openvswitch-fedora.spec
> > > Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.4SqaZE
> > > + umask 022
> > > + cd /home/fleitner/rpmbuild/BUILD
> > > + cd /home/fleitner/rpmbuild/BUILD
> > > + rm -rf openvswitch-2.1.0
> > > + /usr/bin/gzip -dc
> > > /home/fleitner/rpmbuild/SOURCES/openvswitch-2.1.0.tar.gz
> > > [...]
> > > Checking for unpackaged file(s): /usr/lib/rpm/check-files
> > > /home/fleitner/rpmbuild/BUILDROOT/openvswitch-2.1.0-1.fc20.x86_64
> > > Wrote:
> > > /home/fleitner/rpmbuild/RPMS/x86_64/openvswitch-2.1.0-1.fc20.x86_64.rpm
> > > Wrote:
> > >
> > >
> /home/fleitner/rpmbuild/RPMS/x86_64/openvswitch-debuginfo-2.1.0-1.fc20.x86_64.rpm
> > > Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.z4HB1E
> > > + umask 022
> > > + cd /home/fleitner/rpmbuild/BUILD
> > > + cd openvswitch-2.1.0
> > > + rm -rf
> > > /home/fleitner/rpmbuild/BUILDROOT/openvswitch-2.1.0-1.fc20.x86_64
> > > + exit 0
> > > [fleitner at t520 openvswitch]$
> > >
> > > My current kernel:
> > > [fleitner at t520 openvswitch]$ uname -r
> > > 3.12.10-300.fc20.x86_64
> > >
> > > fbl
> > >
> > >
> > > >
> > > > d.p.
> > > >
> > > >
> > > > On Tue, Feb 25, 2014 at 10:21 AM, Flavio Leitner <fbl at redhat.com>
> wrote:
> > > >
> > > > > On Mon, Feb 24, 2014 at 08:38:55PM -0700, David Pendell wrote:
> > > > > > When is there going to be a version of openvswitch that will
> support
> > > > > Fedora
> > > > > > 19/20 or maybe more correctly, kernel version 3.12.*?
> > > > >
> > > > > Not sure what you are saying because there packages are available:
> > > > > $ cat /etc/fedora-release
> > > > > Fedora release 20 (Heisenbug)
> > > > >
> > > > >
> > > > > $ yum info kernel.x86_64
> > > > > Name        : kernel
> > > > > Arch        : x86_64
> > > > > Version     : 3.12.8
> > > > > Release     : 300.fc20
> > > > > Size        : 131 M
> > > > > Repo        : installed
> > > > > From repo   : updates
> > > > > Summary     : The Linux kernel
> > > > > URL         : http://www.kernel.org/
> > > > > License     : GPLv2 and Redistributable, no modification permitted
> > > > > Description : The kernel package contains the Linux kernel
> (vmlinuz),
> > > > > the core of any
> > > > >             : Linux operating system.  The kernel handles the basic
> > > > > functions
> > > > >             : of the operating system: memory allocation, process
> > > > > allocation, device
> > > > >             : input and output, etc.
> > > > >
> > > > >
> > > > > $ yum info openvswitch.x86_64
> > > > > Loaded plugins: langpacks, refresh-packagekit
> > > > > Installed Packages
> > > > > Name        : openvswitch
> > > > > Arch        : x86_64
> > > > > Version     : 2.0.0
> > > > > Release     : 4.fc20
> > > > > Size        : 6.3 M
> > > > > Repo        : installed
> > > > > From repo   : updates
> > > > > Summary     : Open vSwitch daemon/database/utilities
> > > > > URL         : http://openvswitch.org
> > > > > License     : ASL 2.0 and LGPLv2+ and SISSL
> > > > > Description : Open vSwitch provides standard network bridging
> functions
> > > > > and
> > > > >             : support for the OpenFlow protocol for remote per-flow
> > > > > control of
> > > > >             : traffic.
> > > > >
> > > > > fbl
> > > > >
> > > > >
> > >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20140226/9a1a93b0/attachment-0002.html>


More information about the discuss mailing list