forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fedora package: fix systemd ordering and deps.
There is a chicken and egg issue where common OVS configuration uses a controller which is only accessible via the network. So starting OVS before network.target would break those configurations. However, the network doesn't come up after boot because OVS isn't started until after the network scripts tries to configure the ovs. This is partially fixed by commits: commit: 6024530 rhel: Automatically start openvswitch service before bringing an ovs interfa commit: 3214851 rhel: Add OVSREQUIRES to automatically bring up OpenFlow interface dependencies But still there is the dependency issue between network.target and openvswitch which this patch fixes it. It provides two systemd service units. One to run at any time (openvswitch-nonetwork.service) which runs 'ovs-ctl start' and the other one (openvswith.service) to run after network.target which works as a frontend to the admin. The openvswitch-nonetwork.service is used internally by the 'ifup-ovs/ifdown-ovs' scripts when adding or removing ports to the bridge or when the openvswitch.service is enabled by the admin. Signed-off-by: Flavio Leitner <[email protected]> Signed-off-by: Gurucharan Shetty <[email protected]>
- Loading branch information
Showing
7 changed files
with
67 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Unit] | ||
Description=Open vSwitch Internal Unit | ||
After=syslog.target | ||
PartOf=openvswitch.service | ||
Wants=openvswitch.service | ||
|
||
[Service] | ||
Type=oneshot | ||
RemainAfterExit=yes | ||
EnvironmentFile=-/etc/sysconfig/openvswitch | ||
ExecStart=/usr/share/openvswitch/scripts/ovs-ctl start \ | ||
--system-id=random $OPTIONS | ||
ExecStop=/usr/share/openvswitch/scripts/ovs-ctl stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
### Configuration options for openvswitch | ||
# | ||
# Enable core files: | ||
# --force-corefiles=yes | ||
# | ||
# Set "nice" priority at which to run ovsdb-server: | ||
# --ovsdb-server-priority=-10 | ||
# | ||
# Set "nice" priority at which to run ovsdb-vswitchd: | ||
# --ovs-vswitchd-priority=-10 | ||
# | ||
# Pass or not --mlockall option to ovs-vswitchd. | ||
# This option should be set to "yes" or "no". The default is "yes". | ||
# Enabling this option can avoid networking interruptions due to | ||
# system memory pressure in extraordinary situations, such as multiple | ||
# concurrent VM import operations. | ||
# --mlockall=yes | ||
# | ||
# Use valgrind: | ||
# --ovs-vswitchd-wrapper=valgrind | ||
# --ovsdb-server-wrapper=valgrind | ||
# | ||
OPTIONS="" |