summaryrefslogtreecommitdiff
path: root/rhel
Commit message (Collapse)AuthorAgeFilesLines
* rhel: Use correct default port for OVN SB databaseLance Richardson2017-03-081-1/+1
| | | | | | | | Fix typo in OVN SB database TCP port number. Fixes: commit 55f36be59122 ("rhel: Firewall service files for OVN.") Signed-off-by: Lance Richardson <lrichard@redhat.com> Signed-off-by: Russell Bryant <russell@ovn.org>
* packaging: Make Fedora spec file CentOS compatibleLeif Madsen2017-03-081-15/+39
| | | | | | | | | | | On CentOS, the package names aren't prefixed with python2, but rather are prefixed with simply python. This change addresses that and fixes up some documentation that was outdated, and updates the Vagrantfile to use the proper spec file and package names. Fixes: bb1a7ca21107 ("fedora: Add python3-openvswitch split package") Signed-off-by: Leif Madsen <lmadsen@redhat.com> Signed-off-by: Russell Bryant <russell@ovn.org>
* rhel: remove duplicate line from rhel/automake.mkLance Richardson2017-03-031-1/+0
| | | | | | Fixes: commit 55f36be59122 ("rhel: Firewall service files for OVN.") Signed-off-by: Lance Richardson <lrichard@redhat.com> Signed-off-by: Joe Stringer <joe@ovn.org>
* rhel-systemd: Document systemd behaviorEelco Chaudron2017-02-271-0/+32
| | | | | | | | | | This is a follow up patch to document the systemd behavior including the change introduced by the "rhel-systemd: Restart openvswitch service if a daemon crashes", still under review. Signed-off-by: Eelco Chaudron <echaudro@redhat.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Russell Bryant <russell@ovn.org>
* rhel-systemd: Restart openvswitch service if a daemon crashesEelco Chaudron2017-02-273-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently if either ovsdb-server or ovs-vswitchd is crashing the daemon is not restarting leaving the system in faulty state. This patch will detect the daemon crash and will restart the openvswitch service. Here is a (bit to wide) table showing the behavior before and after the patch. Note that only the Crash behavior has changed: Before patch: | Process Status | systemctl <> status | | ovs-vswitchd | ovsdb-server | openvswitch | ovs-vswitchd | ovsdb-server | +--------------+--------------+--------------+--------------+--------------+ systemctl start openvswitch* | started | started |active,exited |active,running|active,running| Crash vswitchd | crashed | stopped |inactive, dead|failed |inactive,dead | Crash ovsdb | stopped | crashed |inactive, dead|inactive,dead |failed | systemctl restart openvswitch | re-started | re-started |active,exited |active,running|active,running| systemctl restart ovs-vswitchd | re-started | re-started |active,exited |active,running|active,running| systemctl restart ovsdb-server | re-started | re-started |active,exited |active,running|active,running| systemctl stop openvswitch | stopped | stopped |inactive, dead|inactive,dead |inactive,dead | systemctl stop ovs-vswitchd | stopped | stopped |inactive, dead|inactive,dead |inactive,dead | systemctl stop ovsdb-server | stopped | stopped |inactive, dead|inactive,dead |inactive,dead | systemctl start ovs-vswitchd* | started | started |inactive, dead|active,running|active,running| systemctl start ovsdb-server* | not started | started |inactive, dead|inactive, dead|active,running| With patch: | Process Status | systemctk <> status | | ovs-vswitchd | ovsdb-server | openvswitch | ovs-vswitchd | ovsdb-server | +--------------+--------------+--------------+--------------+--------------+ systemctl start openvswitch* | started | started |active,exited |active,running|active,running| Crash vswitchd | crash,started| re-started |active,exited |active,running|active,running| Crash ovsdb | re-started | crash,started|active,exited |active,running|active,running| systemctl restart openvswitch | re-started | re-started |active,exited |active,running|active,running| systemctl restart ovs-vswitchd | re-started | re-started |active,exited |active,running|active,running| systemctl restart ovsdb-server | re-started | re-started |active,exited |active,running|active,running| systemctl stop openvswitch | stopped | stopped |inactive, dead|inactive,dead |inactive,dead | systemctl stop ovs-vswitchd | stopped | stopped |inactive, dead|inactive,dead |inactive,dead | systemctl stop ovsdb-server | stopped | stopped |inactive, dead|inactive,dead |inactive,dead | systemctl start ovs-vswitchd* | started | started |inactive, dead|active,running|active,running| systemctl start ovsdb-server* | not started | started |inactive, dead|inactive, dead|active,running| * These commands where executed when no ovs related processes where running. All other commands where executed when OVS was successfully running. Signed-off-by: Eelco Chaudron <echaudro@redhat.com> Acked-by: Markos Chandras <mchandras@suse.de> Acked-by: Aaron Conole <aconole@redhat.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Russell Bryant <russell@ovn.org>
* rhel: Add hostname as dependencyJakub Libosvar2017-02-232-2/+2
| | | | | | | | ovs-ctl script uses hostname. This patch adds dependency for rhel systems. Signed-off-by: Jakub Libosvar <libosvar@redhat.com> Signed-off-by: Russell Bryant <russell@ovn.org>
* fedora: Add python3-openvswitch split packageTimothy Redaelli2017-02-231-16/+38
| | | | | | | Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=1412694 Signed-off-by: Timothy Redaelli <tredaelli@redhat.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Russell Bryant <russell@ovn.org>
* rhel: make openvswitch service start return when readyAlan Pevec2017-02-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | In OVS 2.6 openvswitch systemd service was changed to use BindsTo instead of Requires for sub-services but also removed them from After This made main openvswitch service return before sub-services were ready breaking scripts which assumed everything is ready after systemctl start e.g. in OpenStack CI infra [1] is calling ovs-vsctl immediately after service start exposing a race in virtualized CI environment: 2017-02-09T23:11:12.498Z|00007|bridge|INFO|ovs-vswitchd (Open vSwitch) 2.6.1 but ovs-ctl tried to access it few msec too early: 2017-02-09 23:11:12.352493 | ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory) Solution is to add ordering dependencies, BindsTo/Requires do not ensure it [2] [1] https://github.com/openstack-infra/devstack-gate/blob/c435a724bd257b22a2e39e8e9125c11302a8c81d/functions.sh#L1057-L1078 [2] https://www.freedesktop.org/software/systemd/man/systemd.unit.html#Requires= Fixes: 84ad120 ("rhel: Improved Systemd Integration") Signed-off-by: Alan Pevec <alan.pevec@redhat.com> Acked-by: Aaron Conole <aconole@redhat.com> Signed-off-by: Russell Bryant <russell@ovn.org>
* rhel: Fix dpdk-devel version and dependencies in fedora packagerTimothy Redaelli2017-02-101-1/+2
| | | | | | | | | | Now dpdk-devel >= 16.11 is needed and also libpcap-devel numactl-devel Tested on mock with rawhide chroot and Fedora 23 vagrant machine by using the rawhide dpdk and dpdk-devel packages Signed-off-by: Timothy Redaelli <tredaelli@redhat.com> Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
* rhel/ifup: support vhost-user client modeAaron Conole2017-02-102-1/+18
| | | | | | | | | | | | | This adds support for ifup to configure client-mode sockets by exposing two new variables $OVS_PORT_MODE and $OVS_PORT_PATH to the ifcfg scripts. When OVS_PORT_MODE is set to 'client', the OVS_PORT_PATH will be passed as the vhost-server-path option. No change is needed to ifdown because the OVSDPDKVhostUserPort type already has an appropriate entry. Signed-off-by: Aaron Conole <aconole@redhat.com> Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
* rhel: Fix firewalld additions.Russell Bryant2017-02-041-2/+3
| | | | | | | | | | When I updated this patch for v2, I made some mistakes. This fixes them. The first is that we need to create a directory in the rpm build root for the firewalld service files before we can install them there. Second, I made two typos when I updated the patch to use %{_prefix}. Fixes: 55f36be59122 ("rhel: Firewall service files for OVN.") Signed-off-by: Russell Bryant <russell@ovn.org>
* rhel: Firewall service files for OVN.Marcin Mirecki2017-02-034-1/+26
| | | | | | | | | Firewall service files allowing to open firewalld ports required for running OVN Signed-off-by: Marcin Mirecki <mmirecki@redhat.com> Acked-by: Ben Pfaff <blp@ovn.org> Signed-off-by: Russell Bryant <russell@ovn.org>
* rhel: Remove obsolete OVSDPDKVhostPort from ifdown script.Daniele Di Proietto2017-02-031-1/+1
| | | | | | | | The support for vhost cuse port has been removed long ago. Fixes:419876444357("netdev-dpdk: Remove dpdkvhostcuse ports") Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com> Acked-by: Ben Pfaff <blp@ovn.org>
* rhel: Fix ifdown for OVSDPDKBond.Daniele Di Proietto2017-01-301-1/+1
| | | | | | | | The OVSDPDKBond case wasn't handled in the rhel ifdown script. Fixes: f6bf8880613a ("rhel: Add support DPDK port creation via network scripts") Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com> Acked-by: Aaron Conole <aconole@redhat.com>
* rhel: Add missing unpackaged file 'ovs-fields.7.gz' in the %files listNuman Siddique2017-01-302-0/+2
| | | | | | | Fixes: 96fee5e0a2a0 ("ovs-fields: New manpage to document Open vSwitch and OpenFlow fields") Signed-off-by: Numan Siddique <nusiddiq@redhat.com> Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
* OVN: Fix OCF symbolic link lost after ovn-common upgradeGuoshuai Li2016-12-221-1/+4
| | | | | | | | The directory "/usr/lib/ocf/resource.d/ovn/" can only be removed on uninstall. It should not be removed when upgrading. Signed-off-by: Guoshuai Li <ligs@dtdream.com> Signed-off-by: Andy Zhou <azhou@ovn.org>
* doc: Populate 'faq' sectionStephen Finucane2016-12-122-4/+2
| | | | | | | | This is mostly the exact same contents, albeit broken up into multiple files. Signed-off-by: Stephen Finucane <stephen@that.guru> Signed-off-by: Ben Pfaff <blp@ovn.org>
* doc: Move WHY-OVSStephen Finucane2016-12-122-2/+2
| | | | | | | | This is moved separately due to the sheer number of references to this file in the codebase. Signed-off-by: Stephen Finucane <stephen@that.guru> Signed-off-by: Ben Pfaff <blp@ovn.org>
* doc: Populate 'topics' sectionStephen Finucane2016-12-122-2/+2
| | | | | | | | | | | There are many docs that don't need to kept at the top level, along with many more hidden in random folders. Move them all. This also allows us to add the '-W' flag to Sphinx, ensuring unindexed docs result in build failures. Signed-off-by: Stephen Finucane <stephen@that.guru> Signed-off-by: Ben Pfaff <blp@ovn.org>
* doc: Further populate the 'howto' sectionStephen Finucane2016-12-121-1/+1
| | | | | | | | | There are a couple of references to these for various build systems. The website is going to be our "one true resource" for all docs, so simply remove these references. Signed-off-by: Stephen Finucane <stephen@that.guru> Signed-off-by: Ben Pfaff <blp@ovn.org>
* doc: Populate 'install', 'howto' sectionsStephen Finucane2016-12-122-4/+4
| | | | | | | | | This is a dumb move of all 'INSTALL*' docs, with very little refactoring (mostly updating links and making the titles a little more consistent. Additional refactoring will be done in subsequent changes. Signed-off-by: Stephen Finucane <stephen@that.guru> Signed-off-by: Ben Pfaff <blp@ovn.org>
* rpms: Remove more OVN files form openvswitch rpm buildsAndy Zhou2016-12-091-1/+1
| | | | | | | | | OVN is packaged with openvswitch-fedora.spec.in, but not with openvswitch.spec.in. Remove OVN files from openvswitch.spec.in builds to make rpm build happy. Signed-off-by: Andy Zhou <azhou@ovn.org> Acked-by: Russell Bryant <russell@ovn.org>
* rhel: Add EnvironmentFile for ovn services.Russell Bryant2016-11-283-6/+22
| | | | | | | | | | | | | | A previous commit documented how you do this using systemd native interfaces for customizing services. However, it seems that some people still would rather see environment variables specified through an old-style sysconfig file. It seems harmless enough to provide, so this patch adds it. The "-" prefix to the filename means that systemd will ignore this setting if the file does not exist and will not report any error. Signed-off-by: Russell Bryant <russell@ovn.org> Acked-by: Simon Horman <simon.horman@netronome.com>
* rhel: fix ovn-common rpm installation failureLance Richardson2016-11-221-1/+1
| | | | | | | | | | | | | | The directory /usr/lib/ocf/ does not exist if the pacemaker package has not been installed, which causes installation of the ovn-common rpm to fail on "mkdir /usr/lib/ocf/resource.d/ovn". Allow for the possibility that /usr/lib/ocf does not exist by using "mkdir -p". Fixes: a4245b7869c8 ("ovn: Add ovn db servers ocf script in fedora packager") Signed-off-by: Lance Richardson <lrichard@redhat.com> Acked-by: Babu Shanmugam <bschanmu@redhat.com> Tested-by: Babu Shanmugam <bschanmu@redhat.com> Signed-off-by: Simon Horman <simon.horman@netronome.com>
* rhel: support enable/disable of ovn servicesLance Richardson2016-11-223-0/+9
| | | | | | | | | | | | OVN services (northd, ovn-controller, ovn-controller-vtep) cannot currently be enabled/disabled to start automatically on boot. Add [Install] section for these services to allow them to be enabled and disabled. Reported-by: Mor Kalfon <mkalfon@redhat.com> Signed-off-by: Lance Richardson <lrichard@redhat.com> Signed-off-by: Simon Horman <simon.horman@netronome.com>
* ovn: Add ovn db servers ocf script in fedora packagerBabu Shanmugam2016-11-181-0/+8
| | | | | | | | | | | | The OCF script will be present in the ovn-common package and installed in the openvswitch scripts folder. A symbolic link to this file will be created in the OCF resources folder. The OCF resource agent name for this resource is ocf:ovn:ovndb-servers Signed-off-by: Babu Shanmugam <bschanmu@redhat.com> Acked-by: Andy Zhou <azhou@ovn.org> Signed-off-by: Andy Zhou <azhou@ovn.org>
* rhel: Support ovn-ctl args through env vars.Russell Bryant2016-11-173-8/+29
| | | | | | | | | | | | | | | | | Update the systemd units for ovn-controller and ovn-northd to support passing additional arguments to the ovn-ctl scripts through environment variables. Also add some documentation to the top of these files that describes how to specify these environment variables in systemd configuration files. Add similar documentation to the top of the ovn-controller-vtep system unit to describe how to specify environment variables for options passed to ovn-controller-vtep. Signed-off-by: Russell Bryant <russell@ovn.org> Co-authored-by: Babu Shanmugam <bschanmu@redhat.com> Signed-off-by: Babu Shanmugam <bschanmu@redhat.com> Acked-by: Simon Horman <simon.horman@netronome.com>
* rhel: python-six is required in the build processgwind2016-11-111-0/+1
| | | | | | | | | | | | | | | | | | the build error log is: ``` Traceback (most recent call last): Traceback (most recent call last): File "./ovsdb/ovsdb-idlc.in", line 8, in <module> import ovs.json File "/root/rpmbuild/BUILD/openvswitch-2.6.1/python/ovs/json.py", line 21, in <module> import six ImportError: No module named six ``` Submitted-at: https://github.com/openvswitch/ovs/pull/162 Signed-off-by: Jian Li <lijian@ooclab.com> Signed-off-by: Russell Bryant <russell@ovn.org>
* doc: Convert INSTALL.SSL to rSTStephen Finucane2016-11-032-2/+2
| | | | | Signed-off-by: Stephen Finucane <stephen@that.guru> Signed-off-by: Russell Bryant <russell@ovn.org>
* doc: Convert rhel/README.RHEL to rSTStephen Finucane2016-11-035-270/+305
| | | | | | | This is a top-level document, so plain old rST is preferred. Signed-off-by: Stephen Finucane <stephen@that.guru> Signed-off-by: Russell Bryant <russell@ovn.org>
* doc: Convert DESIGN to rSTStephen Finucane2016-11-032-2/+2
| | | | | | | This is a top-level document, so plain old rST is preferred. Signed-off-by: Stephen Finucane <stephen@that.guru> Signed-off-by: Russell Bryant <russell@ovn.org>
* doc: Convert FAQ to rSTStephen Finucane2016-10-292-2/+2
| | | | | Signed-off-by: Stephen Finucane <stephen@that.guru> Signed-off-by: Russell Bryant <russell@ovn.org>
* doc: Convert README-native-tunneling to rSTStephen Finucane2016-10-281-1/+1
| | | | | Signed-off-by: Stephen Finucane <stephen@that.guru> Signed-off-by: Russell Bryant <russell@ovn.org>
* 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>