]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
lvm: when osd creation fails log the exception
authorAndrew Schoen <aschoen@redhat.com>
Tue, 19 Jun 2018 19:34:57 +0000 (14:34 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 19 Jun 2018 19:34:57 +0000 (14:34 -0500)
Fixes: http://tracker.ceph.com/issues/24456
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
src/ceph-volume/ceph_volume/devices/lvm/create.py
src/ceph-volume/ceph_volume/devices/lvm/prepare.py

index 4fdd6e7625fbccec7560b6abbd76794e3bf89d23..338c8f40447acd4d41c38952126279a96a08fc27 100644 (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
index c8438ff8c9682721a8ed84b2cbe6f25da1a6bb90..824a7c95936c5e2aa709b180cb114453094483c1 100644 (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