[one-users] Problem with Openvswitch on OpenNebula3.8
Valentin Bud
valentin.bud at gmail.com
Wed Oct 2 07:57:40 PDT 2013
Hello,
Is your second host configured to use the ovswitch network driver? Is the
ovs bridge created on the second machine with
the name used in the vnet you've defined? Is you sudo configured to allow
oneadmin to issue ovs-* commands without password?
On Wed, Oct 2, 2013 at 5:38 PM, 木易@'4武 <yangzb09 at qq.com> wrote:
> Hi,
> I’m trying to Configure OVS network in OpenNebula3.8,and has been
> succeed it in the frontend host(frontend&host-end together).But When I
> build a VM in another host,it can't add a ovs bridge.
> In normal, it will use ovs cmd to build it.
> The VM log is here.
> “Tue Apr 23 06:37:08 2013 [DiM][I]: New VM state is DONE.
> Mon Sep 30 11:11:20 2013 [DiM][I]: New VM state is ACTIVE.
> Mon Sep 30 11:11:20 2013 [LCM][I]: New VM state is PROLOG.
> Mon Sep 30 11:11:20 2013 [VM][I]: Virtual Machine has no context
> Mon Sep 30 11:11:21 2013 [TM][I]: clone: Cloning
> /var/lib/one/datastores/1/af1f67b5da1befd1c585413de8aa17ea in
> host_old:/var/lib/one//datastores/0/80/disk.0
> Mon Sep 30 11:11:21 2013 [TM][I]: ExitCode: 0
> Mon Sep 30 11:11:21 2013 [LCM][I]: New VM state is BOOT
> Mon Sep 30 11:11:21 2013 [VMM][I]: Generating deployment file:
> /var/lib/one/80/deployment.0
> Mon Sep 30 11:11:21 2013 [VMM][I]: ExitCode: 0
> Mon Sep 30 11:11:21 2013 [VMM][I]: Successfully execute network driver
> operation: pre.
> Mon Sep 30 11:11:22 2013 [VMM][I]: ExitCode: 0
> Mon Sep 30 11:11:22 2013 [VMM][I]: Successfully execute virtualization
> driver operation: deploy.
> Mon Sep 30 11:11:22 2013 [VMM][I]: post: Executed "sudo /usr/bin/ovs-vsctl
> set Port vnet9 tag=302".
> Mon Sep 30 11:11:22 2013 [VMM][I]: post: Executed "sudo /usr/bin/ovs-ofctl
> add-flow ovsbr0
> in_port=249,dl_src=02:00:c0:a8:b6:7f,priority=40000,actions=normal
> Mon Sep 30 11:11:22 2013 [VMM][I]: post: Executed "sudo /usr/bin/ovs-ofctl
> add-flow ovsbr0
> in_port=250,dl_src=02:00:63:09:09:7b,priority=40000,actions=normal".
> Mon Sep 30 11:11:22 2013 [VMM][I]: post: Executed "sudo /usr/bin/ovs-ofctl
> add-flow ovsbr0 in_port=250,priority=39000,actions=drop".
> Mon Sep 30 11:11:22 2013 [VMM][I]: post: Executed "sudo /usr/bin/ovs-vsctl
> set Port vnet11 tag=150".
> Mon Sep 30 11:11:22 2013 [VMM][I]: post: Executed "sudo /usr/bin/ovs-ofctl
> add-flow ovsbr0
> in_port=251,dl_src=02:00:c0:a8:b4:4e,priority=40000,actions=normal".
> Mon Sep 30 11:11:22 2013 [VMM][I]: post: Executed "sudo /usr/bin/ovs-ofctl
> add-flow ovsbr0 in_port=251,priority=39000,actions=drop".
> Mon Sep 30 11:11:22 2013 [VMM][I]: ExitCode: 0
> Mon Sep 30 11:11:22 2013 [VMM][I]: Successfully execute network driver
> operation: post.
> Mon Sep 30 11:11:22 2013 [LCM][I]: New VM state is RUNNING
> ". ”
> ################################################################
> # ovs-vsctl show|less
> Bridge "ovsbr0"
> Port "vnet9"
> tag: 302
> Interface "vnet9"
> ################################################################
> But when I build a VM in another host,it just build a VM, nothing for
> network.
> "
> Wed Oct 2 20:46:50 2013 [DiM][I]: New VM state is ACTIVE.
> Wed Oct 2 20:46:50 2013 [LCM][I]: New VM state is PROLOG.
> Wed Oct 2 20:46:50 2013 [VM][I]: Virtual Machine has no context
> Wed Oct 2 20:46:52 2013 [TM][I]: clone: Cloning
> host_old:/var/lib/one/datastores/1/af1f67b5da1befd1c585413de8aa17ea in
> /var/lib/one/datastores/0/82/disk.0
> Wed Oct 2 20:46:52 2013 [TM][I]: ExitCode: 0
> Wed Oct 2 20:46:52 2013 [LCM][I]: New VM state is BOOT
> Wed Oct 2 20:46:52 2013 [VMM][I]: Generating deployment file:
> /var/lib/one/82/deployment.0
> Wed Oct 2 20:46:52 2013 [VMM][I]: ExitCode: 0
> Wed Oct 2 20:46:52 2013 [VMM][I]: Successfully execute network driver
> operation: pre.
> Wed Oct 2 20:46:53 2013 [VMM][I]: ExitCode: 0
> Wed Oct 2 20:46:53 2013 [VMM][I]: Successfully execute virtualization
> driver operation: deploy.
> Wed Oct 2 20:46:53 2013 [VMM][I]: ExitCode: 0
> Wed Oct 2 20:46:53 2013 [VMM][I]: Successfully execute network driver
> operation: post.
> Wed Oct 2 20:46:53 2013 [LCM][I]: New VM state is RUNNING"
> ################################################################
> Can anyboye help me to solve this problem?
>
It looks like the network driver pre operation and also post operation
executed successfully. I tend to think that your
second host is not configured to use the ovswitch network driver. Can you
check that?
Good Will,
--
Valentin Bud
http://databus.pro | valentin at databus.pro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131002/eb534165/attachment-0002.htm>
More information about the Users
mailing list