← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1605277] [NEW] [IPAM] 'Internal' ipam driver does not allow to delete all pools on subnet update

 

Public bug reported:

During investigation UT test failure
'test_port_update_deferred_allocation_no_ips' in [1] I found that
attempt to update subnet providing blank ([]) allocation pools leads to
silent ignoring this action on ipam driver side.

Reference ipam driver skips processing of the update request because of condition
"if not subnet_request.allocation_pools" in [2], which is too strict and
does not allow to clean up allocation pools on subnet update.

It is a because cleaning up allocation pools is a valid user action and
built-in ipam implementation allows to do it.

Expected behavior:
Reference ipam driver should work the same as a built-in implementation and should allow to remove 'allocation_pools' on subnet update.

[1] http://logs.openstack.org/23/181023/89/check/gate-neutron-python27/2071f1d/testr_results.html.gz
[2] https://github.com/openstack/neutron/blob/38a080aca37197ff9c5464a3bc9981e684decee6/neutron/ipam/drivers/neutrondb_ipam/driver.py#L294

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

Title:
  [IPAM] 'Internal' ipam driver does not allow to delete all pools on
  subnet update

Status in neutron:
  New

Bug description:
  During investigation UT test failure
  'test_port_update_deferred_allocation_no_ips' in [1] I found that
  attempt to update subnet providing blank ([]) allocation pools leads
  to silent ignoring this action on ipam driver side.

  Reference ipam driver skips processing of the update request because of condition
  "if not subnet_request.allocation_pools" in [2], which is too strict and
  does not allow to clean up allocation pools on subnet update.

  It is a because cleaning up allocation pools is a valid user action
  and built-in ipam implementation allows to do it.

  Expected behavior:
  Reference ipam driver should work the same as a built-in implementation and should allow to remove 'allocation_pools' on subnet update.

  [1] http://logs.openstack.org/23/181023/89/check/gate-neutron-python27/2071f1d/testr_results.html.gz
  [2] https://github.com/openstack/neutron/blob/38a080aca37197ff9c5464a3bc9981e684decee6/neutron/ipam/drivers/neutrondb_ipam/driver.py#L294

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


Follow ups