cookbook-openstack-network can not enable vxlan

Bug #1355663 reported by Wei Hu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack + Chef
Fix Released
Undecided
Wei Hu

Bug Description

The cookbook-openstack-network can not enable vxlan because of missing the tunnel_types in ovs_neutron_plugin.ini.erb template file.

neutron ovs_neutron_plugin.ini tunnel_types parameter:
https://github.com/openstack/neutron/blob/master/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini#L190

cookbook-openstack-network ovs_neutron_plugin.ini missing this parameter:
https://github.com/stackforge/cookbook-openstack-network/blob/master/templates/default/plugins/openvswitch/ovs_neutron_plugin.ini.erb

Don't set this parameter, will cause nova boot failure. And can get the following warning message in neutron server.log:
2014-08-13 16:43:54.335 7418 WARNING neutron.plugins.ml2.managers [req-1fc3fc8b-855b-4809-a2a9-e750ed1f81a0 None] Failed to bind port 43ae6095-096c-44a5-b0fe-5b57207e39f2 on host comptest.ibm.com

In compute node can see the boot failure message:
2014-08-13 16:43:45.178 28919 INFO nova.virt.libvirt.driver [req-20993601-e0c8-447e-88bc-4d08c8492157 None] [instance: d61fe330-6731-4f6c-998e-8af53d4c0700]
 Creating image
2014-08-13 16:44:03.620 28919 WARNING nova.virt.disk.vfs.guestfs [req-20993601-e0c8-447e-88bc-4d08c8492157 None] Failed to close augeas aug_close: do_aug_cl
ose: you must call 'aug-init' first to initialize Augeas
2014-08-13 16:44:03.836 28919 ERROR nova.compute.manager [req-20993601-e0c8-447e-88bc-4d08c8492157 None] [instance: d61fe330-6731-4f6c-998e-8af53d4c0700] In
stance failed to spawn
2014-08-13 16:44:03.836 28919 TRACE nova.compute.manager [instance: d61fe330-6731-4f6c-998e-8af53d4c0700] Traceback (most recent call last):
2014-08-13 16:44:03.836 28919 TRACE nova.compute.manager [instance: d61fe330-6731-4f6c-998e-8af53d4c0700] File "/usr/lib/python2.6/site-packages/nova/comp
ute/manager.py", line 2126, in _build_resources
2014-08-13 16:44:03.836 28919 TRACE nova.compute.manager [instance: d61fe330-6731-4f6c-998e-8af53d4c0700] yield resources
2014-08-13 16:44:03.836 28919 TRACE nova.compute.manager [instance: d61fe330-6731-4f6c-998e-8af53d4c0700] File "/usr/lib/python2.6/site-packages/nova/comp
ute/manager.py", line 2012, in _build_and_run_instance
2014-08-13 16:44:03.836 28919 TRACE nova.compute.manager [instance: d61fe330-6731-4f6c-998e-8af53d4c0700] block_device_info=block_device_info)
2014-08-13 16:44:03.836 28919 TRACE nova.compute.manager [instance: d61fe330-6731-4f6c-998e-8af53d4c0700] File "/usr/lib/python2.6/site-packages/nova/virt
/libvirt/driver.py", line 2312, in spawn
2014-08-13 16:44:03.836 28919 TRACE nova.compute.manager [instance: d61fe330-6731-4f6c-998e-8af53d4c0700] write_to_disk=True)
2014-08-13 16:44:03.836 28919 TRACE nova.compute.manager [instance: d61fe330-6731-4f6c-998e-8af53d4c0700] File "/usr/lib/python2.6/site-packages/nova/virt
/libvirt/driver.py", line 3529, in _get_guest_xml
2014-08-13 16:44:03.836 28919 TRACE nova.compute.manager [instance: d61fe330-6731-4f6c-998e-8af53d4c0700] disk_info, rescue, block_device_info)
2014-08-13 16:44:03.836 28919 TRACE nova.compute.manager [instance: d61fe330-6731-4f6c-998e-8af53d4c0700] File "/usr/lib/python2.6/site-packages/nova/virt
/libvirt/driver.py", line 3344, in _get_guest_config
2014-08-13 16:44:03.836 28919 TRACE nova.compute.manager [instance: d61fe330-6731-4f6c-998e-8af53d4c0700] flavor)
2014-08-13 16:44:03.836 28919 TRACE nova.compute.manager [instance: d61fe330-6731-4f6c-998e-8af53d4c0700] File "/usr/lib/python2.6/site-packages/nova/virt
/libvirt/vif.py", line 362, in get_config
2014-08-13 16:44:03.836 28919 TRACE nova.compute.manager [instance: d61fe330-6731-4f6c-998e-8af53d4c0700] _("Unexpected vif_type=%s") % vif_type)
2014-08-13 16:44:03.836 28919 TRACE nova.compute.manager [instance: d61fe330-6731-4f6c-998e-8af53d4c0700] NovaException: Unexpected vif_type=binding_failed
2014-08-13 16:44:03.836 28919 TRACE nova.compute.manager [instance: d61fe330-6731-4f6c-998e-8af53d4c0700]
2014-08-13 16:44:03.838 28919 AUDIT nova.compute.manager [req-20993601-e0c8-447e-88bc-4d08c8492157 None] [instance: d61fe330-6731-4f6c-998e-8af53d4c0700] Te
rminating instance

Wei Hu (huwei-xtu)
description: updated
Wei Hu (huwei-xtu)
Changed in openstack-chef:
assignee: nobody → Neo (huwei-xtu)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cookbook-openstack-network (master)

Fix proposed to branch: master
Review: https://review.openstack.org/114108

Changed in openstack-chef:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cookbook-openstack-network (master)

Reviewed: https://review.openstack.org/114108
Committed: https://git.openstack.org/cgit/stackforge/cookbook-openstack-network/commit/?id=802685281c70b87d94cb82bfd601dc5fe5f8125b
Submitter: Jenkins
Branch: master

commit 802685281c70b87d94cb82bfd601dc5fe5f8125b
Author: Hu <email address hidden>
Date: Thu Aug 14 09:20:02 2014 +0800

    Add tunnel_types in ovs_neutron_plugin.ini.erb

    Nowadays, there is no tunnel_types item in ovs_
    neutron_plugin.ini.erb template. And user can not
    assign value to this item by environment. Therefore,
    the vxlan enablement will failure because of the item
    default value is '[]' which will disable tunneling
    support in the agent.

    Fixes bug #1355663

    Change-Id: I21378cbc3fe021b6763dd9f560e027ddd704c982

Changed in openstack-chef:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.