← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1201274] Re: tunnel type is not passed right

 

** Changed in: neutron
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1201274

Title:
  tunnel type is not passed right

Status in OpenStack Neutron (virtual network service):
  Fix Released

Bug description:
  cfg.CONF.OVS.tunnel_type is not the same as self.tunnel_type:

          if self.enable_tunneling:
              self.tunnel_type = cfg.CONF.OVS.tunnel_type or constants.TYPE_GRE
          elif cfg.CONF.OVS.tunnel_type:
              self.tunnel_type = cfg.CONF.OVS.tunnel_type
              self.enable_tunneling = True

  class OVSRpcCallbacks(dhcp_rpc_base.DhcpRpcCallbackMixin,
                        l3_rpc_base.L3RpcCallbackMixin,
                        sg_db_rpc.SecurityGroupServerRpcCallbackMixin):
      def tunnel_sync(self, rpc_context, **kwargs):
          """Update new tunnel.

          Updates the datbase with the tunnel IP. All listening agents will also
          be notified about the new tunnel IP.
          """
          tunnel_ip = kwargs.get('tunnel_ip')
          # Update the database with the IP
          tunnel = ovs_db_v2.add_tunnel_endpoint(tunnel_ip)
          tunnels = ovs_db_v2.get_tunnel_endpoints()
          entry = dict()
          entry['tunnels'] = tunnels
          # Notify all other listening agents
          self.notifier.tunnel_update(rpc_context, tunnel.ip_address,
                                      tunnel.id,  cfg.CONF.OVS.tunnel_type)   -->> should be plugin.tunnel_type
          # Return the list of tunnels IP's to the agent
          return entry

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1201274/+subscriptions