Activity log for bug #1291850

Date Who What changed Old value New value Message
2014-03-13 08:24:47 Oleg Bondarev bug added bug
2014-03-13 08:24:52 Oleg Bondarev oslo: assignee Oleg Bondarev (obondarev)
2014-03-13 08:31:42 Oleg Bondarev description In some cases the whole purpose of exception handler is to reraise proper type of exception - for such cases there is often no need to log original exception being dropped as described here: https://bugs.launchpad.net/neutron/+bug/1288188 The proposal would be to add 'log_orig_exception' flag simular to 'reraise' to let user omit logging original exception. Example of usage: try: res = self._get_by_id(context, model, id) except exc.NoResultFound: with excutils.save_and_reraise_exception() as ctx: ctx.log_orig_exception = False if issubclass(model, Vip): raise loadbalancer.VipNotFound(vip_id=id) elif issubclass(model, Pool): raise loadbalancer.PoolNotFound(pool_id=id) elif issubclass(model, Member): raise loadbalancer.MemberNotFound(member_id=id) elif issubclass(model, HealthMonitor): raise loadbalancer.HealthMonitorNotFound(monitor_id=id) # if no match - log original exception ctx.log_orig_exception = True return r In some cases the whole purpose of exception handler is to reraise proper type of exception - for such cases there is often no need to log original exception being dropped as described here: https://bugs.launchpad.net/neutron/+bug/1288188 The proposal would be to add 'log_orig_exception' flag simular to 'reraise' to let user omit logging original exception. Example of usage:         try:             res = self._get_by_id(context, model, id)         except exc.NoResultFound:             with excutils.save_and_reraise_exception() as ctx:                 ctx.log_orig_exception = False                 if issubclass(model, Vip):                     raise loadbalancer.VipNotFound(vip_id=id)                 elif issubclass(model, Pool):                     raise loadbalancer.PoolNotFound(pool_id=id)                 elif issubclass(model, Member):                     raise loadbalancer.MemberNotFound(member_id=id)                 elif issubclass(model, HealthMonitor):                     raise loadbalancer.HealthMonitorNotFound(monitor_id=id)                 # if no match - log original exception                 ctx.log_orig_exception = True         return res
2014-03-13 09:34:55 OpenStack Infra oslo: status New In Progress
2014-03-17 15:08:29 OpenStack Infra oslo: assignee Oleg Bondarev (obondarev) Ben Nemec (bnemec)
2014-03-17 15:41:23 Ben Nemec oslo: assignee Ben Nemec (bnemec) Oleg Bondarev (obondarev)
2014-03-18 19:49:14 OpenStack Infra oslo: status In Progress Fix Committed
2014-04-04 12:56:50 Thierry Carrez oslo: status Fix Committed Fix Released
2014-04-04 12:56:50 Thierry Carrez oslo: milestone icehouse-rc1
2014-04-17 07:39:06 Thierry Carrez oslo: milestone icehouse-rc1 2014.1