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

2011-11-01 Thread Day, Phil
@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 sqlalchemy ? All of the workers are single-threaded, so I'm

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

2011-11-01 Thread Vishvananda Ishaya
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 sqlalchemy ? All

[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 FixedIp at 0x4e74490 is not bound 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 philip@hp.com 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]

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