** Also affects: networking-infoblox
   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/1713975

Title:
  create subnet fails if we use non-default IPAM Driver

Status in networking-infoblox:
  New
Status in neutron:
  New

Bug description:
  Using ipam_driver=infoblox in neutron.conf, create subnet fails with
  following error:

  Aug 30 13:09:07 localhost neutron-server[767]: ERROR 
neutron.pecan_wsgi.hooks.translation #033[01;35m#033[00m  File 
"/opt/stack/neutron/neutron/db/api.py", line 124, in wrapped
  Aug 30 13:09:07 localhost neutron-server[767]: ERROR 
neutron.pecan_wsgi.hooks.translation #033[01;35m#033[00m    return f(*dup_args, 
**dup_kwargs)
  Aug 30 13:09:07 localhost neutron-server[767]: ERROR 
neutron.pecan_wsgi.hooks.translation #033[01;35m#033[00m  File 
"/opt/stack/neutron/neutron/db/db_base_plugin_v2.py", line 689, in 
_create_subnet_postcommit
  Aug 30 13:09:07 localhost neutron-server[767]: ERROR 
neutron.pecan_wsgi.hooks.translation #033[01;35m#033[00m    result, ipam_subnet)
  Aug 30 13:09:07 localhost neutron-server[767]: ERROR 
neutron.pecan_wsgi.hooks.translation #033[01;35m#033[00m  File 
"/opt/stack/neutron/neutron/db/ipam_pluggable_backend.py", line 453, in 
add_auto_addrs_on_network_ports
  Aug 30 13:09:07 localhost neutron-server[767]: ERROR 
neutron.pecan_wsgi.hooks.translation #033[01;35m#033[00m    if subnet['id'] != 
ipam_subnet.subnet_manager.neutron_id:
  Aug 30 13:09:07 localhost neutron-server[767]: ERROR 
neutron.pecan_wsgi.hooks.translation #033[01;35m#033[00mAttributeError: 
'InfobloxSubnet' object has no attribute 'subnet_manager'

  Further verified code in ipam_pluggable_backend.py file and observed
  following code at
  
https://github.com/openstack/neutron/blob/stable/pike/neutron/db/ipam_pluggable_backend.py#L453

          # TODO(kevinbenton): remove after bug/1666493 is resolved
          if subnet['id'] != ipam_subnet.subnet_manager.neutron_id:
              raise RuntimeError(
                  "Subnet manager doesn't match subnet. %s != %s"
                  % (subnet['id'], ipam_subnet.subnet_manager.neutron_id))

  As ipam_subnet.subnet_manager is defined specific to the neutron
  default ipam driver at
  
https://github.com/openstack/neutron/blob/stable/pike/neutron/ipam/drivers/neutrondb_ipam/driver.py#L129
  , it should not be used in generic file such as
  ipam_pluggable_backend.py which is used by other ipam_drivers.

To manage notifications about this bug go to:
https://bugs.launchpad.net/networking-infoblox/+bug/1713975/+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