← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1807400] Re: networksegments table in neutron can not be cleared automatically

 

** Also affects: neutron
   Importance: Undecided
       Status: New

** Changed in: neutron
       Status: New => Invalid

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

Title:
  networksegments table in neutron can not be cleared automatically

Status in neutron:
  Invalid
Status in openstack-ansible:
  New

Bug description:
  _process_port_binding function in neutron/plugins/ml2/plugin.py used
  clear_binding_levels to clear ml2_port_binding_levels table, but it
  will not do anything to networksegments under hierarchical port
  bonding condition

  @db_api.context_manager.writer
  def clear_binding_levels(context, port_id, host):
      if host:
          for l in (context.session.query(models.PortBindingLevel).
                    filter_by(port_id=port_id, host=host)):
              context.session.delete(l)
          LOG.debug("For port %(port_id)s, host %(host)s, "
                    "cleared binding levels",
                    {'port_id': port_id,
                     'host': host})

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