aboutsummaryrefslogtreecommitdiff
path: root/rhel
AgeCommit message (Collapse)Author
2013-04-03rhel: Add depmod.d conf file for rhel6 kmod package.Gurucharan Shetty
It looks like for Centos6.4, there is an upstream openvswitch kernel module already installed. When we try to install kmod-openvswitch package from this tree's pre-1.10 branches, we get the following warning: "brcompat.ko needs unknown symbol ovs_dp_ioctl_hook". Also, after installing the kmod-openvswitch package, if we run "modprobe openvswitch", the upstream kernel module gets loaded. We should instead load the kernel module compiled from this tree. This patch fixes both the above issues. Bug #15829. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
2013-03-15debian, rhel, xenserver: Ability to collect ovs-ctl logs.Gurucharan Shetty
We use ovs-ctl from startup scripts to start, stop, restart, force-reload-kmod OVS daemons. ovs-ctl gives quite a descriptive o/p while running the above commands. But the o/p goes to stdout. Sometimes, this output is quite useful to debug issues. With this patch, we store the o/p of ovs-ctl when called from startup scripts in /var/log/openvswitch/ovs-ctl.log Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
2013-01-25rhel: Add OVSREQUIRES to automatically bring up OpenFlow interface dependenciesThomas Graf
The use of OpenFlow controllers may require for a subset of the network (typically the management network intrerface) to be brought up before the openvswitch service is started. The newly introduced key "OVSREQUIRES" allows to specify a list of interfaces that need the be brought up before the openvswitch service is autostarted. It is also possible to build a chain of bridge dependencies. TYPE=OVSBridge OVSREQURIES="em1" [...] A special UPPEDSTACK var that is passed along avoids getting lost in dependency loops. Signed-off-by: Thomas Graf <tgraf@redhat.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
2013-01-25rhel: Automatically start openvswitch service before bringing an ovs ↵Thomas Graf
interface up or down This patch modifies the ifup/ifdown scripts to automatically start the openvswitch service before ovs-vsctl is invoked thus not making it mandatory to auto-start openvswitch on boot. Signed-off-by: Thomas Graf <tgraf@redhat.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-12-27openvswitch: Remove Linux bridge compatibility.Pravin B Shelar
Currently brcompat does not work on master due to recent datapath changes. We have decided to remove it as it is not used very widely. Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com>
2012-12-08Added RHEL ovs-ifup STP option handlingAndres Toomsalu
Signed-off-by: Andres Toomsalu <andres@active.ee> Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-10-24xenserver, rhel, debian: Use ovs-ctl restart.Gurucharan Shetty
ovs-ctl has a new command called "restart" which saves and restores the openflow flows on bridges. Use that command from the init scripts when doing a "restart --save-flows=yes". Also, the debian package postinst script can set the variable OVS_RESTART_SAVE_FLOWS to "yes" to ask for save and restore of flows. Feature #13555. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
2012-10-17utilities: New helper ovs-parse-backtrace.Ethan Jackson
The new ovs-parse-backtrace utility makes the output of ovs-appctl backtrace more human readable by removing duplicate traces and converting addresses to function names. Signed-off-by: Ethan Jackson <ethan@nicira.com>
2012-10-10build: Add support for building RPMs for Fedora LinuxRalf Spenneberg
Add RPM specfiles for building OVS for Fedora Linux. This allows users of the upstream project the ability to generate RPMs for their Open vSwitch needs. Signed-off-by: Ralf Spenneberg <ralf@spenneberg.net> [kmestery@cisco.com made substantial changes including writing documentation] Signed-off-by: Kyle Mestery <kmestery@cisco.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-07-02ovs-l3ping: A new test utility that allows to detect L3 tunneling issuesAnsis Atteka
ovs-l3ping is similar to ovs-test, but the main difference is that it does not require administrator to open firewall holes for the XML/RPC control connection. This is achieved by encapsulating the Control Connection over the L3 tunnel itself. This tool is not intended as a replacement for ovs-test, because ovs-test covers much broader set of test cases. Sample usage: Node1: ovs-l3ping -s 192.168.122.236,10.1.1.1 -t gre Node2: ovs-l3ping -c 192.168.122.220,10.1.1.2,10.1.1.1 -t gre Issue#11791 Signed-off-by: Ansis Atteka <aatteka@nicira.com>
2012-06-15xenserver, rhel: Enable extra ovs-ctl options from init scripts.Ben Pfaff
This is useful for passing wrapper script options and possibly for other purposes. Bug #11889. Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-06-12Add a FAQ.Ben Pfaff
I wrote most of this myself. The answer to "I can't seem to use Open vSwitch in a wireless network" is based on a response by Jesse Gross: http://openvswitch.org/pipermail/discuss/2011-January/004707.html Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-05-22Properly reopen python daemon log files after rotation.Ben Pfaff
The OVS Python daemons weren't reopening their log files after rotation, so all the log information after the second rotation was lost. Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-05-09rhel: Add timeouts to network scripts.Brian Kruger
If the daemon(s) aren't running for whatever reason, the RHEL ovs ifup/ifdown scripts don't take that into account and an attempt to reboot a system could take forever. (literally. endless loop!) Here are a couple of patches (one of ifup, one for ifdown) to add timeouts (10 seconds), because it runs per interface you have configured and that could take awhile to reboot a system if needed. Signed-off-by: Brian Kruger <bkruger+ovsdev@gmail.com> [blp@nicira.com fixed up a conflict against master] Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-05-02Global replace of Nicira Networks.Raju Subramanian
Replaced all instances of Nicira Networks(, Inc) to Nicira, Inc. Feature #10593 Signed-off-by: Raju Subramanian <rsubramanian@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-05-01ovs-ctl: Make "force-reload-kmod" warn when DHCP clients must be restarted.Ben Pfaff
This should make it more obvious when the admin needs to restart a DHCP client (or other daemon). Without this, unless the admin carefully reads the documentation, the first notice he gets about a need to restart the DHCP client can easily be when the lease expires and the machine drops off the network. Bug #5391. Tested-by: Gurucharan Shetty <gshetty@nicira.com> Suggested-by: Duffie Cooley <dcooley@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-03-19configure: Remove --with-build-number.Ben Pfaff
From early days, Nicira used the --with-build-number option to configure to stamp our internal builds. We've since switched to another scheme, so this option is obsolete. Good riddance. Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-03-13Use `pwd` in place of $PWD, treewide.Ben Pfaff
The Autoconf manual says: Posix 1003.1-2001 requires that `cd' and `pwd' must update the `PWD' environment variable to point to the logical name of the current directory, but traditional shells do not support this. This can cause confusion if one shell instance maintains `PWD' but a subsidiary and different shell does not know about `PWD' and executes `cd'; in this case `PWD' points to the wrong directory. Use ``pwd`' rather than `$PWD'. so this commit replaces all uses of $PWD by `pwd`. Reported-by: Justin Pettit <jpettit@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-02-03rhel: Space separated list of DHCP interfaces in network scripts.Gurucharan Shetty
Use space separated list of DHCP interfaces for OVSDHCPINTERFACES instead of comma separated list. This is done to maintain consistency with BOND_IFACES. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
2012-02-03xenserver: Simplify RPM build instructions.Ben Pfaff
I got tired of trying to follow them properly myself. Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-02-03rhel: Simplify ifup-ovs script use of "case".Ben Pfaff
Suggested-by: "Alexey I. Froloff" <raorn@altlinux.org> Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-01-31rhel: Enable DHCP in redhat network scripts.Gurucharan Shetty
The current network-script, ifup-ovs does not work well if you enable DHCP on the OVS. It will work if we name the bridge alphabetically greater than the underlying physical interfaces. Even then, it will do multiple DHCP attempts slowing down the boot up process. This patch allows DHCP on an OVS bridge. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
2012-01-20rhel: Correct an example in README.RHELGurucharan Shetty
Change the value of OVS_BRIDGE in an example to point to the correct bridge name. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
2011-12-09bugtool: move plugins data from /etc/openvswitch to /usr/share/openvswitchChris Wright
This is in repsonse to the following rpmlint warnings: W: non-conffile-in-etc /etc/openvswitch/bugtool-plugins/system-configuration/openvswitch.xml W: non-conffile-in-etc /etc/openvswitch/bugtool-plugins/system-logs/openvswitch.xml W: non-conffile-in-etc /etc/openvswitch/bugtool-plugins/system-configuration.xml W: non-conffile-in-etc /etc/openvswitch/bugtool-plugins/network-status/openvswitch.xml W: non-conffile-in-etc /etc/openvswitch/bugtool-plugins/kernel-info/openvswitch.xml The xenserver specfile still places them in /etc/xensource/bugtool since that's a distro policy. Of course, the rpmlint warnings are as well, however, this seems like a more logical place for the bugtool plugins. Signed-off-by: Chris Wright <chrisw@sous-sol.org> Signed-off-by: Ben Pfaff <blp@nicira.com>
2011-12-09utilites: rename ovs-lib.sh to ovs-libChris Wright
Rename this helper script to simply ovs-lib, since it's primarily a library of helper functions. Signed-off-by: Chris Wright <chrisw@sous-sol.org> Signed-off-by: Ben Pfaff <blp@nicira.com>
2011-12-09rhel: openvswitch.spec.in: fix perms on logrotate and sysconfig.templateChris Wright
Fixes rpmlint warning: W: spurious-executable-perm /etc/logrotate.d/openvswitch W: non-conffile-in-etc /etc/logrotate.d/openvswitch E: script-without-shebang /usr/share/openvswitch/scripts/sysconfig.template Define rhel_cp() shell func and include file mode on install. Signed-off-by: Chris Wright <chrisw@sous-sol.org> Signed-off-by: Ben Pfaff <blp@nicira.com>
2011-12-09rhel: openvswitch.spec.in installs README as executableChris Wright
Fix this rpmlint warning: W: spurious-executable-perm /usr/share/doc/openvswitch-1.4.0/README.RHEL by specifying mode on install. Signed-off-by: Chris Wright <chrisw@sous-sol.org> Signed-off-by: Ben Pfaff <blp@nicira.com>
2011-11-18packaging: Fix Xen and RH packaging error that was introduced with ovs-test ↵Ansis Atteka
utility My previous ovs-test utility commit broke Xen and RH packaging. This commit will address this issue by not including any ovs-test related files into those two packages.
2011-11-17rhel: Add Red Hat network scripts integration.Alexey I. Froloff
[Spec file changes and some documentation updates by Ben Pfaff.]
2011-11-14rhel: Add ability to enable bridge compatibility mode in ↵Tyler Coumbes
/etc/sysconfig/openvswitch Add the ability to enable bridge compatibility mode through BRCOMPAT variable in /etc/sysconfig/openvswitch for the rhel build. When BRCOMPAT is set to 'yes' the brcompat_mod will be loaded and ovs-brcompatd daemon will be started.
2011-09-27python: Backport argparse to older platforms.Ethan Jackson
Argparse has some convenient advantages over optparse including the ability to handle optional arguments to flags. It also supports parsing arguments as well as options. This patch copies argparse.py from Python 2.7 into a newly created compat directory. It made some very minor syntactic updates in the process. Platforms which have a Python version too old to include argparse by default will have this compat version installed as a workaround.
2011-09-15rhel: Fix "make distcheck" failure due to regenerating spec files.Ben Pfaff
We want to regenerate the RPM spec files whenever the version number changes, hence the dependency on config.status. But that means that we try to modify the spec files even when the version number doesn't change, which cause "make distcheck" to fail because it write-protects the source directory. So this commit instead just "touch"es the spec files when they don't really change, which still works OK with a write-protected source directory.
2011-09-08rhel: add ability to build kmod packages for arbitrary kernel version/variant(s)Alexey I. Froloff
Usage: rpmbuild --rebuild \ -D 'kversion KERNEL_VERSION' \ -D 'kflavors FLAVORS TO BUILD' \ openvswitch-kmod-VERSION-RELEASE.src.rpm Signed-off-by: Alexey I. Froloff <raorn@altlinux.org> Signed-off-by: Ben Pfaff <blp@nicira.com>
2011-09-08rhel: rename RHEL6 kmod source packageAlexey I. Froloff
Rename RHEL6 source package to openvswitch-kmod, so it doesn't intersect with main package. Signed-off-by: Alexey I. Froloff <raorn@altlinux.org> Signed-off-by: Ben Pfaff <blp@nicira.com>
2011-08-31rhel: Poke iptables hole for gre in init scripts.Ethan Jackson
2011-08-31rhel: Add ovs-pki to rpm.Ethan Jackson
2011-08-31rhel: Don't delete bridges on boot.Ethan Jackson
Before this patch, the RHEL init scripts would remove all bridges configured on the system at boot.
2011-07-27ovs-benchmark: New utility.Ben Pfaff
2011-07-26utilities: Install ovs-parse-leaks utility by default.Ben Pfaff
We install this in the Debian packaging and I don't see a reason not to install it everywhere. (Oddly, we were already installing the manpage everywhere.) Signed-off-by: Ben Pfaff <blp@nicira.com>
2011-07-25rhel: Fix use of $< in ordinary Make rules.Ben Pfaff
POSIX only allows $< in inference rules, so avoid it for these target rules. Also, add a header to the generated spec files to remind developers that they are generated.
2011-07-14rhel: Add ovs-bugtool manpage to list of packaged files.Ben Pfaff
With this change, the RPM builds for me again on RHEL 6. Bug #6413.
2011-07-13ovs-bugtool: Add plugins previously used only under XenServer.Ben Pfaff
All of the xen-bugtool plugins that OVS has previously installed only under XenServer are equally useful with Debian and other distributions, so this commit installs and uses them everywhere.
2011-07-12ovs-bugtool: Make available outside of Debian packages.Ben Pfaff
ovs-bugtool is no longer Debian-specific, so install it everywhere. (On XenServer, specifically, we do not install it, because there xen-bugtool already exists.)
2011-06-24datapath: Rename linux-2.6 and compat-2.6 directories.Jesse Gross
The linux-2.6 and compat-2.6 directories apply equally to the upcoming Linux 3.0 release, so this drops the 2.6 suffix and updates Makefiles. Signed-off-by: Jesse Gross <jesse@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
2011-06-22configure: Change --with-l26 to --with-linux.Ben Pfaff
Linux 3.0 will be out soon, so it seems like a good idea to reflect that in our "configure" script options.
2011-06-21Add RHEL 5/6 spec files and instructions.Ben Pfaff