vagrant: switch to use out of tree build
[cascardo/ovs.git] / INSTALL.md
1 How to Install Open vSwitch on Linux, FreeBSD and NetBSD
2 ========================================================
3
4 This document describes how to build and install Open vSwitch on a
5 generic Linux, FreeBSD, or NetBSD host. For specifics around installation
6 on a specific platform, please see one of these files:
7
8   - [INSTALL.Debian.md]
9   - [INSTALL.Fedora.md]
10   - [INSTALL.RHEL.md]
11   - [INSTALL.XenServer.md]
12   - [INSTALL.NetBSD.md]
13   - [INSTALL.DPDK.md]
14
15 Build Requirements
16 ------------------
17
18 To compile the userspace programs in the Open vSwitch distribution,
19 you will need the following software:
20
21   - GNU make.
22
23   - A C compiler, such as:
24
25       * GCC 4.x.
26
27       * Clang.  Clang 3.4 and later provide useful static semantic
28         analysis and thread-safety checks.  For Ubuntu, there are
29         nightly built packages available on clang's website.
30
31     While OVS may be compatible with other compilers, optimal
32     support for atomic operations may be missing, making OVS very
33     slow (see lib/ovs-atomic.h).
34
35   - libssl, from OpenSSL, is optional but recommended if you plan to
36     connect the Open vSwitch to an OpenFlow controller.  libssl is
37     required to establish confidentiality and authenticity in the
38     connections from an Open vSwitch to an OpenFlow controller.  If
39     libssl is installed, then Open vSwitch will automatically build
40     with support for it.
41
42   - Python 2.x, for x >= 4.
43
44 On Linux, you may choose to compile the kernel module that comes with
45 the Open vSwitch distribution or to use the kernel module built into
46 the Linux kernel (version 3.3 or later).  See the [FAQ.md] question
47 "What features are not available in the Open vSwitch kernel datapath that
48 ships as part of the upstream Linux kernel?" for more information on
49 this trade-off.  You may also use the userspace-only implementation,
50 at some cost in features and performance (see [INSTALL.userspace.md]
51 for details).  To compile the kernel module on Linux, you must also
52 install the following:
53
54   - A supported Linux kernel version.  Please refer to [README.md] for a
55     list of supported versions.
56
57     The Open vSwitch datapath requires bridging support
58     (CONFIG_BRIDGE) to be built as a kernel module.  (This is common
59     in kernels provided by Linux distributions.)  The bridge module
60     must not be loaded or in use.  If the bridge module is running
61     (check with "lsmod | grep bridge"), you must remove it ("rmmod
62     bridge") before starting the datapath.
63
64     For optional support of ingress policing, you must enable kernel
65     configuration options NET_CLS_BASIC, NET_SCH_INGRESS, and
66     NET_ACT_POLICE, either built-in or as modules.  (NET_CLS_POLICE is
67     obsolete and not needed.)
68
69     To use GRE tunneling on Linux 2.6.37 or newer, kernel support
70     for GRE demultiplexing (CONFIG_NET_IPGRE_DEMUX) must be compiled
71     in or available as a module.  Also, on kernels before 3.11, the
72     ip_gre module, for GRE tunnels over IP (NET_IPGRE), must not be
73     loaded or compiled in.
74
75     To configure HTB or HFSC quality of service with Open vSwitch,
76     you must enable the respective configuration options.
77
78     To use Open vSwitch support for TAP devices, you must enable
79     CONFIG_TUN.
80
81   - To build a kernel module, you need the same version of GCC that
82     was used to build that kernel.
83
84   - A kernel build directory corresponding to the Linux kernel image
85     the module is to run on.  Under Debian and Ubuntu, for example,
86     each linux-image package containing a kernel binary has a
87     corresponding linux-headers package with the required build
88     infrastructure.
89
90 If you are working from a Git tree or snapshot (instead of from a
91 distribution tarball), or if you modify the Open vSwitch build system
92 or the database schema, you will also need the following software:
93
94   - Autoconf version 2.63 or later.
95
96   - Automake version 1.10 or later.
97
98   - libtool version 2.4 or later.  (Older versions might work too.)
99
100 To run the unit tests, you also need:
101
102   - Perl.  Version 5.10.1 is known to work.  Earlier versions should
103     also work.
104
105 The ovs-vswitchd.conf.db(5) manpage will include an E-R diagram, in
106 formats other than plain text, only if you have the following:
107
108   - "dot" from graphviz (http://www.graphviz.org/).
109
110   - Perl.  Version 5.10.1 is known to work.  Earlier versions should
111     also work.
112
113   - Python 2.x, for x >= 4.
114
115 If you are going to extensively modify Open vSwitch, please consider
116 installing the following to obtain better warnings:
117
118   - "sparse" version 0.4.4 or later
119     (http://www.kernel.org/pub/software/devel/sparse/dist/).
120
121   - GNU make.
122
123   - clang, version 3.4 or later
124
125 Also, you may find the ovs-dev script found in utilities/ovs-dev.py useful.
126
127 Installation Requirements
128 -------------------------
129
130 The machine on which Open vSwitch is to be installed must have the
131 following software:
132
133   - libc compatible with the libc used for build.
134
135   - libssl compatible with the libssl used for build, if OpenSSL was
136     used for the build.
137
138   - On Linux, the same kernel version configured as part of the build.
139
140   - For optional support of ingress policing on Linux, the "tc" program
141     from iproute2 (part of all major distributions and available at
142     http://www.linux-foundation.org/en/Net:Iproute2).
143
144 On Linux you should ensure that /dev/urandom exists.  To support TAP
145 devices, you must also ensure that /dev/net/tun exists.
146
147 Building and Installing Open vSwitch for Linux, FreeBSD or NetBSD
148 =================================================================
149
150 Once you have installed all the prerequisites listed above in the
151 Base Prerequisites section, follow the procedures below to bootstrap,
152 to configure and to build the code.
153
154 Bootstrapping the Sources
155 -------------------------
156
157 This step is not needed if you have downloaded a released tarball.
158 If you pulled the sources directly from an Open vSwitch Git tree or
159 got a Git tree snapshot, then run boot.sh in the top source directory
160 to build the "configure" script.
161
162       `% ./boot.sh`
163
164
165 Configuring the Sources
166 -----------------------
167
168 Configure the package by running the configure script.  You can
169 usually invoke configure without any arguments.  For example:
170
171       `% ./configure`
172
173 By default all files are installed under /usr/local.  If you want
174 to install into, e.g., /usr and /var instead of /usr/local and
175 /usr/local/var, add options as shown here:
176
177       `% ./configure --prefix=/usr --localstatedir=/var`
178
179 By default, static libraries are built and linked against. If you
180 want to use shared libraries instead:
181
182       % ./configure --enable-shared
183
184 To use a specific C compiler for compiling Open vSwitch user
185 programs, also specify it on the configure command line, like so:
186
187       `% ./configure CC=gcc-4.2`
188
189 To use 'clang' compiler:
190
191       `% ./configure CC=clang`
192
193 To build the Linux kernel module, so that you can run the
194 kernel-based switch, pass the location of the kernel build
195 directory on --with-linux.  For example, to build for a running
196 instance of Linux:
197
198       `% ./configure --with-linux=/lib/modules/`uname -r`/build`
199
200 If --with-linux requests building for an unsupported version of
201 Linux, then "configure" will fail with an error message.  Please
202 refer to the [FAQ.md] for advice in that case.
203
204 If you wish to build the kernel module for an architecture other
205 than the architecture of the machine used for the build, you may
206 specify the kernel architecture string using the KARCH variable
207 when invoking the configure script.  For example, to build for MIPS
208 with Linux:
209
210       `% ./configure --with-linux=/path/to/linux KARCH=mips`
211
212 If you plan to do much Open vSwitch development, you might want to
213 add --enable-Werror, which adds the -Werror option to the compiler
214 command line, turning warnings into errors.  That makes it
215 impossible to miss warnings generated by the build.
216
217 To build with gcov code coverage support, add --enable-coverage,
218 e.g.:
219
220       `% ./configure --enable-coverage`
221
222 The configure script accepts a number of other options and honors
223 additional environment variables.  For a full list, invoke
224 configure with the --help option.
225
226 You can also run configure from a separate build directory.  This
227 is helpful if you want to build Open vSwitch in more than one way
228 from a single source directory, e.g. to try out both GCC and Clang
229 builds, or to build kernel modules for more than one Linux version.
230 Here is an example:
231
232       `% mkdir _gcc && (cd _gcc && ../configure CC=gcc)`  
233       `% mkdir _clang && (cd _clang && ../configure CC=clang)`
234
235
236 Building the Sources
237 --------------------
238
239 1. Run GNU make in the build directory, e.g.:
240
241       `% make`
242
243    or if GNU make is installed as "gmake":
244
245       `% gmake`
246
247    If you used a separate build directory, run make or gmake from that
248    directory, e.g.:
249
250       `% make -C _gcc`  
251       `% make -C _clang`
252
253    For improved warnings if you installed "sparse" (see "Prerequisites"),
254    add C=1 to the command line.
255
256 2. Consider running the testsuite.  Refer to "Running the Testsuite"
257    below, for instructions.
258
259 3. Become root by running "su" or another program.
260
261 4. Run "make install" to install the executables and manpages into the
262    running system, by default under /usr/local.
263
264 5. If you built kernel modules, you may install and load them, e.g.:
265
266       `% make modules_install`  
267       `% /sbin/modprobe openvswitch`
268
269    To verify that the modules have been loaded, run "/sbin/lsmod" and
270    check that openvswitch is listed.
271
272    If the `modprobe` operation fails, look at the last few kernel log
273    messages (e.g. with `dmesg | tail`):
274
275       - The message "openvswitch: exports duplicate symbol
276         br_should_route_hook (owned by bridge)" means that the bridge
277         module is loaded.  Run `/sbin/rmmod bridge` to remove it.
278
279         If `/sbin/rmmod bridge` fails with "ERROR: Module bridge does
280         not exist in /proc/modules", then the bridge is compiled into
281         the kernel, rather than as a module.  Open vSwitch does not
282         support this configuration (see "Build Requirements", above).
283
284       - The message "openvswitch: exports duplicate symbol
285         dp_ioctl_hook (owned by ofdatapath)" means that the ofdatapath
286         module from the OpenFlow reference implementation is loaded.
287         Run `/sbin/rmmod ofdatapath` to remove it.  (You might have to
288         delete any existing datapaths beforehand, using the "dpctl"
289         program included with the OpenFlow reference implementation.
290         "ovs-dpctl" will not work.)
291
292       - Otherwise, the most likely problem is that Open vSwitch was
293         built for a kernel different from the one into which you are
294         trying to load it.  Run `modinfo` on openvswitch.ko and on
295         a module built for the running kernel, e.g.:
296
297            ```
298            % /sbin/modinfo openvswitch.ko
299            % /sbin/modinfo /lib/modules/`uname -r`/kernel/net/bridge/bridge.ko
300            ```
301
302         Compare the "vermagic" lines output by the two commands.  If
303         they differ, then Open vSwitch was built for the wrong kernel.
304
305       - If you decide to report a bug or ask a question related to
306         module loading, please include the output from the `dmesg` and
307         `modinfo` commands mentioned above.
308
309 There is an optional module parameter to openvswitch.ko called
310 vlan_tso that enables TCP segmentation offload over VLANs on NICs
311 that support it. Many drivers do not expose support for TSO on VLANs
312 in a way that Open vSwitch can use but there is no way to detect
313 whether this is the case. If you know that your particular driver can
314 handle it (for example by testing sending large TCP packets over VLANs)
315 then passing in a value of 1 may improve performance. Modules built for
316 Linux kernels 2.6.37 and later, as well as specially patched versions
317 of earlier kernels, do not need this and do not have this parameter. If
318 you do not understand what this means or do not know if your driver
319 will work, do not set this.
320
321 6. Initialize the configuration database using ovsdb-tool, e.g.:
322
323       `% mkdir -p /usr/local/etc/openvswitch`  
324       `% ovsdb-tool create /usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema`
325
326 Startup
327 =======
328
329 Before starting ovs-vswitchd itself, you need to start its
330 configuration database, ovsdb-server.  Each machine on which Open
331 vSwitch is installed should run its own copy of ovsdb-server.
332 Configure it to use the database you created during installation (as
333 explained above), to listen on a Unix domain socket, to connect to any
334 managers specified in the database itself, and to use the SSL
335 configuration in the database:
336
337       % ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock \
338                      --remote=db:Open_vSwitch,Open_vSwitch,manager_options \
339                      --private-key=db:Open_vSwitch,SSL,private_key \
340                      --certificate=db:Open_vSwitch,SSL,certificate \
341                      --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert \
342                      --pidfile --detach
343
344 (If you built Open vSwitch without SSL support, then omit
345 --private-key, --certificate, and --bootstrap-ca-cert.)
346
347 Then initialize the database using ovs-vsctl.  This is only
348 necessary the first time after you create the database with
349 ovsdb-tool (but running it at any time is harmless):
350
351       % ovs-vsctl --no-wait init
352
353 Then start the main Open vSwitch daemon, telling it to connect to the
354 same Unix domain socket:
355
356       % ovs-vswitchd --pidfile --detach
357
358 Now you may use ovs-vsctl to set up bridges and other Open vSwitch
359 features.  For example, to create a bridge named br0 and add ports
360 eth0 and vif1.0 to it:
361
362       % ovs-vsctl add-br br0
363       % ovs-vsctl add-port br0 eth0
364       % ovs-vsctl add-port br0 vif1.0
365
366 Please refer to ovs-vsctl(8) for more details.
367
368 Upgrading
369 =========
370
371 When you upgrade Open vSwitch from one version to another, you should
372 also upgrade the database schema:
373
374 1. Stop the Open vSwitch daemons, e.g.:
375
376       ```
377       % kill `cd /usr/local/var/run/openvswitch && cat ovsdb-server.pid ovs-vswitchd.pid`
378       ```
379
380 2. Install the new Open vSwitch release.
381
382 3. Upgrade the database, in one of the following two ways:
383
384       - If there is no important data in your database, then you may
385         delete the database file and recreate it with ovsdb-tool,
386         following the instructions under "Building and Installing Open
387         vSwitch for Linux, FreeBSD or NetBSD".
388
389       - If you want to preserve the contents of your database, back it
390         up first, then use "ovsdb-tool convert" to upgrade it, e.g.:
391
392         `% ovsdb-tool convert /usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema`
393
394 4. Start the Open vSwitch daemons as described under "Building and
395    Installing Open vSwitch for Linux, FreeBSD or NetBSD" above.
396
397 Hot Upgrading
398 =============
399 Upgrading Open vSwitch from one version to the next version with minimum
400 disruption of traffic going through the system that is using that Open vSwitch
401 needs some considerations:
402
403 1. If the upgrade only involves upgrading the userspace utilities and daemons
404 of Open vSwitch, make sure that the new userspace version is compatible with
405 the previously loaded kernel module.
406
407 2. An upgrade of userspace daemons means that they have to be restarted.
408 Restarting the daemons means that the OpenFlow flows in the ovs-vswitchd daemon
409 will be lost.  One way to restore the flows is to let the controller
410 re-populate it.  Another way is to save the previous flows using a utility
411 like ovs-ofctl and then re-add them after the restart. Restoring the old flows
412 is accurate only if the new Open vSwitch interfaces retain the old 'ofport'
413 values.
414
415 3. When the new userspace daemons get restarted, they automatically flush
416 the old flows setup in the kernel. This can be expensive if there are hundreds
417 of new flows that are entering the kernel but userspace daemons are busy
418 setting up new userspace flows from either the controller or an utility like
419 ovs-ofctl. Open vSwitch database provides an option to solve this problem
420 through the other_config:flow-restore-wait column of the Open_vSwitch table.
421 Refer to the ovs-vswitchd.conf.db(5) manpage for details.
422
423 4. If the upgrade also involves upgrading the kernel module, the old kernel
424 module needs to be unloaded and the new kernel module should be loaded. This
425 means that the kernel network devices belonging to Open vSwitch is recreated
426 and the kernel flows are lost. The downtime of the traffic can be reduced
427 if the userspace daemons are restarted immediately and the userspace flows
428 are restored as soon as possible.
429
430 The ovs-ctl utility's "restart" function only restarts the userspace daemons,
431 makes sure that the 'ofport' values remain consistent across restarts, restores
432 userspace flows using the ovs-ofctl utility and also uses the
433 other_config:flow-restore-wait column to keep the traffic downtime to the
434 minimum. The ovs-ctl utility's "force-reload-kmod" function does all of the
435 above, but also replaces the old kernel module with the new one. Open vSwitch
436 startup scripts for Debian, XenServer and RHEL use ovs-ctl's functions and it
437 is recommended that these functions be used for other software platforms too.
438
439 Testsuites
440 ==========
441
442 This section describe Open vSwitch's built-in support for various test
443 suites.  You must bootstrap, configure and build Open vSwitch (steps are
444 in "Building and Installing Open vSwitch for Linux, FreeBSD or NetBSD"
445 above) before you run the tests described here.  You do not need to
446 install Open vSwitch or to build or load the kernel module to run
447 these test suites.  You do not need supervisor privilege to run these
448 test suites.
449
450 Self-Tests
451 ----------
452
453 Open vSwitch includes a suite of self-tests.  Before you submit patches
454 upstream, we advise that you run the tests and ensure that they pass.
455 If you add new features to Open vSwitch, then adding tests for those
456 features will ensure your features don't break as developers modify
457 other areas of Open vSwitch.
458
459 Refer to "Testsuites" above for prerequisites.
460
461 To run all the unit tests in Open vSwitch, one at a time:
462       `make check`
463 This takes under 5 minutes on a modern desktop system.
464
465 To run all the unit tests in Open vSwitch, up to 8 in parallel:
466       `make check TESTSUITEFLAGS=-j8`
467 This takes under a minute on a modern 4-core desktop system.
468
469 To see a list of all the available tests, run:
470       `make check TESTSUITEFLAGS=--list`
471
472 To run only a subset of tests, e.g. test 123 and tests 477 through 484:
473       `make check TESTSUITEFLAGS='123 477-484'`
474 (Tests do not have inter-dependencies, so you may run any subset.)
475
476 To run tests matching a keyword, e.g. "ovsdb":
477       `make check TESTSUITEFLAGS='-k ovsdb'`
478
479 To see a complete list of test options:
480       `make check TESTSUITEFLAGS=--help`
481
482 The results of a testing run are reported in tests/testsuite.log.
483 Please report test failures as bugs and include the testsuite.log in
484 your report.
485
486 If you have "valgrind" installed, then you can also run the testsuite
487 under valgrind by using "make check-valgrind" in place of "make
488 check".  All the same options are available via TESTSUITEFLAGS.  When
489 you do this, the "valgrind" results for test `<N>` are reported in files
490 named `tests/testsuite.dir/<N>/valgrind.*`.  You may find that the
491 valgrind results are easier to interpret if you put "-q" in
492 ~/.valgrindrc, since that reduces the amount of output.
493
494 Sometimes a few tests may fail on some runs but not others.  This is
495 usually a bug in the testsuite, not a bug in Open vSwitch itself.  If
496 you find that a test fails intermittently, please report it, since the
497 developers may not have noticed.
498
499 OFTest
500 ------
501
502 OFTest is an OpenFlow protocol testing suite.  Open vSwitch includes a
503 Makefile target to run OFTest with Open vSwitch in "dummy mode".  In
504 this mode of testing, no packets travel across physical or virtual
505 networks.  Instead, Unix domain sockets stand in as simulated
506 networks.  This simulation is imperfect, but it is much easier to set
507 up, does not require extra physical or virtual hardware, and does not
508 require supervisor privileges.
509
510 To run OFTest with Open vSwitch, first read and follow the
511 instructions under "Testsuites" above.  Second, obtain a copy of
512 OFTest and install its prerequisites.  You need a copy of OFTest that
513 includes commit 406614846c5 (make ovs-dummy platform work again).
514 This commit was merged into the OFTest repository on Feb 1, 2013, so
515 any copy of OFTest more recent than that should work.  Testing OVS in
516 dummy mode does not require root privilege, so you may ignore that
517 requirement.
518
519 Optionally, add the top-level OFTest directory (containing the "oft"
520 program) to your $PATH.  This slightly simplifies running OFTest later.
521
522 To run OFTest in dummy mode, run the following command from your Open
523 vSwitch build directory:
524     `make check-oftest OFT=<oft-binary>`
525 where `<oft-binary>` is the absolute path to the "oft" program in
526 OFTest.
527
528 If you added "oft" to your $PATH, you may omit the OFT variable
529 assignment:
530     `make check-oftest`
531 By default, "check-oftest" passes "oft" just enough options to enable
532 dummy mode.  You can use OFTFLAGS to pass additional options.  For
533 example, to run just the basic.Echo test instead of all tests (the
534 default) and enable verbose logging:
535     `make check-oftest OFT=<oft-binary> OFTFLAGS='--verbose -T basic.Echo'`
536
537 If you use OFTest that does not include commit 4d1f3eb2c792 (oft:
538 change default port to 6653), merged into the OFTest repository in
539 October 2013, then you need to add an option to use the IETF-assigned
540 controller port:
541     `make check-oftest OFT=<oft-binary> OFTFLAGS='--port=6653'`
542
543 Please interpret OFTest results cautiously.  Open vSwitch can fail a
544 given test in OFTest for many reasons, including bugs in Open vSwitch,
545 bugs in OFTest, bugs in the "dummy mode" integration, and differing
546 interpretations of the OpenFlow standard and other standards.
547
548 Open vSwitch has not been validated against OFTest.  Please do report
549 test failures that you believe to represent bugs in Open vSwitch.
550 Include the precise versions of Open vSwitch and OFTest in your bug
551 report, plus any other information needed to reproduce the problem.
552
553 Ryu
554 ---
555
556 Ryu is an OpenFlow controller written in Python that includes an
557 extensive OpenFlow testsuite.  Open vSwitch includes a Makefile target
558 to run Ryu in "dummy mode".  See "OFTest" above for an explanation of
559 dummy mode.
560
561 To run Ryu tests with Open vSwitch, first read and follow the
562 instructions under "Testsuites" above.  Second, obtain a copy of Ryu,
563 install its prerequisites, and build it.  You do not need to install
564 Ryu (some of the tests do not get installed, so it does not help).
565
566 To run Ryu tests, run the following command from your Open vSwitch
567 build directory:
568     `make check-ryu RYUDIR=<ryu-source-dir>`
569 where `<ryu-source-dir>` is the absolute path to the root of the Ryu
570 source distribution.  The default `<ryu-source-dir>` is `$srcdir/../ryu`
571 where $srcdir is your Open vSwitch source directory, so if this
572 default is correct then you make simply run `make check-ryu`.
573
574 Open vSwitch has not been validated against Ryu.  Please do report
575 test failures that you believe to represent bugs in Open vSwitch.
576 Include the precise versions of Open vSwitch and Ryu in your bug
577 report, plus any other information needed to reproduce the problem.
578
579 Vagrant
580 -------
581
582 Requires: Vagrant (version 1.7.0 or later) and a compatible hypervisor
583
584 You must bootstrap and configure the sources (steps are in "Building
585 and Installing Open vSwitch for Linux, FreeBSD or NetBSD" above) before
586 you run the steps described here.
587
588 A Vagrantfile is provided allowing to compile and provision the source
589 tree as found locally in a virtual machine using the following commands:
590
591         vagrant up
592         vagrant ssh
593
594 This will bring up w Fedora 20 VM by default, alternatively the
595 `Vagrantfile` can be modified to use a different distribution box as
596 base. Also, the VM can be reprovisioned at any time:
597
598         vagrant provision
599
600 OVS out-of-tree compilation environment can be set up with:
601
602         ./boot.sh
603         vagrant provision --provision-with configure_ovs,build_ovs
604
605 This will set up an out-of-tree build environment in /home/vagrant/build.
606 The source code can be found in /vagrant.  Out-of-tree build is preferred
607 to work around limitations of the sync file systems.
608
609 To recompile and reinstall OVS using RPM:
610
611         ./boot.sh
612         vagrant provision --provision-with configure_ovs,install_rpm
613
614 Continuous Integration with Travis-CI
615 -------------------------------------
616
617 A .travis.yml file is provided to automatically build Open vSwitch with
618 various build configurations and run the testsuite using travis-ci.
619 Builds will be performed with gcc, sparse and clang with the -Werror
620 compiler flag included, therefore the build will fail if a new warning
621 has been introduced.
622
623 The CI build is triggered via git push (regardless of the specific
624 branch) or pull request against any Open vSwitch GitHub repository that
625 is linked to travis-ci.
626
627 Instructions to setup travis-ci for your GitHub repository:
628
629 1. Go to http://travis-ci.org/ and sign in using your GitHub ID.
630 2. Go to the "Repositories" tab and enable the ovs repository. You
631    may disable builds for pushes or pull requests.
632 3. In order to avoid forks sending build failures to the upstream
633    mailing list, the notification email recipient is encrypted. If you
634    want to receive email notification for build failures, replace the
635    the encrypted string:
636    3.1) Install the travis-ci CLI (Requires ruby >=2.0):
637            gem install travis
638    3.2) In your Open vSwitch repository:
639            travis encrypt mylist@mydomain.org
640    3.3) Add/replace the notifications section in .travis.yml and fill
641         in the secure string as returned by travis encrypt:
642
643          notifications:
644            email:
645              recipients:
646                - secure: "....."
647
648    (You may remove/omit the notifications section to fall back to
649     default notification behaviour which is to send an email directly
650     to the author and committer of the failing commit. Note that the
651     email is only sent if the author/committer have commit rights for
652     the particular GitHub repository).
653
654 4. Pushing a commit to the repository which breaks the build or the
655    testsuite will now trigger a email sent to mylist@mydomain.org
656
657 Bug Reporting
658 =============
659
660 Please report problems to bugs@openvswitch.org.
661
662 [README.md]:README.md
663 [INSTALL.Debian.md]:INSTALL.Debian.md
664 [INSTALL.Fedora.md]:INSTALL.Fedora.md
665 [INSTALL.RHEL.md]:INSTALL.RHEL.md
666 [INSTALL.XenServer.md]:INSTALL.XenServer.md
667 [INSTALL.NetBSD.md]:INSTALL.NetBSD.md
668 [INSTALL.DPDK.md]:INSTALL.DPDK.md
669 [INSTALL.userspace.md]:INSTALL.userspace.md
670 [FAQ.md]:FAQ.md