Error in creating gre port of br_tun bridge .....

asked 2014-02-13 07:55:06 -0600

Govardhan gravatar image

I observed that ofport value as -1 for the created gre port. In setup_tunnel_port() function of file, a validation is there for the ofport.

if ofport < 0: LOG.error(_("Failed to set-up %(type)s tunnel port to %(ip)s"), {'type': tunnel_type, 'ip': remote_ip}) return 0

Here ofport is of string type and is comparing with int, so the condition fails and it proceeds further. If its corrected then error msg observed is

ERROR neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Failed to set-up gre tunnel port to XXXXXXX

Could someone please let me know the reason for the gre port creation failure.

Thanks in advance :)

edit retag flag offensive close merge delete


Can you check your configuration file. I suspect some some wrong type value mentioned in the ovs plugin conf file.

dheeru gravatar imagedheeru ( 2014-02-13 09:56:22 -0600 )edit

Configuration of ml2 plugin ----------------------------- [ml2] tenant_network_types = gre type_drivers = vlan,gre mechanism_drivers = openvswitch,linuxbridge [ml2_type_flat] [ml2_type_vlan] [ml2_type_gre] tunnel_id_ranges = 1:1000 [ml2_type_vxlan] vni_ranges = 1001:2000 [database] connection = mysql://root:openstack@ [SECURITYGROUP] firewall_driver = neutron.agent.not.a.real.FirewallDriver [ovs] enable_tunneling = True local_ip = <local ip=""> [agent] tunnel_types = gre root_helper = sudo /usr/local/bin/neutron-rootwrap /etc/neutron/rootwrap.conf [securitygroup] firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver Even i tried manullay to create port on br-tun bridge, I observed the ofport as -1. Is this an expected one ? or This is a problem ?? Please correct me and let me know where i am doing wrong Thank You :)

Govardhan gravatar imageGovardhan ( 2014-02-14 00:23:25 -0600 )edit

And this is the localrc file of controller node : disable_service n-net enable_service q-svc enable_service q-agt enable_service q-dhcp enable_service q-l3 enable_service q-meta enable_service neutron enable_service n-cpu MULTI_HOST=True FLAT_INTERFACE=eth0 HOST_IP=<ip> SERVICE_HOST=$HOST_IP IMAGE_HOST=$HOST_IP IDENTITY_HOST=$HOST_IP Q_PLUGIN=ml2 ENABLE_TENANT_TUNNELS=True Q_ML2_PLUGIN_TYPE_DRIVERS=vlan,gre

Govardhan gravatar imageGovardhan ( 2014-02-14 00:24:37 -0600 )edit

Problems with ovs gre and patch ports are because the ovs kernel module is not right for the current kernel. It depends on the distro, kernel, ovs version and how ovs was installed. See

darragh-oreilly gravatar imagedarragh-oreilly ( 2014-02-14 04:44:47 -0600 )edit