Re: [Openstack] Is there a reason Nova doesn't use scoped sessions in sqlalchemy ?

2011-11-01 Thread Vishvananda Ishaya
from Essex – which I’m assuming will take some tiem > yet to work through all of the joinedloads. > > Phil > > From: Vishvananda Ishaya [mailto:vishvana...@gmail.com] > Sent: 31 October 2011 19:50 > To: Day, Phil > Cc: openstack@lists.launchpad.net (openstack@list

Re: [Openstack] Is there a reason Nova doesn't use scoped sessions in sqlalchemy ?

2011-11-01 Thread Day, Phil
31 October 2011 19:50 To: Day, Phil Cc: openstack@lists.launchpad.net (openstack@lists.launchpad.net); Johnson, Andrew Gordon (HP Cloud Services); Hassan, Ahmad; Haynes, David; nova-datab...@lists.launchpad.net Subject: Re: [Openstack] Is there a reason Nova doesn't use scoped sessions in sqlalchem

Re: [Openstack] Is there a reason Nova doesn't use scoped sessions in sqlalchemy ?

2011-10-31 Thread Vishvananda Ishaya
All of the workers are single-threaded, so I'm not sure that scoped sessions are really necessary. We did however decide that objects from the db layer are supposed to be simple dictionaries. We currently allow nested dictionaries to optimize joined objects. Unfortunately we never switched to

Re: [Openstack] Is there a reason Nova doesn't use scoped sessions in sqlalchemy ?

2011-10-31 Thread Jay Pipes
On Mon, Oct 31, 2011 at 3:25 PM, Day, Phil wrote: > Hi Folks, > > We’ve been looking into a problem which looks a lot like: > > https://bugs.launchpad.net/nova/+bug/855660 > > 2011-10-21 14:13:31,035 ERROR nova.api [5bd52130-d46f-4702-b06b-9ca5045473d7 > smokeuser smokeproject] Unexpected error ra

[Openstack] Is there a reason Nova doesn't use scoped sessions in sqlalchemy ?

2011-10-31 Thread Day, Phil
Hi Folks, We've been looking into a problem which looks a lot like: https://bugs.launchpad.net/nova/+bug/855660 2011-10-21 14:13:31,035 ERROR nova.api [5bd52130-d46f-4702-b06b-9ca5045473d7 smokeuser smokeproject] Unexpected error raised: Parent instance is not bound to a Session; lazy load o