yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #47907
[Bug 1556178] [NEW] retry decorator doesn't clear session in context
Public bug reported:
The retry decorator doesn't clear the session between each retry. This
is normally not an issue; however, if some called code holds onto a
reference a reference of a DB object that will conflict with a newly
created one, we will get errors like the following:
FlushError: New instance <IPAllocation at 0x7fd98001ce50> with identity
key (<class 'neutron.db.models_v2.IPAllocation'>, (u'10.0.0.2', u
'70dfccfd-f18a-423b-9323-095a38b301a9', u'4e0d6054-6f90-450d-
87d6-fb86fa194a91')) conflicts with persistent instance <IPAllocation at
0x7fd9805aa910>
** Affects: neutron
Importance: High
Assignee: Kevin Benton (kevinbenton)
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/1556178
Title:
retry decorator doesn't clear session in context
Status in neutron:
New
Bug description:
The retry decorator doesn't clear the session between each retry. This
is normally not an issue; however, if some called code holds onto a
reference a reference of a DB object that will conflict with a newly
created one, we will get errors like the following:
FlushError: New instance <IPAllocation at 0x7fd98001ce50> with
identity key (<class 'neutron.db.models_v2.IPAllocation'>,
(u'10.0.0.2', u'70dfccfd-f18a-423b-9323-095a38b301a9', u'4e0d6054-6f90
-450d-87d6-fb86fa194a91')) conflicts with persistent instance
<IPAllocation at 0x7fd9805aa910>
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1556178/+subscriptions
Follow ups