summaryrefslogtreecommitdiff
path: root/rhel
Commit message (Collapse)AuthorAgeFilesLines
* doc: Convert WHY-OVS to rSTStephen Finucane2016-10-262-2/+2
| | | | | Signed-off-by: Stephen Finucane <stephen@that.guru> Signed-off-by: Russell Bryant <russell@ovn.org>
* doc: Convert README to rSTStephen Finucane2016-10-212-2/+2
| | | | | Signed-off-by: Stephen Finucane <stephen@that.guru> Signed-off-by: Russell Bryant <russell@ovn.org>
* fedora: do not restart the service on a pkg upgradeFlavio Leitner2016-10-201-6/+2
| | | | | | | | | | | | | | There is no reliable way to restore the previous networking state after a service restart. Many things like firewall configuration, traffic shaping, stacked devices, custom setups are completely out of OVS control. The OVS might be providing the network used for remote administration, so do not automatically restart the service during a package upgrade. Signed-off-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: Russell Bryant <russell@ovn.org>
* doc: Convert INSTALL.DPDK to rSTStephen Finucane2016-10-182-2/+2
| | | | | Signed-off-by: Stephen Finucane <stephen@that.guru> Signed-off-by: Russell Bryant <russell@ovn.org>
* rhel-systemd: Delay shutting down the servicesAaron Conole2016-10-143-2/+6
| | | | | | | | | | | | | | During testing it was found that systemd would consider the openvswitch service as a part of networking component, but the dependent services of ovs-vswitchd and ovsdb-server were not likewise considered. This leads to some strange race conditions, observed when using NFS over TCP, while shutting down systems. Fixes: 84ad12083491 ("rhel: Improved Systemd Integration") Co-authored-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: Aaron Conole <aconole@redhat.com> Signed-off-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: Russell Bryant <russell@ovn.org>
* rhel: add option to run kernel datapath test when building rpmsLance Richardson2016-09-092-2/+38
| | | | | | | | | | | | | | Add ability to execute kernel datapath tests when building rpms. These tests are disabled by default, and can optionally be run by providing "--with check_datapath_kernel" on the rpmbuild command line. This is intended to facilitate automated testing, and should not be used in production environments (it is generally not recommended to run rpmbuild as root). Suggested-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Lance Richardson <lrichard@redhat.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Russell Bryant <russell@ovn.org>
* rhel: build source rpm packagesLance Richardson2016-09-091-2/+2
| | | | | | | | | Build source RPM packages for rpm-fedora and rpm-fedora-kmod targets. Signed-off-by: Lance Richardson <lrichard@redhat.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Russell Bryant <russell@ovn.org>
* rhel: Include ovn-trace in ovn-common packageBabu Shanmugam2016-08-231-0/+2
| | | | | | | | Include the ovn-trace binary and it's man page in ovn-common package Fixes: 4acd1e87a8bf ("ovn-trace: New utility.") Signed-off-by: Babu Shanmugam <bschanmu@redhat.com> Signed-off-by: Russell Bryant <russell@ovn.org>
* netdev-dpdk: Remove dpdkvhostcuse portsCiara Loftus2016-08-152-9/+0
| | | | | | | | | | | | | | | | | | | This commit removes the 'dpdkvhostcuse' port type from the userspace datapath. vhost-cuse ports are quickly becoming obsolete as the vhost-user port type begins to support a greater feature-set thanks to the addition of things like vhost-user multiqueue and potential upcoming features like vhost-user client-mode and vhost-user reconnect. The feature is also expected to be removed from DPDK soon. One potential drawback of the removal of this support is that a userspace vHost port type is not available in OVS for use with older versions of QEMU (pre v2.2). Considering v2.2 is nearly two years old this should however be a low impact change. Signed-off-by: Ciara Loftus <ciara.loftus@intel.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Acked-by: Daniele Di Proietto <diproiettod@vmware.com> Acked-by: Ilya Maximets <i.maximets@samsung.com>
* rhel: Add support for DPDK BondFlavio Leitner2016-08-122-3/+25
| | | | | | | | The current ifcfg file lacks support for OVS DPDK Bond. Reviewed-by: Aaron Conole <aconole@redhat.com> Signed-off-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
* rhel: Improved Systemd IntegrationAaron Conole2016-08-106-13/+37
| | | | | | | | | | | | | This commit builds upon some of the recent ovs-ctl changes to build a more integrated systemd setup. A new service (ovs-vswitchd) is added to track the ovs-vswitchd, and ovsdb-server service is reserved for the ovsdb-server daemon. The systemd scripts still use ovs-ctl to actually initialize the daemons. Signed-off-by: Aaron Conole <aconole@redhat.com> Acked-by: Markos Chandras <mchandras@suse.de> Acked-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: Russell Bryant <russell@ovn.org>
* rhel/ovsdb-server.service: Rename the nonetwork serviceAaron Conole2016-08-106-11/+11
| | | | | | | | | | | | | | | Currently, openvswitch.service calls out to start openvswitch-nonetwork.service. However, openvswitch-nonetwork.service will be called ovsdb-server, so that it is a bit more reflective of the dependencies. This commit does make the file a bit of a misnomer as currently the ovsdb-server SERVICE will start the ovs-vswitchd service as well. A future commit will clean this up, and change the ifup configuration in the process. Signed-off-by: Aaron Conole <aconole@redhat.com> Acked-by: Markos Chandras <mchandras@suse.de> Acked-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: Russell Bryant <russell@ovn.org>
* netdev-dpdk: Make libnuma dependencies optionalCiara Loftus2016-08-041-2/+0
| | | | | | | | | | Prior to this patch, OVS with DPDK required the libnuma packages to build. This patch removes this dependency, making it only a requirement when the CONFIG_RTE_LIBRTE_VHOST_NUMA option is detected as enabled in the DPDK build. Signed-off-by: Ciara Loftus <ciara.loftus@intel.com> Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
* fedora.spec: Add OVN include files.William Tu2016-08-031-0/+1
| | | | | | | | | | | | | | Current 'make rpm-fedora' fails due to files exists in $RPM_BUILD_ROOT directory but not found in the %files section, resulting in errors below: RPM build errors: Installed (but unpackaged) file(s) found: /usr/include/ovn/actions.h /usr/include/ovn/expr.h /usr/include/ovn/lex.h The patch fixes it and tested with rpmbuild 4.13.0 under Fedora 23. Signed-off-by: William Tu <u9012063@gmail.com> Signed-off-by: Russell Bryant <russell@ovn.org>
* fedora: Prioritize OVS modules in weak-updates.Joe Stringer2016-07-291-0/+2
| | | | | | | | | | | | | | | | | Out-of-tree modules are installed into the kernel's "extra" modules directory for the version that kmod-openvswitch is compiled against. For all other kernels on the system at install time, a symlink is created in the "weak-updates" directory. This provides a path for the same kernel module to be used when minor kernel updates are done on a system. However, without updating the depmod configuration the weak-update will not be prioritized, so modprobe will switch back to using upstream kernel modules when you upgrade. This patch introduces that depmod configuration to ensure that the out-of-tree module is always used when it is installed, regardless of kernel upgrades. Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Pravin B Shelar <pshelar@ovn.org> Acked-by: Flavio Leitner <fbl@sysclose.org>
* rhel: Prioritize our vport-foo modules in depmod.Joe Stringer2016-07-291-4/+10
| | | | | | | | | | | | | We've done the same for openvswitch.ko previously, but we really should be doing this for vport modules as well; otherwise, depmod may try to pair upstream vport modules with the out-of-tree openvswitch module (leading to depmod warnings on package install, and failure to load the module at runtime). VMware-BZ: #1700293 Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Pravin B Shelar <pshelar@ovn.org> Acked-by: Flavio Leitner <fbl@sysclose.org>
* rhel: Fix ifup-ovs to delete ports first.Flavio Leitner2016-07-281-8/+31
| | | | | | | | | | | | | | | When ifdown isn't executed (system didn't shut down properly), ports remain in the openvswitch's database. In that case, an inconsitency is left behind when the ifcfg was modified because ovs-vsctl won't do anything to update existing port's configuration in the database. The ifup/ifdown will operate only on configured interfaces, so this patch fixes the issue by deleting the port from the database before attempt to configure it with fresh configuration. Signed-off-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: Joe Stringer <joe@ovn.org>
* rhel/openvswitch.spec: Add SELinux policy.Joe Stringer2016-07-261-0/+27
| | | | | | | | | | | | | Commit 9b897c9125ef ("rhel: provide our own SELinux custom policy package") added the SELinux policy to the fedora packaging as a subpackage. This patch makes the corresponding change to openvswitch.spec, so that users of that specfile can generate the selinux policy package without having to build all of the fedora packages. VMware-BZ: #1692972 Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Flavio Leitner <fbl@sysclose.org>
* packaging: Remove PyQt4 dependency.Joe Stringer2016-07-151-1/+1
| | | | | | | | This doesn't seem to have been necessary since ovsdbmonitor was removed in commit 7868fbc6c97c ("ovsdbmonitor: Remove."). Drop the dependency. Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
* rhel: Fix RHEL package build breakageAnsis Atteka2016-06-241-0/+2
| | | | | | | | | | | | | This patch fixes following error: error: Installed (but unpackaged) file(s) found: /usr/bin/ovs-tcpdump /usr/share/man/man8/ovs-tcpdump.8.gz Signed-off-by: Ansis Atteka <aatteka@ovn.org> Acked-by: Daniele Di Proietto <diproiettod@vmware.com> Acked-by: Russell Bryant <russell@ovn.org> Acked-by: Aaron Conole <aconole@redhat.com>
* fedora: Add pcap, tcpdump and tcpundump utilities to testAaron Conole2016-06-231-4/+6
| | | | | | | | | | The openvswitch-test package is setup for enabling / performing tests for openvswitch setups. Adding these utilities would enable a richer set of debugging utilities for performing diagnostics. Signed-off-by: Aaron Conole <aconole@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Flavio Leitner <fbl@sysclose.org>
* netdev-dpdk: NUMA Aware vHost UserCiara Loftus2016-06-171-0/+2
| | | | | | | | | | | | | | | | | | This commit allows for vHost User memory from QEMU, DPDK and OVS, as well as the servicing PMD, to all come from the same socket. The socket id of a vhost-user port used to be set to that of the master lcore. Now it is possible to update the socket id if it is detected (during VM boot) that the vhost device memory is not on this node. If this is the case, a new mempool is created from the new node, and the PMD thread currently servicing the port will no longer, in favour of a thread from the new node (if enabled in the pmd-cpu-mask). To avail of this functionality, one must enable the CONFIG_RTE_LIBRTE_VHOST_NUMA DPDK configuration option. Signed-off-by: Ciara Loftus <ciara.loftus@intel.com> Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
* debian, rhel: Ship ovs shared libraries and header filesEdwin Chiu2016-06-071-2/+35
| | | | | | | | | | Compile and package ovs shared libraries and create new header package for debian (openvswitch-dev) and rhel (openvswitch-devel). VMware-BZ: #1556299 Signed-off-by: Edwin Chiu <echiu@vmware.com> Co-authored-by: Harold Lim <haroldl@vmware.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
* rhel: Packaging for OVN is split as per functionalitybschanmu@redhat.com2016-03-241-27/+121
| | | | | | | | | | rhel packaging for OVN is split to host(controller), central(northd), common(command line utilities) and docker(docker network plugin). This is similar to OVN packaging for Debian. Signed-off-by: Babu Shanmugam <bschanmu@redhat.com> [russell@ovn.org Updated INSTALL.Fedora.md] Signed-off-by: Russell Bryant <russell@ovn.org>
* rhel: Don't package ovs-testcontroller with ovn.Russell Bryant2016-03-171-1/+0
| | | | | | | | | This was a mistake. ovs-testcontroller was duplicated in the ovn package. It's already in the main openvswitch package, where it belongs. Signed-off-by: Russell Bryant <russell@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
* rhel: Use ovn-ctl to ovn-controller servicebschanmu@redhat.com2016-03-083-10/+4
| | | | | | | | Trying to revert the changes caused by 8520deefbf208b24518c2bf67baad6d230f39dc0 to travis build failures Signed-off-by: Babu Shanmugam <bschanmu@redhat.com> Signed-off-by: Russell Bryant <russell@ovn.org>
* Use 'RUNDIR' from make for rhel/ovn-controller.servicebschanmu@redhat.com2016-03-073-2/+6
| | | | | | | | | | Perviously it was using the platform's runtime directory which can be different from the runtime directory of ovsdb-server started by the openvswitch service Signed-off-by: Babu Shanmugam <bschanmu@redhat.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Russell Bryant <russell@ovn.org>
* rhel: Add 'rpm-fedora' and 'rpm-fedora-kmod' targetsLance Richardson2016-02-291-0/+18
| | | | | | | | | | | Add make targets for Fedora and RHEL7 RPMs, update INSTALL.Fedora.md to document their use Added distribution tarball and rpm build directory to .gitignore. Signed-off-by: Lance Richardson <lrichard@redhat.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Ben Pfaff <blp@ovn.org>
* fedora: include ovs-save file in the rpm packageAnsis Atteka2016-02-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | Otherwise, "ovs-ctl force-reload-kmod ..." command fails with: Detected internal interfaces: br-int p1 [ OK ] Saving flows /usr/share/openvswitch/scripts/ovs-ctl: line 267: /usr/share/openvswitch/scripts/ovs-save: No such file or directory [FAILED] Exiting ovsdb-server (3228) [ OK ] Starting ovsdb-server [ OK ] Configuring Open vSwitch system IDs [ OK ] Exiting ovs-vswitchd (3243) [ OK ] Saving interface configuration /usr/share/openvswitch/scripts/ovs-ctl: line 294: /usr/share/openvswitch/scripts/ovs-save: No such file or directory [FAILED] Failed to save configuration, not replacing kernel module ... (warning). Starting ovs-vswitchd [ OK ] Enabling remote OVSDB managers [ OK ] Signed-off-by: Ansis Atteka <ansisatteka@gmail.com> Reported-by: Sanal Pillai <sanalp@vmware.com> Acked-by: Ben Pfaff <blp@ovn.org>
* rhel: provide our own SELinux custom policy packageAnsis Atteka2016-02-251-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CentOS, RHEL and Fedora distributions ship with their own Open vSwitch SELinux policy that is too strict and prevents Open vSwitch to work normally out of the box. As a solution, this patch introduces a new package which will "loosen" up "openvswitch_t" SELinux domain so that Open vSwitch could operate normally. Intended use-cases of this package are: 1. to allow users to install newer Open vSwitch on already released Fedora, RHEL and CentOS distributions where the default Open vSwitch SELinux policy that shipped with the corresponding Linux distribution is not up to date and did not anticipate that a newer Open vSwitch version might need to invoke new system calls or need to access certain system resources that it did not before; And 2. to provide alternative means through which Open vSwitch developers can proactively fix SELinux related policy issues without waiting for corresponding Linux distribution maintainers to update their central Open vSwitch SELinux policy. This patch was tested on Fedora 23 and CentOS 7. I verified that now on Fedora 23 Open vSwitch can create a NetLink socket; and that I did not see following error messages: vlog|INFO|opened log file /var/log/openvswitch/ovs-vswitchd.log ovs_numa|INFO|Discovered 2 CPU cores on NUMA node 0 ovs_numa|INFO|Discovered 1 NUMA nodes and 2 CPU cores reconnect|INFO|unix:/var/run/openvswitch/db.sock: connecting... reconnect|INFO|unix:/var/run/openvswitch/db.sock: connected netlink_socket|ERR|fcntl: Permission denied dpif_netlink|ERR|Generic Netlink family 'ovs_datapath' does not exist. The Open vSwitch kernel module is p robably not loaded. dpif|WARN|failed to enumerate system datapaths: Permission denied dpif|WARN|failed to create datapath ovs-system: Permission denied I did not test all Open vSwitch features so there still could be some OVS configuration that would get "Permission denied" errors. Since, Open vSwitch daemons on Ubuntu 15.10 by default run under "unconfined" SELinux domain, then there is no need to create a similar debian package for Ubuntu, because it works on default Ubuntu installation. Signed-off-by: Ansis Atteka <aatteka@nicira.com> Acked-by: Flavio Leitner <fbl@sysclose.com>
* tests: Add ability to automatically rerun failed tests.Ben Pfaff2016-02-242-4/+2
| | | | | | | | A lot of packaging was doing this already, so this simplifies their implementation. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Andy Zhou <azhou@ovn.org>
* rhel: Add missing ovn bugtool filesFlavio Leitner2016-02-231-0/+3
| | | | | | | Fixes: 981cbd52c942 ("ovs-bugtool: Create OVN plugin and add output.") Signed-off-by: Flavio Leitner <fbl@redhat.com> Acked-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: Russell Bryant <russell@ovn.org>
* ovs-benchmark: Remove.Ben Pfaff2016-02-052-7/+3
| | | | | | | | This utility was completely broken and no one noticed for the time of a full release, so I think that's a safe sign that we should remove it. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Jarno Rajahalme <jarno@ovn.org>
* rhel: Add '--with dpdk' spec option to build DPDK-enabled packagesPanu Matilainen2016-02-051-0/+9
| | | | | | | | | | Requires DPDK >= 2.2 as that is the first version to have a standard install layout which we can discover without help from user. Additionally document the option in INSTALL.Fedora.md. Signed-off-by: Panu Matilainen <pmatilai@redhat.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Ben Pfaff <blp@ovn.org>
* rhel: Make openvswitch-kmod-fedora.spec build.Russell Bryant2016-01-291-9/+15
| | | | | | | | | | | | | | | | | | | | | | | | I tried building this package on Fedora 23 and it failed for a couple of different reasons. This package tried to install modules without specifying the rpm build root as an install prefix. The result was just attempting to install the modules on the system, which luckily failed since I wasn't running rpmbuild as root. The package also then tried to manually install the modules into the rpm build root, which is unnecessary once modules_install is pointed to the right place. Finally, the package build failed with a completely unhelpful error which turned out to be because it didn't know how to generate a debuginfo pacakge. I turned off the debug package for now. At least it builds now, which is an improvement. Signed-off-by: Russell Bryant <russell@ovn.org> Suggested-by: Flavio Leitner <fbl@redhat.com> Acked-by: Flavio Leitner <fbl@redhat.com> Acked-by: Gurucharan Shetty <guru@ovn.org>
* python: Fix xmlrpclib imports.Russell Bryant2016-01-202-2/+3
| | | | | | | | | | | | | | Fix imports of xmlrpclib to be compatible with Python 3. Python 2 had xmlrpclib (client) and SimpleXMLRPCServer (server). In Python 3, these have been renamed to xmlrpc.client and xmlrpc.server. The solution implemented here is to use the six library. It may seem excessive for this particular issue, but the six library provides helpers for Python 2 and 3 compatibility for many different issues. This is just the first of many uses of the six library. Signed-off-by: Russell Bryant <russell@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
* rhel: Add support DPDK port creation via network scriptsPanu Matilainen2015-12-223-3/+69
| | | | | | | | | | Add support for creating a userspace bridge and the four DPDK port types via network scripts + basic documentation. Signed-off-by: Panu Matilainen <pmatilai@redhat.com> Acked-by: Aaron Conole <aconole@redhat.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Ben Pfaff <blp@ovn.org>
* rpms: %exclude has side-effects, remove the files from buildroot insteadPanu Matilainen2015-11-252-20/+17
| | | | | | | | | | | | Due to the way debuginfo package creation is done in existing rpm versions, its better to physically remove any non-packaged files from the buildroot, using %exclude for the purposes causes artifacts like broken symlinks in the -debuginfo packages. Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=1281913 Signed-off-by: Panu Matilainen <pmatilai@redhat.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Ben Pfaff <blp@ovn.org>
* Add Docker integration for OVN.Gurucharan Shetty2015-11-131-0/+2
| | | | | | | | | | | | | | | | Docker multi-host networking is now part of Docker 1.9. This commit adds two drivers for OVN integration with Docker. The first driver is a pure overlay driver that does not need OpenStack integration. The second driver needs OVN+OpenStack. The description of the Docker API exists here: https://github.com/docker/libnetwork/blob/master/docs/remote.md Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@ovn.org>
* RHEL: create /etc/openvswitch directoryAnsis Atteka2015-10-081-0/+1
| | | | | | | | | | | | | | This directory needs to be created by the package manager because ovs-ctl is being invoked from SElinux openvswitch domain that does not have enough privileges to create directories under /etc on its own. Without this patch Open vSwitch is not able to start under SElinux enforcing mode (which is default on CentOS by the way). Signed-off-by: Ansis Atteka <aatteka@nicira.com> Ackedy-by: Kyle Mestery <mestery@mestery.com> Acked-by: Flavio Leitner <fbl@sysclose.org>
* rhel: Add optional BuildRequires to libcap-ngFlavio Leitner2015-10-021-1/+16
| | | | | | | | | | | | | | | | | Commit e91b927d8 (lib/daemon: support --user option for all OVS daemon) added optional usage of the libcap-ng library. It's packaged in Fedora, so go ahead and added it by default to the Fedora spec file. Our default systemd unit files don't make use of the --user option that requires this library, but conceivably someone may want to customize them and use this option. For those that don't want to use --user option, the Fedora package offers an option (--without libcapng) to build the RPMs without it. Signed-off-by: Flavio Leitner <fbl@redhat.com> Acked-by: Russell Bryant <rbryant@redhat.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* rpms: Remove ovs-sim man page from spec.Gurucharan Shetty2015-09-181-1/+0
| | | | | Reported-by: 张强 <zhangqiang@meizu.com> Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
* rhel: Make python 2.7 a requirement of build.Gurucharan Shetty2015-09-181-1/+1
| | | | | Reported-by: 张强 <zhangqiang@meizu.com> Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
* rhel: s/OVN_DB/OVS_DB/ in ovn-controller unit.Russell Bryant2015-09-091-5/+6
| | | | | | | | | | | | I added a variable called OVN_DB, but had mixed up what this parameter to ovn-controller was for. This parameter is the location of the db for the local ovs-vswitchd. It then gets the OVN database location from *that* db. It seems fine to keep the env var in case someone needs to override it for some reason, but correct the name and description of what it is. Signed-off-by: Russell Bryant <rbryant@redhat.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* rhel: Add variables for OVN and VTEP db locations.Russell Bryant2015-08-282-3/+29
| | | | | | | | | | | | Most real deployments will need to customize the database locations for ovn-controller and ovn-controller-vtep. Instead of making them override the entire command used to start the daemons, provide and document some environment variables that can be overridden in a custom config file. Signed-off-by: Russell Bryant <rbryant@redhat.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Ben Pfaff <blp@nicira.com>
* rhel: Add systemd suport for ovn-controller-vtep.Russell Bryant2015-08-283-1/+22
| | | | | | Signed-off-by: Russell Bryant <rbryant@redhat.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Ben Pfaff <blp@nicira.com>
* rhel: Use same rundir for ovs and ovn.Russell Bryant2015-08-283-12/+4
| | | | | | | | | | | | | The previous systemd units for OVN had systemd create a rundir for each daemon (ovn-northd and ovn-controller). This "worked", in that the services did start successfully. However, they didn't actually work. In practice, both services make use of files in the main ovs rundir, so just run everything from there. It keeps things simple and makes the services actually work. Signed-off-by: Russell Bryant <rbryant@redhat.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Ben Pfaff <blp@nicira.com>
* ovn-northd: Add man page describing daemon.Justin Pettit2015-08-251-0/+1
| | | | | Signed-off-by: Justin Pettit <jpettit@nicira.com> Acked-by: Russell Bryant <rbryant@redhat.com>
* rhel: Define rundir for older distros.Flavio Leitner2015-08-211-0/+6
| | | | | | | | | Some older distros might not define _rundir yet so in this case the RPM build breaks. This patch defines it to Fedora's default. Signed-off-by: Flavio Leitner <fbl@redhat.com> Acked-by: Russell Bryant <rbryant@redhat.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* rhel: add installed but not packaged OVN toolsFlavio Leitner2015-08-141-0/+4
| | | | | | | | | | | | This patch adds the following to OVN %files: /usr/bin/ovn-controller-vtep /usr/bin/ovn-sbctl /usr/share/man/man8/ovn-controller-vtep.8.gz /usr/share/man/man8/ovn-sbctl.8.gz Signed-off-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: Justin Pettit <jpettit@nicira.com> Acked-by: Russell Bryant <rbryant@redhat.com>