summaryrefslogtreecommitdiff
path: root/debian
Commit message (Collapse)AuthorAgeFilesLines
* debian: Correct path to ovs-controller in init script.Ben Pfaff2011-09-201-1/+1
| | | | | Reported-by: George Shuklin <amarao@desunote.ru> Bug-report: http://bugs.debian.org/642206
* Debian: fail gracefully if modules can't be loaded on installSimon Horman2011-09-123-2/+38
| | | | | | | | | | | | | | | | | | By registering an error-handler for the init script used in openvswitch-switch.postinst and detecting if module insertion fails, it is possible to avoid failure to install in the case where the openvswitch_mod module is not available. This is done without altering the behaviour that the start target of the openvswitch-switch init script will fail if module insertion fails. This patch also adds a friendly hint as as to why starting openvswitch-switch has failed if it is due to failure to insert the openvswtich_mod. This message is displayed as necessary both on package install and other calls to the start target of the init script. [Ben Pfaff fixed up == to = in postinst]
* ovs-monitor-ipsec: Don't abort if syslog is not available.Ben Pfaff2011-08-261-9/+12
| | | | | | | | | | | If /dev/log doesn't exist or cannot be contacted, ovs-monitor-ipsec would abort with an exception. This allows it to start up and run. It's pretty common for a chroot used for testing not to have a syslogd instance set up and running, so this limitation caused testing problems. Reported-by: Simon Horman <horms@verge.net.au> Tested-by: Simon Horman <horms@verge.net.au>
* debian: Transition to dh_python2Simon Horman2011-08-265-12/+9
| | | | | | | | | | dh_pysupport that the packaging used until now is deprecated, with dh_python2 as its successor. This commit removes the PYTHONPATH setting from debian/openvswitch-ipsec.init because it is not needed, as the Python packaging is public. In fact, the Python packaging was public, unintentionally, before, so the PYTHONPATH could have been removed earlier.
* debian: Apply Ubuntu patch to add DKMS support.Chuck Short2011-08-257-1/+73
| | | | | | | | | | | | | | | | | | | | | | | I tested that installing openvswitch-datapath-dkms worked OK on my own Debian machine. The bulk of this patch is taken from downstream Ubuntu DKMS support written by Chuck Short <zulcss@ubuntu.com>, version 1.2.0-1ubuntu1. I made the following changes: * Update debian/.gitignore. * Update debian/automake.mk. * Correct description in debian/control (it was a cut-and-paste from the openvswitch-datapath-source description without editing). * Fix up for --with-l26 to --with-linux and datapath/linux-2.6 to datapath/linux transitions. CC: Chuck Short <zulcss@ubuntu.com> CC: Dave Walker <DaveWalker@ubuntu.com> Acked-by: Simon Horman <horms@verge.net.au>
* Debian: set -e in brcompat postinstSimon Horman2011-08-241-0/+2
| | | | | | | | | | As reported by lintian: The maintainer script doesn't seem to set the -e flag which ensures that the script's execution is aborted when any executed command fails. Refer to Debian Policy Manual section 10.4 (Scripts) for details.
* Debian: Add dependency on ${misc:Depends}Simon Horman2011-08-241-2/+3
| | | | | | | | | | | | | | Add dependency on ${misc:Depends} to openvswitch-brcompat and ovsdbmonitor. As reported by Lintian: The source package uses debhelper, but it does not include ${misc:Depends} in the given binary package's debian/control entry. Any debhelper command may add dependencies to ${misc:Depends} that are required for the work that it does, so recommended best practice is always add ${misc:Depends} to the dependencies of each binary package if debhelper is in use. Refer to the debhelper(7) manual page for details.
* debian: Avoid installing duplicate files in ovsdbmonitor package.Ben Pfaff2011-08-101-1/+1
| | | | | | | | | This is just a typo introduced in commit 57483aeda (debian: Fix bug from commit 211b05b5 "debian: Modernize use of dh_install.) that caused the ovsdbmonitor package to install too many files. Bug-report: http://bugs.debian.org/636815 Reported-by: Ralf Treinen <treinen@free.fr>
* debian: Ensure that /var/run/openvswitch exists in controller init script.Ben Pfaff2011-08-081-0/+5
| | | | | | | | It would be better to use ovs-ctl from this script, but until now this is an adequate solution. Reported-by: Jibesh Patra Bug-report: https://bugs.launchpad.net/bugs/822142
* Prepare Open vSwitch 1.2.0 release.Justin Pettit2011-08-031-0/+47
|
* debian: Fix path for ovsdb-server in init script.Justin Pettit2011-08-011-1/+1
| | | | Reported-by: Brad Hall <brad@nicira.com>
* ovs-benchmark: New utility.Ben Pfaff2011-07-272-0/+2
|
* debian: Move OVSDB schema and ovsdb-tool to openvswitch-switch.Ben Pfaff2011-07-262-2/+2
| | | | | | | | | | | | | | | ovs-vswitchd in the openvswitch-switch package is tightly coupled to its database schema. During development, it's possible to change the schema without changing the Open vSwitch version number, which makes it possible for the openvswitch-switch and openvswitch-common packages to get out of sync: openvswitch-switch requires the same version of openvswitch-common, but if the version number doesn't get updated that has no effect. Actually putting the schema and ovs-vswitchd (its primary user) in the same package prevents them from getting out-of-sync. This commit also moves ovsdb-tool because that program often works directly with OVSDB schemas and so there's not much point having it around without a schema to work with.
* debian: Fix bug from commit 211b05b5 "debian: Modernize use of dh_install."Ben Pfaff2011-07-262-2/+3
| | | | | | | | | | | | Commit 211b05b5 "debian: Modernize use of dh_install" caused build failures in clean environments because debian/ovsdbmonitor.install now installed files that were never created in such an environment. It didn't cause a build failure in my own testing because I still had old files around. This fixes the problem. It seems to be necessary to run "make install" once for each of binary-arch and binary-indep, because dh_prep always deletes debian/tmp. It is logically not necessary but I don't see a clean and robust way to avoid it.
* debian: Add support for bridge compatibility.Ben Pfaff2011-07-268-5/+57
| | | | | | | This adds support for bridge compatibility to the generic Open vSwitch init scripts and to the Debian packaging. See https://bugs.launchpad.net/ubuntu/+source/openvswitch/+bug/808224.
* debian: Modernize use of dh_install.Ben Pfaff2011-07-266-25/+26
| | | | | | | | | | | | | Originally I intended this as just a cleanup, but as a side effect it also installs some files from the install tree in debian/tmp instead of from _debian. This should avoid a reported problem in which ovs-bugtool was being created in the source directory instead of the build directory (I still don't see why this happened). Reported-by: Sébastien RICCIO <sr@swisscenter.com> Tested-by: Sébastien RICCIO <sr@swisscenter.com> Acked-by: Simon Horman <horms@verge.net.au> CC: Simon Horman <horms@verge.net.au>
* debian: Remove obsolete comment.Ben Pfaff2011-07-181-5/+0
| | | | | The comment is obsolete because the switch now starts by default, without prior configuration.
* ovs-bugtool: Add plugins previously used only under XenServer.Ben Pfaff2011-07-133-11/+10
| | | | | | 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.
* ovs-bugtool: Make available outside of Debian packages.Ben Pfaff2011-07-126-1301/+4
| | | | | | 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.)
* ovs-bugtool: Restore RHEL support.Ben Pfaff2011-07-122-70/+172
| | | | | | | | | | | | | | | | | | | | | | | ovs-bugtool was originally xen-bugtool from Citrix XenServer. We modified it for OVS by tailoring it to work better on Debian, updating file locations and removing features that were specific to XenServer or that work with packages not installed by default on Debian. This commit reverts many of those changes. This commit: - Adds back code that works with RHEL features not installed by default on Debian (but not XenServer-specific features, since xen-bugtool works nicely on XenServer). - Switches from hard-coded paths for utilities to searching the superuser's typical $PATH (because RHEL and Debian disagree on the location for some utilities). - In a few cases merges lists, e.g. now it looks for logs under the names used in both Debian and RHEL. - Fixes a few spurious differences between ovs-bugtool and xen-bugtool, e.g. in white space.
* debian: Remove obsolete reference to var/log/core.Ben Pfaff2011-07-061-1/+1
| | | | | Commit 14c3b136 "debian: Remove corekeeper package" removed the var/log/core directory from the Debian packaging, but I missed this part.
* datapath: Rename linux-2.6 and compat-2.6 directories.Jesse Gross2011-06-241-2/+2
| | | | | | | | 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>
* Debian: set source format to 3.0 (quilt)Simon Horman2011-06-232-1/+3
| | | | | | | | | | | This is my preferred package format as it allows changes to be added as patches when the Debian package needs to be updated between upstream releases. I have been making this change in the Debian packages so it seems as well to include it upstream. [Update to debian/automake.mk by Ben Pfaff.]
* configure: Change --with-l26 to --with-linux.Ben Pfaff2011-06-221-1/+1
| | | | | Linux 3.0 will be out soon, so it seems like a good idea to reflect that in our "configure" script options.
* debian: Avoid implying that Linux 2.6.9 is supported.Ben Pfaff2011-06-221-2/+2
|
* Avoid inserting duplicate iptables rules when restarting vswitch.Ben Pfaff2011-06-211-4/+2
| | | | | | | | | | | | | | | | On startup, some OVS initscripts insert an iptables rule to allow GRE traffic (because GRE support is an important OVS feature). I noticed that, each time I restarted OVS, this added another GRE-related rule to the iptables chain. This is wasteful, because each additional rule increases the time it takes to process a packet in the IP stack. This commit avoids the problem by inserting an iptables rule when there isn't already an appropriate rule. It also avoids inserting an iptables rule if the iptables policy is ACCEPT, meaning that packets are accepted by default; in such a case, if the GRE packet would be dropped, it is because the system administrator made that decision explicitly. Signed-off-by: Ben Pfaff <blp@nicira.com>
* debian: Install ovs-save script into openvswitch-switch package.Ben Pfaff2011-06-211-0/+1
| | | | The force-reload-kmod command needs this.
* Fix force-reload-kmod initscript command implementations.Ben Pfaff2011-06-201-16/+26
| | | | | | I screwed this up in the recent conversion. Signed-off-by: Ben Pfaff <blp@nicira.com>
* Fix typo in "--force-corefiles" and "force-reload-kmod".Ben Pfaff2011-06-171-1/+1
| | | | Reported-by: Andrew Evans <aevans@nicira.com>
* Refactor initscripts into distro-independent and distro-specific pieces.Ben Pfaff2011-06-175-362/+34
| | | | This should make it easier to add OVS support to new distributions.
* Debian: Update changelog for 1.1.0-1 and 1.1.1-1Simon Horman2011-06-151-1/+34
| | | | This reflects the chagnelogs uploaded to Debian.Org
* Debian: ${source:Version} dependency on python-openvswitchSimon Horman2011-06-151-1/+1
| | | | | | | | | | | | | As reported by lintian: E: openvswitch source: not-binnmuable-any-depends-all openvswitch-ipsec -> python-openvswitch N: N: The package is not safely binNMUable because an arch:any package depends N: on an arch:all package with a (= ${Source-Version}) or (= N: ${binary:Version}) relationship. Please use (= ${source:Version}) N: instead. N: N: Severity: important, Certainty: certain
* Debian: Update standards version from 3.9.1 to 3.9.2Simon Horman2011-06-151-1/+1
|
* Debian: Add ${misc:Depends} dependency to python-openvswitchSimon Horman2011-06-151-1/+1
| | | | | | | | | | | | | | | | | As reported by lintian -i: W: openvswitch source: debhelper-but-no-misc-depends python-openvswitch N: N: The source package uses debhelper, but it does not include N: ${misc:Depends} in the given binary package's debian/control entry. Any N: debhelper command may add dependencies to ${misc:Depends} that are N: required for the work that it does, so recommended best practice is to N: always add ${misc:Depends} to the dependencies of each binary package if N: debhelper is in use. N: N: Refer to the debhelper(7) manual page for details. N: N: Severity: normal, Certainty: possible
* xenserver: Collect xenserver configured timezone in bugtool reportSajjad Lateef2011-06-081-0/+2
| | | | | | | | | | | | | | xenserver logs can be in any timezone, as configured by user during install time. Also, the timezone data is not currently recorded in the bugtool report. Therefore, it is currently not possible to easily correlate logs collected on xenserver with logs from other devices on the network. With this change, system-configuration capability of the bugtool plugin has been added. Also, added an extension to this capability to collect the time information in RFC3339 format, which includes the system timezone. Signed-off-by: Sajjad Lateef <slateef@nicira.com>
* debian: Package ovsdbmonitor.Ben Pfaff2011-05-235-2/+23
| | | | Signed-off-by: Ben Pfaff <blp@nicira.com>
* debian: Don't begin openvswitch-pki description with article.Ben Pfaff2011-05-231-1/+1
| | | | | Signed-off-by: Ben Pfaff <blp@nicira.com> Reported by lintian.
* debian: Make openvswitch-switch depend on Python.Ben Pfaff2011-05-231-1/+1
| | | | | | | | ovs-pcap,.ovs-tcpundump, and ovs-vlan-test are all written in Python, so openvswitch-switch needs to depend on Python. Signed-off-by: Ben Pfaff <blp@nicira.com> Reported by lintian.
* ovs-bugtool: Add support for user-provided output filename.Shih-Hao Li2011-05-191-12/+32
| | | | | This change adds a new command-line parameter "--outfile" in ovs-bugtool. So users can specify their own final output filename.
* Add tar.gz output option in ovs-bugtoolShih-Hao Li2011-05-181-1/+3
|
* ovs-monitor-ipsec: Allow IKE fragmentationJustin Pettit2011-04-271-0/+1
| | | | | | | Some (broken) firewalls do not properly pass UDP fragments, which will prevent IKE from completing. This commit enables the racoon option to allow application-level fragmenting and allow security associations to be created.
* debian: Do not call obsolete command "ovs-ofctl status" in ovs-bugtool.Ben Pfaff2011-04-121-2/+1
| | | | | | | | | | This command was removed in commit 9b45d7f5d (ofproto: Get rid of archaic "switch status" OpenFlow extension) but I didn't notice that ovs-bugtool uses that command and forgot to remove it at the time. Bug #5360. Reported-by: Michael Mao <mmao@nicira.com> Reported-by: Keith Amidon <keith@nicira.com>
* Release Open vSwitch 1.1.0Justin Pettit2011-04-111-0/+85
|
* daemon: Integrate checking for an existing pidfile into daemonize_start().Ben Pfaff2011-04-041-3/+1
| | | | | | | | | | | | Until now, it has been the responsibility of an individual daemon to call die_if_already_running() at an appropriate time. A long time ago, this had to happen *before* daemonizing, because once the process daemonized itself there was no way to report failure to the process that originally started the daemon. With the introduction of daemonize_start(), this is now possible, but we haven't been taking advantage of it. Therefore, this commit integrates the die_if_already_running() call into daemonize_start() and deletes the calls to it from individual daemons.
* xenserver: Collect /proc/slabinfo in a Server Status ReportSajjad Lateef2011-03-221-0/+1
| | | | | | /proc/slabinfo gives information about memory usage as slab level and can be used to diagnose memory issues on memory-limited systems
* ofproto: Remove controller discovery support.Ben Pfaff2011-03-163-9/+1
| | | | | | I've never heard of anyone actually using controller discovery. It adds a great deal of code to the source tree, and a little bit of complication to ofproto, so this commit removes it.
* debian: Restart daemons only after upgrade is complete.Ben Pfaff2011-03-141-1/+1
| | | | | | | | | | This yields less downtime during an upgrade and allows an SSH session or other network access to dpkg to continue during the upgrade to, e.g., answer questions about conffiles from dpkg. (Open vSwitch doesn't have any conffiles but other packages being upgraded in the same dpkg run might.) Bug #542.
* debian: Run tests in parallel too.Ben Pfaff2011-03-141-3/+6
| | | | | Passing e.g. -j4 in TESTSUITEFLAGS runs 4 tests in parallel, which speeds up the testsuite.
* ovsdb: Implement garbage collection.Ben Pfaff2011-03-101-0/+12
|
* ovs-kill: Remove.Ben Pfaff2011-02-232-2/+0
| | | | | | | This utility isn't used anywhere (except INSTALL.Linux), so remove it. Signed-off-by: Ben Pfaff <blp@nicira.com> Coverity #10708.