iesgn / openstack-debian-ansible

Ansible playbooks for installing OpenStack on Debian
GNU General Public License v3.0
17 stars 16 forks source link

Issue enabling tunneling on OVS #8

Closed albertomolina closed 10 years ago

albertomolina commented 10 years ago

After installing and configuring neutron-plugin-openvswitch-agent, this agent is not alive:

root@controller:~# neutron agent-list
+--------------------------------------+--------------------+------------+-------+----------------+
| id                                   | agent_type         | host       | alive | admin_state_up |
+--------------------------------------+--------------------+------------+-------+----------------+
| 484f7b56-e62b-4526-be3b-224e8f2b149a | Open vSwitch agent | controller | xxx   | True           |

And /var/log/neutron/ovs-agent.log shows an error:

2014-06-13 07:22:33.421 4006 ERROR neutron.plugins.openvswitch.agent.ovs_neutron_agent [req-e1954c60-4f16-4b7e-b8a9-5ed8e95fc30b None] Failed to create OVS patch port. Cannot have tunneling enabled on this agent, since this version of OVS does not support tunnels or patch ports. Agent terminated!

openvswitch module is loaded:

root@controller:~# lsmod |grep openvswitch
openvswitch            63887  0 
gre                    12777  1 openvswitch
vxlan                  35023  1 openvswitch
libcrc32c              12426  2 sctp,openvswitch
albertomolina commented 10 years ago

Executing neutron-openvswitch-agent from command line instead from init script seems to work properly:

root@controller:~# neutron-openvswitch-agent 

2014-06-13 07:43:51.796 8268 WARNING neutron.agent.securitygroups_rpc [req-d9668563-da5a-40b8-b65b-20f93c425684 None] Driver configuration doesn't match with enable_security_group

root@controller:~# neutron agent-list
+--------------------------------------+--------------------+------------+-------+----------------+
| id                                   | agent_type         | host       | alive | admin_state_up |
+--------------------------------------+--------------------+------------+-------+----------------+
| 484f7b56-e62b-4526-be3b-224e8f2b149a | Open vSwitch agent | controller | :-)   | True           |
...
albertomolina commented 10 years ago

Launching an instance fails:

nova-compute.log extract:

2014-06-13 07:52:58.560 4093 ERROR nova.compute.manager [req-1f29d1e2-f250-403a-a6d7-60c8b8ec37f6 4ab081f375f14f498f1539d15d2a7d2c 3c7a876c9947403895d91e4e8776b354] [instance: 1ffb5062-0af8-46b2-a038-dd74d35f6526] Instance failed to spawn
2014-06-13 07:53:00.302 4093 ERROR nova.virt.libvirt.driver [-] [instance: 1ffb5062-0af8-46b2-a038-dd74d35f6526] During wait destroy, instance disappeared.
2014-06-13 07:53:00.916 4093 ERROR nova.compute.manager [req-1f29d1e2-f250-403a-a6d7-60c8b8ec37f6 4ab081f375f14f498f1539d15d2a7d2c 3c7a876c9947403895d91e4e8776b354] [instance: 1ffb5062-0af8-46b2-a038-dd74d35f6526] Error: Unexpected vif_type=binding_failed
2014-06-13 07:53:02.011 4093 ERROR oslo.messaging.rpc.dispatcher [-] Exception during message handling: Unexpected vif_type=binding_failed
2014-06-13 07:53:02.296 4093 ERROR oslo.messaging._drivers.common [-] Returning exception Unexpected vif_type=binding_failed to caller

Nova and neutron conf files need to be reviewed

albertomolina commented 10 years ago

Reported to bugs.debian.org:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751714

albertomolina commented 10 years ago

Bug 751714 has been closed, "dkms way" is recommended by Thomas Goirand. I've replied directly to him saying that at this moment dkms fails to build with kernel 3.14

albertomolina commented 10 years ago

The same bug is open at this moment in Ubuntu:

https://bugs.launchpad.net/ubuntu/+source/openvswitch/+bug/1266749

But Ubuntu is using in-tree kernel module instead dkms

albertomolina commented 10 years ago

Next attempt: Using Ubuntu trusty kernel (3.13): http://packages.ubuntu.com/trusty/kernel/linux-image-3.13.0-29-generic

albertomolina commented 10 years ago

After several tests a solution was found: using in-tree openvswitch kernel module with OVS 2.1.0 instead of trying to use dkms out-of-tree module. At this moment OVS 2.1.0 isn't yet in Jessie, we will use packages from sid

albertomolina commented 10 years ago

Now is working properly with in tree module with kernel 3.14 and OVS 2.1.0 from jessie. I'm closing this bug