Merge of three backported commits for fixing liberty gate
First patch description: Use LOG.error when no exception handler is used There's no need to use LOG.exception here since sys.exc_info() results in (None, None, None) and thus would effectively just be LOG.error. Also, the failure of invoking LOG.exception outside of an exception handler is due to a bug in Python3[1]. The fix for that is only available in Python3.5. [1] http://bugs.python.org/issue17911 Closes-Bug: #1482261 (cherry picked from commitf5c415accf
) Second patch description: Add testresources used by oslo.db fixture If we use oslo.db fixtures, we'll need these 2 packages or the next version of oslo.db release will break us. Closes-Bug: #1503501 (cherry picked from commita7368fb68e
) Third patch description: Switch to post-versioning No longer mention next version on setup.cfg on stable branch. Change-Id: Ib40c664a4f0e01cd27e1f24cfdbc9de278aece42
This commit is contained in:
parent
4348b7abab
commit
6d611b7f97
|
@ -1378,8 +1378,12 @@ class Resource(object):
|
|||
|
||||
if not updated_ok:
|
||||
ex = exception.UpdateInProgress(self.name)
|
||||
LOG.exception('atomic:%s engine_id:%s/%s' % (
|
||||
rs.atomic_key, rs.engine_id, engine_id))
|
||||
LOG.error(_LE(
|
||||
'Error acquiring lock for resource id:%(resource_id)s with'
|
||||
'atomic key:%(atomic_key)s,'
|
||||
'engine_id:%(rs_engine_id)s/%(engine_id)s') % {
|
||||
'resource_id': rs.id, 'atomic_key': rs.atomic_key,
|
||||
'rs_engine_id': rs.engine_id, 'engine_id': engine_id})
|
||||
raise ex
|
||||
|
||||
def _release(self, engine_id):
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
[metadata]
|
||||
name = heat
|
||||
version = 5.0.0
|
||||
summary = OpenStack Orchestration
|
||||
description-file =
|
||||
README.rst
|
||||
|
|
|
@ -19,3 +19,4 @@ sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2
|
|||
testrepository>=0.0.18
|
||||
testscenarios>=0.4
|
||||
testtools>=1.4.0
|
||||
testresources>=0.2.4
|
||||
|
|
Loading…
Reference in New Issue