Public bug reported:

Hello,

When using the "release_dynamic_segment" from PortContext, code ref.:
https://github.com/openstack/neutron/blob/2234334611d1944df905c8c876768d2a44fd1305/neutron/plugins/ml2/driver_context.py#L331

I've noticed that there are no events published when segment is deleted,
unlike it's counterpart "allocate_dynamic_segment" that publishes
segment precommit_create event when used.

When drilling down the code, I can see that the publishing for allocation is 
happening here:
https://github.com/openstack/neutron/blob/master/neutron/db/segments_db.py#L53

but when network segment is deleted(by using "release_dynamic_segment"), I was 
expecting to see some event published here but that's not the case:
https://github.com/openstack/neutron/blob/master/neutron/db/segments_db.py#L136

It would be good if this fixed/added so we have some event consistency
in this case.

Many thanks
Milan Fencik

** 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/2107202

Title:
  release_dynamic_segment does not publish any event

Status in neutron:
  New

Bug description:
  Hello,

  When using the "release_dynamic_segment" from PortContext, code ref.:
  
https://github.com/openstack/neutron/blob/2234334611d1944df905c8c876768d2a44fd1305/neutron/plugins/ml2/driver_context.py#L331

  I've noticed that there are no events published when segment is
  deleted, unlike it's counterpart "allocate_dynamic_segment" that
  publishes segment precommit_create event when used.

  When drilling down the code, I can see that the publishing for allocation is 
happening here:
  https://github.com/openstack/neutron/blob/master/neutron/db/segments_db.py#L53

  but when network segment is deleted(by using "release_dynamic_segment"), I 
was expecting to see some event published here but that's not the case:
  
https://github.com/openstack/neutron/blob/master/neutron/db/segments_db.py#L136

  It would be good if this fixed/added so we have some event consistency
  in this case.

  Many thanks
  Milan Fencik

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


-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to