Activity log for bug #1713975

Date Who What changed Old value New value Message
2017-08-30 10:43:40 Akash Deep bug added bug
2017-08-30 12:09:23 Akash Deep 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: # 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. 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.
2017-08-30 16:41:12 Armando Migliaccio bug task added networking-infoblox
2017-09-11 06:42:06 Akash Deep networking-infoblox: status New Fix Committed
2017-09-11 06:42:12 Akash Deep neutron: status New Fix Committed
2017-09-11 06:42:30 Akash Deep networking-infoblox: assignee Akash Deep (akashdeep)
2017-09-11 06:42:34 Akash Deep neutron: assignee Akash Deep (akashdeep)
2017-09-11 06:43:15 Akash Deep networking-infoblox: status Fix Committed Fix Released
2017-09-11 06:43:24 Akash Deep neutron: status Fix Committed Fix Released