Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fedora.spec: Create openvswitch-ovn package.
This patch creates a new subpackage for OVN, openvswitch-ovn. It also installs systemd unit files for ovn-controller and ovn-northd. If you want to run ovn-controller: # systemctl start ovn-controller If you want to run ovn-northd: # systemctl start ovn-northd Both systemd units are currently set to depend on openvswitch. If further ovsdb initialization is required for the OVN databases before ovn-northd can start, that will be handled automatically by ovn-ctl when you start the ovn-northd service. This currently assumes that ovn-northd runs on the same host as ovsdb-server that is hosting the OVN databases. That seems like a reasonable assumption in the current architecture and can be evolved later when needed. Signed-off-by: Russell Bryant <rbryant@redhat.com> CC: Flavio Leitner <fbl@redhat.com> CC: Ben Pfaff <blp@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
- Loading branch information
Showing
4 changed files
with
104 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[Unit] | ||
Description=OVN controller daemon | ||
After=syslog.target | ||
Requires=openvswitch.service | ||
After=openvswitch.service | ||
|
||
[Service] | ||
Type=simple | ||
RuntimeDirectory=ovn-controller | ||
RuntimeDirectoryMode=0755 | ||
PIDFile=%t/ovn-controller/ovn-controller.pid | ||
Environment=OVS_RUNDIR=%t/ovn-controller | ||
ExecStart=/usr/bin/ovn-controller -vconsole:emer -vsyslog:err -vfile:info \ | ||
--log-file=/var/log/openvswitch/ovn-controller.log \ | ||
--no-chdir --pidfile=%t/ovn-controller/ovn-controller.pid \ | ||
unix:/var/run/openvswitch/db.sock |
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,15 @@ | ||
[Unit] | ||
Description=OVN northd management daemon | ||
After=syslog.target | ||
Requires=openvswitch.service | ||
After=openvswitch.service | ||
|
||
[Service] | ||
Type=oneshot | ||
RemainAfterExit=yes | ||
RuntimeDirectory=ovn-northd | ||
RuntimeDirectoryMode=0755 | ||
PIDFile=%t/ovn-northd/ovn-northd.pid | ||
Environment=OVN_RUNDIR=%t/ovn-northd OVS_RUNDIR=%t/openvswitch OVS_DBDIR=/var/lib/openvswitch | ||
ExecStart=/usr/share/openvswitch/scripts/ovn-ctl start_northd | ||
ExecStop=/usr/share/openvswitch/scripts/ovn-ctl stop_northd |