Activity log for bug #1224429

Date Who What changed Old value New value Message
2013-09-12 11:27:15 ChangBo Guo(gcb) bug added bug
2013-09-12 11:35:05 OpenStack Infra nova: status New In Progress
2013-09-12 11:35:05 OpenStack Infra nova: assignee ChangBo Guo (guochbo)
2013-09-12 11:48:00 ChangBo Guo(gcb) bug task added savanna
2013-09-16 15:49:07 OpenStack Infra savanna: status New Fix Committed
2013-09-16 19:42:03 Sergey Lukjanov savanna: assignee ChangBo Guo (guochbo)
2013-09-16 19:42:18 Sergey Lukjanov savanna: milestone 0.3a1
2013-09-16 19:42:24 Sergey Lukjanov savanna: importance Undecided Medium
2013-09-16 19:42:30 Sergey Lukjanov tags 0.3
2013-09-24 00:33:06 OpenStack Infra nova: status In Progress Fix Committed
2013-09-24 18:53:23 Russell Bryant nova: milestone havana-rc1
2013-09-30 15:42:47 Sergey Lukjanov savanna: status Fix Committed Fix Released
2013-10-03 08:01:30 Thierry Carrez nova: status Fix Committed Fix Released
2013-10-17 12:14:42 Thierry Carrez nova: milestone havana-rc1 2013.2
2013-10-17 19:40:07 Sergey Lukjanov savanna: milestone 0.3a1 0.3
2014-03-05 09:10:09 ChangBo Guo(gcb) description Current code use ModelBase.save() always submit a commit even inside a block fo with session.begin(). this is not purpose of using session.begin() to organize some operations in one transaction 1)session.begin() will return a SessionTransaction instance, then call SessionTransaction.__enter__() and do something in with block, then call SessionTransaction.__exit__(), in method __exit__() will commit or rollback automatically. See https://github.com/zzzeek/sqlalchemy/blob/master/lib/sqlalchemy/orm/session.py#L451 2) There is also suggestion metioned in https://github.com/openstack/nova/blob/master/nova/openstack/common/db/sqlalchemy/session.py#L76 3) ModelBase.save() begin another transaction see https://github.com/openstack/nova/blob/master/nova/openstack/common/db/sqlalchemy/models.py#L51 so we'd better don't use ModelBase.save() inside of block session.begin() Current code use ModelBase.save() always submit a commit even inside a block fo with session.begin(). this is not purpose of using session.begin() to organize some operations in one transaction 1)session.begin() will return a SessionTransaction instance, then call SessionTransaction.__enter__() and do something in with block, then call SessionTransaction.__exit__(), in method __exit__() will commit or rollback automatically. See https://github.com/zzzeek/sqlalchemy/blob/master/lib/sqlalchemy/orm/session.py#L454 2) There is also suggestion metioned in https://github.com/openstack/oslo-incubator/blob/master/openstack/common/db/sqlalchemy/session.py#L71 3) ModelBase.save() begin another transaction see https://github.com/openstack/oslo-incubator/blob/master/openstack/common/db/sqlalchemy/models.py#L47 so we'd better don't use ModelBase.save() inside of block session.begin()
2014-03-05 09:10:37 ChangBo Guo(gcb) bug task added cinder
2014-03-05 09:11:34 OpenStack Infra cinder: status New In Progress
2014-03-05 09:11:34 OpenStack Infra cinder: assignee ChangBo Guo(gcb) (glongwave)
2014-07-01 10:45:31 OpenStack Infra cinder: status In Progress Fix Committed
2014-07-24 12:26:59 Russell Bryant cinder: status Fix Committed Fix Released
2014-07-24 12:26:59 Russell Bryant cinder: milestone juno-2
2014-10-16 09:13:50 Thierry Carrez cinder: milestone juno-2 2014.2