diff options
author | Boris Pavlovic <boris@pavlovic.me> | 2013-01-11 07:01:25 +0400 |
---|---|---|
committer | Boris Pavlovic <boris@pavlovic.me> | 2013-01-12 00:57:14 +0400 |
commit | ac8b949706b8d0eb0a83193e0187f63dd7ee3225 (patch) | |
tree | 4e3a2e6a832ce4f26afab17d1439f9e62aec5f3c /nova/exception.py | |
parent | b35f86651120c52e611e671caad331e4f871c2cc (diff) | |
download | nova-ac8b949706b8d0eb0a83193e0187f63dd7ee3225.tar.gz nova-ac8b949706b8d0eb0a83193e0187f63dd7ee3225.tar.xz nova-ac8b949706b8d0eb0a83193e0187f63dd7ee3225.zip |
Fix error in NovaBase.save() method
There is a bug in sqlalchemy with eventlet that doesn't allows us to use
session.flush() without explicit transaction.
If somethings went wrong in DB and rollback is called it will try to
raise NoneType.
I found only one way to handle this situation.
We should start transaction (or subtransaction if it already exists in session)
explicitly.
Fixes bug 1098692
Change-Id: I12cd643500e341a013cd7c963cb5d1a0106c7940
Diffstat (limited to 'nova/exception.py')
0 files changed, 0 insertions, 0 deletions