Project

General

Profile

Actions

Bug #24456

closed

caught exceptions are not being logged

Added by Alfredo Deza almost 6 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

There are a couple of places where this pattern is used:

        try:
            self.prepare(args)
        except Exception:
            logger.error('lvm prepare was unable to complete')
            logger.info('will rollback OSD ID creation')
            rollback_osd(args, self.osd_id)
            raise

In some cases, an exception can be thrown in rollback_osd, so the original exception is lost. This needs to be logged with `logger.exception`

Actions #1

Updated by Andrew Schoen almost 6 years ago

  • Status changed from New to In Progress
  • Assignee set to Andrew Schoen
Actions #2

Updated by Andrew Schoen almost 6 years ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF