← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1672701] Re: DetachedInstanceError on subnet delete

 

** Changed in: neutron
       Status: Confirmed => Fix Released

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

Title:
  DetachedInstanceError on subnet delete

Status in neutron:
  Fix Released

Bug description:
  While trying to delete subnets, some failed with this trace

  
  2017-03-09 17:23:56.953 3432 ERROR neutron.api.v2.resource [req-8a9aabc4-f02a-4533-aa09-e853daf82579 5227a890398042c5b769cd1ed632ec76 e8ba07a25a7d43509b342265c7ac124b - - -] delete failed
  2017-03-09 17:23:56.953 3432 ERROR neutron.api.v2.resource Traceback (most recent call last):
  2017-03-09 17:23:56.953 3432 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 83, in resource
  2017-03-09 17:23:56.953 3432 ERROR neutron.api.v2.resource     result = method(request=request, **args)
  2017-03-09 17:23:56.953 3432 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 532, in delete
  2017-03-09 17:23:56.953 3432 ERROR neutron.api.v2.resource     return self._delete(request, id, **kwargs)
  2017-03-09 17:23:56.953 3432 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 146, in wrapper
  2017-03-09 17:23:56.953 3432 ERROR neutron.api.v2.resource     ectxt.value = e.inner_exc
  2017-03-09 17:23:56.953 3432 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 204, in __exit__
  2017-03-09 17:23:56.953 3432 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
  2017-03-09 17:23:56.953 3432 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 136, in wrapper
  2017-03-09 17:23:56.953 3432 ERROR neutron.api.v2.resource     return f(*args, **kwargs)
  2017-03-09 17:23:56.953 3432 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 554, in _delete
  2017-03-09 17:23:56.953 3432 ERROR neutron.api.v2.resource     obj_deleter(request.context, id, **kwargs)
  2017-03-09 17:23:56.953 3432 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/plugin.py", line 967, in delete_subnet
  2017-03-09 17:23:56.953 3432 ERROR neutron.api.v2.resource     if a.port:
  2017-03-09 17:23:56.953 3432 ERROR neutron.api.v2.resource   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 237, in __get__
  2017-03-09 17:23:56.953 3432 ERROR neutron.api.v2.resource     return self.impl.get(instance_state(instance), dict_)
  2017-03-09 17:23:56.953 3432 ERROR neutron.api.v2.resource   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 578, in get
  2017-03-09 17:23:56.953 3432 ERROR neutron.api.v2.resource     value = self.callable_(state, passive)
  2017-03-09 17:23:56.953 3432 ERROR neutron.api.v2.resource   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/strategies.py", line 502, in _load_for_state
  2017-03-09 17:23:56.953 3432 ERROR neutron.api.v2.resource     (orm_util.state_str(state), self.key)
  2017-03-09 17:23:56.953 3432 ERROR neutron.api.v2.resource DetachedInstanceError: Parent instance <IPAllocation at 0x573f7d0> is not bound to a Session; lazy load operation of attribute 'port' cannot proceed

  
  complete log is here

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


References