[openstack-dev] SQLAlchemy 0.7.9 issue

Gurjar, Unmesh Unmesh.Gurjar at nttdata.com
Tue Jan 8 10:57:34 UTC 2013


Hi,

I managed to fix the issue (explained at https://bugs.launchpad.net/nova/+bug/1086333) without modifying SQLAlchemy code. The issue can be fixed by calling session.begin( ) before calling the method save( ) and passing it the corresponding session instance. After  the fix is in place, the expected exception 'DBDuplicateEntry' is getting raised on adding a duplicate row.

Does this solution sound correct?

PS: The same solution can also be used for similar issues (such as security group creation LP #1093458).

Thanks & Regards,
Unmesh Gurjar | Lead Engineer | NTT DATA Global Technology Services Private Limited | w. +91.20.6604.1500 x 379 | m. +91.982.324.7631 | unmesh.gurjar at nttdata.com | Learn more at nttdata.com/americas

-----Original Message-----
From: Thierry Carrez [mailto:thierry at openstack.org] 
Sent: Wednesday, January 02, 2013 8:33 PM
To: openstack-dev at lists.openstack.org
Subject: Re: [openstack-dev] SQLAlchemy 0.7.9 issue

Gurjar, Unmesh wrote:
> Can someone please take a look at this issue.

Commented on the bug.

-- 
Thierry Carrez (ttx)
Release Manager, OpenStack

_______________________________________________
OpenStack-dev mailing list
OpenStack-dev at lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

______________________________________________________________________
Disclaimer:This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data.  If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding



More information about the OpenStack-dev mailing list