Merge pull request #22627 from ceph/rm-24456

lvm: when osd creation fails log the exception

Reviewed-by: Alfredo Deza <adeza@redhat.com>
This commit is contained in:
Alfredo Deza 2018-06-19 16:15:38 -04:00 committed by GitHub
commit 314cea404f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ class Create(object):
# activate, which would never need to be rolled back.
Activate([]).activate(args)
except Exception:
logger.error('lvm activate was unable to complete, while creating the OSD')
logger.exception('lvm activate was unable to complete, while creating the OSD')
logger.info('will rollback OSD ID creation')
rollback_osd(args, osd_id)
raise

View File

@ -215,7 +215,7 @@ class Prepare(object):
try:
self.prepare(args)
except Exception:
logger.error('lvm prepare was unable to complete')
logger.exception('lvm prepare was unable to complete')
logger.info('will rollback OSD ID creation')
rollback_osd(args, self.osd_id)
raise