diff options
author | Lei Yang <lei.yang@windriver.com> | 2013-01-31 15:18:47 +0800 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-02-01 09:08:07 -0500 |
commit | 0afb6647c1ba91b9197d3720537cdb8b211ddcee (patch) | |
tree | 998f9ab3136ed4b6c4bbd769b1fe9f12da4dd7be | |
parent | 176a8d2ed831480221e0377edcb371aeb99e0caa (diff) | |
download | meta-virtualization-0afb6647c1ba91b9197d3720537cdb8b211ddcee.tar.gz |
openvswtich: start openvswitch at the boot time
When I define the bridge, I get below error
root@intel_5500_server:~# ovs-vsctl add-br ovsbr0
Jan 25 17:34:07|00002|stream_unix|ERR|/tmp/stream-unix.1487.0: connection to /var/run/openvswitch/db.sock
failed: No such file or directory
........
........
This is because openvswitch damon isn't running,so we'd better start it at
the boot time. The split-package ${PN}-switch ${PN}-controller provide us
to start necessary daemon with update-rc.d so we add them to the RDEPENDS.
Since openvswitch depends on openvswtich kernel module, so auto load the
kernel module too.
Signed-off-by: Lei Yang <lei.yang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r-- | recipes-kernel/linux/linux-yocto_3.4.bbappend | 2 | ||||
-rw-r--r-- | recipes-networking/openvswitch/openvswitch_1.4.3.bb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/recipes-kernel/linux/linux-yocto_3.4.bbappend b/recipes-kernel/linux/linux-yocto_3.4.bbappend index 454c00f4..2893a01c 100644 --- a/recipes-kernel/linux/linux-yocto_3.4.bbappend +++ b/recipes-kernel/linux/linux-yocto_3.4.bbappend | |||
@@ -5,7 +5,7 @@ SRC_URI += "file://xt-checksum.scc \ | |||
5 | file://vswitch.scc \ | 5 | file://vswitch.scc \ |
6 | file://lxc.scc \ | 6 | file://lxc.scc \ |
7 | " | 7 | " |
8 | 8 | module_autoload_openvswitch = "openvswitch" | |
9 | KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc" | 9 | KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc" |
10 | 10 | ||
11 | module_autoload_kvm = "kvm" | 11 | module_autoload_kvm = "kvm" |
diff --git a/recipes-networking/openvswitch/openvswitch_1.4.3.bb b/recipes-networking/openvswitch/openvswitch_1.4.3.bb index 88f01142..67640735 100644 --- a/recipes-networking/openvswitch/openvswitch_1.4.3.bb +++ b/recipes-networking/openvswitch/openvswitch_1.4.3.bb | |||
@@ -7,7 +7,7 @@ LICENSE = "Apache-2" | |||
7 | DEPENDS += "bridge-utils openssl python perl" | 7 | DEPENDS += "bridge-utils openssl python perl" |
8 | 8 | ||
9 | RDEPENDS_${PN} += "util-linux-uuidgen util-linux-libuuid \ | 9 | RDEPENDS_${PN} += "util-linux-uuidgen util-linux-libuuid \ |
10 | python perl perl-module-strict" | 10 | python perl perl-module-strict ${PN}-switch ${PN}-controller" |
11 | RDEPENDS_${PN}-controller = "${PN} lsb ${PN}-pki" | 11 | RDEPENDS_${PN}-controller = "${PN} lsb ${PN}-pki" |
12 | RDEPENDS_${PN}-switch = "${PN} openssl procps util-linux-uuidgen" | 12 | RDEPENDS_${PN}-switch = "${PN} openssl procps util-linux-uuidgen" |
13 | RDEPENDS_${PN}-pki = "${PN}" | 13 | RDEPENDS_${PN}-pki = "${PN}" |