summaryrefslogtreecommitdiff
path: root/debian/openvswitch-switch.README.Debian
diff options
context:
space:
mode:
authorGurucharan Shetty <gshetty@nicira.com>2014-07-11 14:50:50 -0700
committerGurucharan Shetty <gshetty@nicira.com>2014-07-15 15:05:54 -0700
commit9a8b5cc1a3d941c0e33f3f5b5ac260a35a8130af (patch)
tree11ab09895d10b0c7cf6a28ccdfbcd31dad08748f /debian/openvswitch-switch.README.Debian
parent5b245e73d61eddc985180888f6044a1029f148a5 (diff)
downloadopenvswitch-9a8b5cc1a3d941c0e33f3f5b5ac260a35a8130af.tar.gz
debian: Automatically start openvswitch before first invocation of ovs-vsctl.
In the 'interfaces' file, if an admin adds the openvswitch interface in 'auto', ifupdown will try to create OVS interfaces even before openvswitch has started. In a case like that, assume that the admin knows what he is doing and try to start openvswitch. The negatives I see are 1. /usr is NFS mounted, in which case expect the admin to mount it through initramfs. 2. syslog through network may not be accessible. This is similar to what rhel does with commit 602453000e28ec10 (rhel: Automatically start openvswitch service before bringing an ovs interface up or down) Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'debian/openvswitch-switch.README.Debian')
-rw-r--r--debian/openvswitch-switch.README.Debian27
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/openvswitch-switch.README.Debian b/debian/openvswitch-switch.README.Debian
index a0138f916..5f8f82334 100644
--- a/debian/openvswitch-switch.README.Debian
+++ b/debian/openvswitch-switch.README.Debian
@@ -204,3 +204,30 @@ ex 8: Create and destroy bridges.
ifup --allow=ovs $list_of_bridges
ifdown --allow=ovs $list_of_bridges
+
+Notes on dependencies:
+---------------------
+
+openvswitch-switch depends on $network, $named $remote_fs and $syslog to start.
+This creates some startup dependency issues.
+
+* Since openvswitch utilities are placed in /usr and /usr can be mounted
+through NFS, openvswitch has to start after it. But if a user uses openvswitch
+for all his networking needs and hence to mount NFS, there will be a deadlock.
+So, if /usr is mounted through NFS and openvswitch is used for all networking,
+the administrator should figure out a way to mount NFS before starting OVS.
+One way to do this is in initramfs.
+
+* Since openvswitch starts after $network, $remote_fs and $syslog, any startup
+script that depends on openvswitch but starts before it, needs to be changed
+to depend on openvswitch-switch too.
+
+* Ideally, an admin should not add openvswitch bridges in the 'auto'
+section of the 'interfaces' file. This is because, when ifupdown starts
+working on bridges listed in 'auto', openvswitch has not yet started.
+
+But, if the admin wants to go down this route and adds openvswitch bridges
+in the 'auto' section, openvswitch-switch will forcefully be started when
+ifupdown kicks in. In a case like this, the admin needs to make sure that /usr
+has already been mounted and that a remote $syslog (if used) is ready to
+receive openvswitch logs.