summaryrefslogtreecommitdiff
path: root/xenserver/automake.mk
Commit message (Collapse)AuthorAgeFilesLines
* doc: Convert xenserver/README to rSTStephen Finucane2016-11-031-1/+1
| | | | | Signed-off-by: Stephen Finucane <stephen@that.guru> Signed-off-by: Russell Bryant <russell@ovn.org>
* python: Run flake8 at build time.Russell Bryant2016-01-051-0/+3
| | | | | | | | | | | | If flake8 is installed, run it at build time. Similar to most Makefile targets, run it once and then only run again if the files change. flake8 is set to ignore all error and warning types that currently occur. Future patches will remove items from the ignore list as they are resolved. Signed-off-by: Russell Bryant <russell@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
* Makefiles: Add $(AM_V_GEN) annotations to clean up "make" output.Ben Pfaff2014-09-291-2/+2
| | | | | | | | The Open vSwitch "make" output was still pretty verbose even when configured with --enable-silent-rules. This cleans it up. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Joe Stringer <joestringer@nicira.com>
* Global replace of Nicira Networks.Raju Subramanian2012-05-021-1/+1
| | | | | | | | 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>
* xenserver: Fix rule for generating xenserver/openvswitch-xen.spec.Ben Pfaff2012-03-021-3/+3
| | | | | | | | | Commands in Makefiles have to begin with a hard tab, otherwise they are ignored, which is what happened here. Fixes "make distcheck". Signed-off-by: Ben Pfaff <blp@nicira.com>
* xenserver: Simplify RPM build instructions.Ben Pfaff2012-02-031-1/+7
| | | | | | I got tired of trying to follow them properly myself. Signed-off-by: Ben Pfaff <blp@nicira.com>
* python: Backport argparse to older platforms.Ethan Jackson2011-09-271-2/+1
| | | | | | | | | | | | 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.
* ovs-bugtool: Add plugins previously used only under XenServer.Ben Pfaff2011-07-131-6/+1
| | | | | | 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.
* 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>
* 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
* xenserver: Replace customized xen-bugtool with plugin to collect qdisc info.Andrew Evans2011-02-151-1/+2
| | | | | | | | | | | | | | | | XenServer RPMs have installed a modified /usr/sbin/xen-bugtool that is identical to upstream except for an additional command to collect tc qdisc class configuration for each network interface. Since xen-bugtool has an extension mechanism, use that instead of maintaining a parallel patched xen-bugtool. This does change the content of the bug report slightly. Instead of one file per network interface, qdisc class info for all interfaces is written to one file. This is an artifact of the xen-bugtool extension mechanism: a single extension command's output must go to one file, and it is impractical to create individual <command> tags for each interface dynamically. Reviewed by Ben Pfaff.
* xenserver: Rename ovs-external-ids to ovs-xapi-sync.Justin Pettit2011-02-111-1/+1
| | | | | | | | | With commit 5692e3 (xenserver: Set fail_mode on internal bridges.), the responsibilities of ovs-external-ids got expanded beyond just monitoring external-ids. This commit renames the script to more accurately describe its job. Signed-off-by: Justin Pettit <jpettit@nicira.com>
* xenserver: Remove support for XenServer versions older than 5.6 FP1.Justin Pettit2011-02-111-1/+0
| | | | | | | | Commit 404c169247b1c3ac2ebad887f0421478a6cef924 breaks compatibility with XenServers older than 5.6 FP1. This commit removes the last vestiges of support for those older XenServer versions. Signed-off-by: Justin Pettit <jpettit@nicira.com>
* xenserver: Remove brctl wrapper script.Justin Pettit2011-02-111-1/+0
| | | | | | | | | The OVS "brctl" wrapper script was added to aid Citrix's QA and help XenCenter display link status and statistics of bridges. Since the Citrix integrated OVS ships without this wrapper script, it's clearly no longer needed in the versions of XenServer we now support. Signed-off-by: Justin Pettit <jpettit@nicira.com>
* xenserver: Rename monitor-external-ids -> ovs-external-idsEthan Jackson2010-09-221-1/+1
| | | | | | | | | | Renamed the monitor-external-ids script ovs-external-ids. Hopefully this will make it clearer who owns it when someone does ps xa. Also removed trailing whitespace from ovs-external-ids. Signed-off-by: Ethan Jackson <ethan@nicira.com>
* xenserver: Add GPLv2 license text.Ben Pfaff2010-09-221-0/+1
| | | | | | | | | | | | xsconsole is being relicensed under GPLv2 so we need to include the text. It would be more usual to name this file COPYING and to name the LGPLv2.1 that is already named LICENSE as COPYING.LIB, but some of the files pulled in from XenServer say that their license is in a file named LICENSE. I don't expect that Citrix would be willing to change that, so it seems better to keep LGPLv2.1 named LICENSE. Signed-off-by: Ben Pfaff <blp@nicira.com>
* xenserver: Add monitor-external-ids daemonJustin Pettit2010-08-251-0/+1
| | | | | | | | | | | The monitor-external-ids daemon monitors the external_ids columns of the Bridge and Interface OVSDB tables. Its primary responsibility is to set the "bridge-id" and "iface-id" keys in the Bridge and Interface tables, respectively. It also looks for the use of "network-uuids" in the Bridge table and duplicates its value to the preferred "xs-network-uuids". Signed-off-by: Justin Pettit <jpettit@nicira.com>
* xenserver: Prepend XenServer external ids with "xs-"Justin Pettit2010-08-251-1/+1
| | | | Signed-off-by: Justin Pettit <jpettit@nicira.com>
* Implement initial Python bindings for Open vSwitch database.Ben Pfaff2010-08-251-1/+2
| | | | | | | | | | These initial bindings pass a few hundred of the corresponding tests for C implementations of various bits of the Open vSwitch library API. The poorest part of them is actually the Python IDL interface in ovs.db.idl, which has not received enough attention yet. It appears to work, but it doesn't yet support writes (transactions) and it is difficult to use. I hope to improve it as it becomes clear what semantics Python applications actually want from an IDL.
* xenserver: Get rid of ovs-xenserverd.Ben Pfaff2010-06-081-8/+0
| | | | This is no longer used. Good riddance.
* xenserver: Gracefully refresh network UUIDs on pool join or leave.Ben Pfaff2010-04-261-0/+8
| | | | | | | | | | | | | | The vswitch database is supposed to maintain an up-to-date UUID for the system's networks in the Bridge table as external-ids:network-uuids. On XenServer systems, /opt/xensource/libexec/interface-reconfigure updates these fields as bridges are brought up and down. Most of the time, that is sufficient. However, this is one exception: when a XenServer host enters or leaves a pool, interface-reconfigure is not invoked, and neither is any other script. So this commit introduces a new, XenServer-specific daemon that monitors the XenServer's pool membership status and refreshes the network UUIDs (by invoking the refresh-network-uuids script) if it changes. Bug #2097.
* Cleanup default file locations and XenServer packagingJustin Pettit2010-03-261-8/+8
| | | | | | | | | | | | | | | | | | | | | | This commit cleans up the locations of a number of files and directories used. These include: - Config file lives in /etc/openvswitch/conf.db - Logs go into /var/log/openvswitch - ovsdb-server socket is /var/run/openvswitch/db.sock - Schema goes into /usr/share/openvswitch/vswitch.ovsschema - PID files go in /var/run/openvswitch For XenServer, these additional changes are made: - Cores go in /var/xen/openvswitch - OVS binaries run in /var/xen/openvswitch In addition, it attempts to cleanup the XenServer packaging. This includes referring to the project as "openvswitch" as opposed to the somewhat presumptuous "vswitch". Note: Changes to the Debian packaging will be forthcoming.
* vswitchd: Make names of Bridge external_ids generic.Ben Pfaff2010-03-241-1/+1
| | | | | | | | | | | | | Until now the names of the external_ids keys used for Bridge records have implied that they are specific to XenServer, because they begin with "xs-". They are more generic in intent, however, so this commit removes the "xs-" prefix and explains them more generically. This finishes the renaming process started in commit c0f9490 "vswitchd: Make names of Interface external_ids generic." CC: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* xenserver: Remove dump-vif-details script.Ben Pfaff2010-03-021-1/+0
| | | | | | It is no longer used. Signed-off-by: Ben Pfaff <blp@nicira.com>
* xenserver: Update interface-reconfigure and vif integration scripts.Ian Campbell2010-01-251-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch updates the versions of the host integration scripts to what is present in the recent XCP update and the next release of XenServer (5.6). I think it probably works on 5.5 as well but I haven't verified that. These new versions support runtime selection of the Linux bridging vs vswitch through the toolstack. The patch includes the necessary reconfiguration (rewriting /etc/xensource/network.conf) to enable vswitch in the RPM %post stage. The RPM spec file integration is only lightly tested, seems to work for me. This commit is as provided by Ian Campbell, with a few minor tweaks: - Updated xenserver/automake.mk to distribute the added files. - Updated RPM spec file not to complain if the added files do not already exist (since they do not exist on XenServer 5.5.0). - Change location of dbcache back to /var/lib/openvswitch/dbcache so that this can coexist with our other internal builds. (Undoubtedly we will have to adopt the new location chosen by Ian eventually, however.)
* Merge "citrix" into "master".Ben Pfaff2009-10-221-0/+1
|\ | | | | | | | | | | | | | | | | | | | | This merge took a little bit of care due to two issues: - Crossport of "interface-reconfigure" fixes from master back to citrix that had happened and needed to be canceled out of the merge. - New script "refresh-xs-network-uuids" added on citrix branch that needed to be moved from /root/vswitch/scripts to /usr/share/vswitch/scripts.
| * xenserver: Add script refresh-xs-network-uuids.Ben Pfaff2009-09-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | On pool join, the bridge.<bridge>.xs-network-uuids key is not updated properly for the primary management interface. We don't have a proper fix for this problem yet, and probably won't ever have one for XenServer 5.5.0, so this commit adds a script that works around the problem. Running the script is a shortcut for rebooting the XenServer host, which should also solve the problem. Bug #2097.
* | xenserver: Install into /usr instead of /root/vswitch.Ben Pfaff2009-09-111-2/+2
|/ | | | | | | | | | | | | /usr is the standard location for installation, so use that instead of our nonstandard location under /root. This migrates everything except the kernel modules to /usr. The kernel modules will be migrated in an upcoming commit. One possibly surprising change is that the manpages listed in the %files section of vswitch-xen.spec not only moved but added .gz extensions. This seems to be because RPM automatically compresses manpages, but only if they are installed in a standard system location.
* xenserver: Install /etc/sysconfig/vswitch by default.Ben Pfaff2009-09-031-1/+1
| | | | | | | | | | Until now, the vswitch RPM has installed /etc/sysconfig/vswitch.example and made the system administrator copy it to /etc/sysconfig/vswitch if he desires. This is slightly inconvenient, since it is slightly easier for the admin if he can just edit /etc/sysconfig/vswitch directly. This commit changes to the latter behavior. Bug #1810.
* xenserver: Fix "brctl show" compatibility by introducing "brctl" wrapper.Ben Pfaff2009-08-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Bug NIC-19, which reported that "brctl show" did not format its output in the way expected by Citrix QA scripts, was believed fixed by commit 35c979bff4 "vswitchd: Support creating fake bond device interfaces." Unfortunately, this commit was not tested on a XenServer before it was committed. Due to differences in the actual test environment and the XenServer environment, which have different versions of the bridge-utils package that contains brctl, that commit did not fix the problem observed by Citrix QA. In particular, the XenServer brctl uses sysfs to obtain the information displayed by "brctl show", but the previous commit only fixed up the information output by the bridge ioctls. The natural way to fix this problem would be to fix up the sysfs support as well. I started out along that path, but became bogged down in all the details of the kernel sysfs. This commit takes an alternate approach, by introducing a wrapper around the system brctl binary that implements "brctl show" itself and delegates all other functionality to the original binary (in a different location). This will not fix tools that do not call into brctl, but to the best of my knowledge there are no such tools used in the Citrix QA process. Thanks to Justin and Reid for much feedback. Bug NIC-19.
* XenServer: Add knowledge of vswitch to xen-bugtoolJustin Pettit2009-08-061-0/+1
| | | | | | | | | | | | | | | | | | | The xen-bugtool tool gathers information that may be useful in debugging problems. This commit modifies that script to add support for vswitch. Currently, the information we collect is: - /etc/ovs-vswitchd.conf - ovs-dpctl show - Cores in /var/xen/vswitch - ovs-ofctl show <bridges> - ovs-ofctl status <bridges> - ovs-ofctl dump-flows <bridges> - ovs-dpctl dump-flows <bridges> This commit also modifies the way cores are handled. They are now enabled by default and placed in "/var/xen/vswitch". Feature #1570
* xenserver: Add dump-vif-details to automakeJustin Pettit2009-06-091-0/+1
|
* Import from old repository commit 61ef2b42a9c4ba8e1600f15bb0236765edc2ad45.v0.90.0Ben Pfaff2009-07-081-0/+19