aboutsummaryrefslogtreecommitdiff
path: root/xenserver
AgeCommit message (Collapse)Author
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-10-05xenserver: ovs-xapi-sync should create a log file.Ethan Jackson
2011-09-29xenserver: Update README to be current.Justin Pettit
2011-09-29xenserver: Correct location of xen-bugtool plugins.Justin Pettit
xen-bugtool plugins were stored in "/etc/xensource/bugtool/bugtool-plugins/*", but xen-bugtool will not traverse deeper than "/etc/xensource/bugtool/*". This commit corrects the location and makes our plugins run. signed-off-by: Justin Pettit <jpettit@nicira.com> acked-by: Ben Pfaff <blp@nicira.com>
2011-09-29bugtool: Collect "lacp/show" and "cfm/show" information.Justin Pettit
Feature #7496
2011-09-29xenserver: Fix typo in comment in XAPI plugin.Ben Pfaff
Signed-off-by: Ben Pfaff <blp@nicira.com>
2011-09-28ovs-xapi-sync: Crashes if root-prefix is unspecified.Ethan Jackson
2011-09-27xenserver: Don't specify python code by hand.Ethan Jackson
Before this patch, a list of each python file in the xenserver rpm was listed by hand. This was error prone so now the spec file uses a glob. Signed-off-by: Ethan Jackson <ethan@nicira.com>
2011-09-27xenserver: Add vlog.py to spec file.Ethan Jackson
2011-09-27ovs-xapi-sync: Convert to vlog.Ethan Jackson
2011-09-27python: Upgrade daemon module to argparse.Ethan Jackson
This patch also updates it's callers.
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-26ovs-xapi-sync: Add unit test.Ben Pfaff
2011-09-23ovs-xapi-sync: Style cleanup.Ethan Jackson
Pleases pep8.
2011-09-23ovs-xapi-sync: Remove dead code.Ethan Jackson
Found by pychecker.
2011-09-23python: Implement write support in Python IDL for OVSDB.Ben Pfaff
Until now, the Python bindings for OVSDB have not supported writing to the database. Instead, writes had to be done with "ovs-vsctl" subprocesses. This commit adds write support and brings the Python bindings in line with the C bindings. This commit deletes the Python-specific IDL tests in favor of using the same tests as the C version of the IDL, which now pass with both implementations. This commit updates the two users of the Python IDL to use the new write support. I tested this updates only by writing unit tests for them, which appear in upcoming commits.
2011-09-22ovs-xapi-sync: Make pychecker-able.Ben Pfaff
pychecker imports the code that it checks, which means that code at top level runs, so "ovs-xapi-sync" failed to import unless the user had write access to /var/log/openvswitch.
2011-08-01vlog: Add a new log level "off".Ben Pfaff
Until now, "emer" has effectively been "off" because no messages were ever logged at "emer" level. Justin points out that it is useful to use "emer" for messages that indicate a fatal error. This commit makes that change and adds a new "off" level to really turn off all logging to a facility.
2011-07-27xenserver: Fix typo in spec file.Ethan Jackson
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-13ovs-bugtool: Add an OVSDB snapshot to ovs-bugtool output.Ben Pfaff
The ovs-bugtool output already includes a copy of the configuration database file, but this file omits many instantaneous details. For example, it does not include any information about controller connection status or interface statistics. This commit adds a snapshot of the database contents that does include these details.
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-29xenserver: Restart HA daemon after force-reload-kmod.Ben Pfaff
Otherwise its heartbeats start failing after the reload and the XenServer reboots after a minute or so. Thanks to Justin Pettit for figuring out that this was HA-related. Bug #5706. Reported-by: Henrik Amren <henrik@nicira.com>
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-22xenserver: Update all external_ids in tap interfaces.Ethan Jackson
Commit 400430 "xenserver: Give tap devices iface-ids." copies the iface-id from vifs to their related tap device. It turns out this is not sufficient, so this commit copies all relevant external_ids over. Requested-by: Pankaj Thakkar <thakkar@nicira.com> Signed-off-by: Ethan Jackson <ethan@nicira.com> Bug #5954.
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-21Avoid inserting duplicate iptables rules when restarting vswitch.Ben Pfaff
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>
2011-06-20Fix force-reload-kmod initscript command implementations.Ben Pfaff
I screwed this up in the recent conversion. Signed-off-by: Ben Pfaff <blp@nicira.com>
2011-06-20vswitchd: Install vswitch.ovsschema to $(pkgdatadir).Ben Pfaff
This way, the xenserver spec file and the upcoming RHEL 5.6 spec file don't have to install it by hand. Signed-off-by: Ben Pfaff <blp@nicira.com>
2011-06-17Fix typo in "--force-corefiles" and "force-reload-kmod".Ben Pfaff
Reported-by: Andrew Evans <aevans@nicira.com>
2011-06-17xenserver: New iface-status external id.Ethan Jackson
The iface-status external id indicates to a controller which device it should manage when there are multiple choices for a given vif. Currently, it always chooses a tap device if available, but one could imagine more sophisticated strategies in the future. Signed-off-by: Ethan Jackson <ethan@nicira.com>
2011-06-17xenserver: Give tap devices iface-ids.Ethan Jackson
In some cases XenServer will give a virtual machine a tap device in addition to its usual vif. These tap devices need iface-ids so that controllers can figure out which vif they are related to. Signed-off-by: Ethan Jackson <ethan@nicira.com>
2011-06-17xenserver: Fix use of undefined variable.Ethan Jackson
Found with pylint. E:167:update_in_band_mgmt: Undefined variable 'bridge' Signed-off-by: Ethan Jackson <ethan@nicira.com>
2011-06-17utilities: Install ovs-save in scripts directory.Ben Pfaff
This way, the xenserver spec file and the upcoming RHEL 5.6 spec file don't have to install it by hand. Signed-off-by: Ben Pfaff <blp@nicira.com>
2011-06-17Refactor initscripts into distro-independent and distro-specific pieces.Ben Pfaff
This should make it easier to add OVS support to new distributions.
2011-06-17xenserver: allow dom0 traffic in secure pool host when controller unavailable.David Tsai
A pool configured for secure fail-mode can block dom0 traffic on hosts joining the pool or if the host reboots while the controller is unavailable. This commit sets default flows on a host under these conditions to allow management traffic. Once the connection with the controller is re-established, these default flows are replaced by the controller. tests/interface-reconfigure.at updated by Ben Pfaff. NIC-376. Signed-off-by: David Tsai <dtsai@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
2011-06-16xenserver: Don't delete pidfile in stop_daemon.Ben Pfaff
Deleting the pidfile introduces a minor race: if some other process is starting a daemon at the same time that the init script is stopping the same daemon, then this could delete the new daemon's pidfile. This is really a theoretical risk, because no one should be starting and stopping a single daemon at the same time.
2011-06-16xenserver: Don't require confirmation to restart vswitch.Ben Pfaff
Early development versions of ovs-vswitchd didn't always restart successfully, so we required confirmation if "restart" was invoked interactively. Recent versions do just fine, so drop the confirmation prompt. Signed-off-by: Ben Pfaff <blp@nicira.com>
2011-06-16xenserver: Use $OVS_XAPI_SYNC_PIDFILE consistently.Ben Pfaff
This variable was used in some places but not in others. Signed-off-by: Ben Pfaff <blp@nicira.com>
2011-06-15xenserver: Run "depmod" after old modules are removed by "rpm -U".Ben Pfaff
http://fedoraproject.org/wiki/Packaging/ScriptletSnippets says that package upgrade does the following steps: 1. %pretrans of new package 2. %pre of new package 3. (package install) 4. %post of new package 5. %triggerin of other packages (set off by installing new package) 6. %triggerin of new package (if any are true) 7. %triggerun of old package (if it's set off by uninstalling the old package) 8. %triggerun of other packages (set off by uninstalling old package) 9. %preun of old package 10. (removal of old package) 11. %postun of old package 12. %triggerpostun of old package (if it's set off by uninstalling the old package) 13. %triggerpostun of other packages (if they're setu off by uninstalling the old package) 14. %posttrans of new package We're getting in trouble because the %post runs in step 4 before the old files are removed in step 10, so depmod is finding the old modules. This commit switches to running depmod in step 14 instead, after the old files are removed. Bug #5916. Reported-by: Jesse Gross <jesse@nicira.com> Reported-by: Henrik Amren <henrik@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
2011-06-08xenserver: Collect xenserver configured timezone in bugtool reportSajjad Lateef
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>
2011-06-07ovs-openflowd: Rename test-openflowd and move to "tests" directory.Ben Pfaff
Too many users thought that they needed to run ovs-openflowd at the same time as ovs-vswitchd. I hope that this change discourages them.
2011-05-19xenserver: Pull slave MTU from bond record.Ethan Jackson
The MTU of the fake bond interface and the slaves participating in a bond should all agree. The correct long term solution to this problem is to remove the fake bond interface altogether. Until that's possible, we simply set the MTU of the slaves. Signed-off-by: Ethan Jackson <ethan@nicira.com>
2011-05-16xenserver: remove unneeded macro definitionsSajjad Lateef
The macro binsuffix is no longer needed. It has been replaced with kernel_flavor that is passed on the command line. The macro kernel_version is passed on the command line. Redefining the macro inside the spec file leads to build failures. Signed-off-by: Sajjad Lateef <slateef@nicira.com>
2011-05-16xenserver: modify module spec fileSajjad Lateef
Based on feedback from Citrix about building for multiple kernels, the spec file has been modified to take three arguments on the command line: kernel_name, kernel_version and kernel_flavor. The kernel_flavor is either xen or kdump. The kernel_name is the Name value embedded in the kernel rpm and the kernel_version is Version-Release values embedded in the kernel rpm. The xen_version is calculated. The INSTALL document has been updated to reflect these changes. Signed-off-by: Sajjad Lateef <slateef@nicira.com> (cherry picked from commit b11e4aa7e92854612a4d139b8a620d036a5d41a2)
2011-05-11xenserver: Fix bugs related to using xe-switch-network-backend in spec file.Justin Pettit
Commit daf2ebb (xenserver: Use xe-switch-network-stack in RPM spec file.) changed the spec file to use xe-switch-network-backend instead of directly modifying "/etc/xensource/network.conf". It incorrectly assumed that the command was in the search path. It also didn't take into account that the command will remove the "openvswitch" service with chkconfig. This commit fixes those errors. Signed-off-by: Justin Pettit <jpettit@nicira.com>
2011-05-05xenserver: Better document scriplet action in RPM spec file.Justin Pettit
2011-05-05xenserver: Use xe-switch-network-stack in RPM spec file.Justin Pettit
The proper way to switch the networking back-end is to use the "xe-switch-network-stack" command rather than directly modifying "/etc/xensource/network.conf". Use that method in the spec file.