mirror of
https://github.com/ceph/ceph
synced 2025-02-23 11:07:35 +00:00
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:
commit
314cea404f
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user