← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1807483] [NEW] networksegments table in neutron can not be cleared automatically

 

Public bug reported:

_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})

** Affects: neutron
     Importance: Undecided
         Status: New

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

Title:
  networksegments table in neutron can not be cleared automatically

Status in neutron:
  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/1807483/+subscriptions


Follow ups