commit 3edcd5cdcf0d7d3928c67c1310a472df8d8af62a
Author: Petr Malik <email address hidden>
Date: Fri May 27 12:55:25 2016 -0400
Catch exceptions from backup runner
The backup runner context manager may throw BackupErrors.
The backupagent currently only checks for the success of the storage
save action and any exceptions, but not those from the runner
__enter__/__exit__ methods.
This issue was discovered when fixing backup unittests
in change: 312611
The unittests assert that the backup would be marked as FAILED, but
was marked as COMPLETED instead.
This patch just moves the 'with clause' of the backup runner to the
try-except block to intercept any exceptions originating from
the backup procedures.
Reviewed: https:/ /review. openstack. org/322275 /git.openstack. org/cgit/ openstack/ trove/commit/ ?id=3edcd5cdcf0 d7d3928c67c1310 a472df8d8af62a
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3edcd5cdcf0d7d3 928c67c1310a472 df8d8af62a
Author: Petr Malik <email address hidden>
Date: Fri May 27 12:55:25 2016 -0400
Catch exceptions from backup runner
The backup runner context manager may throw BackupErrors. _/__exit_ _ methods.
The backupagent currently only checks for the success of the storage
save action and any exceptions, but not those from the runner
__enter_
This issue was discovered when fixing backup unittests
in change: 312611
The unittests assert that the backup would be marked as FAILED, but
was marked as COMPLETED instead.
This patch just moves the 'with clause' of the backup runner to the
try-except block to intercept any exceptions originating from
the backup procedures.
Change-Id: I27d0cf1b9a174c a69eb82d26f14a4 c0d03f75382
Partial-Bug: 1544522