]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
lvm: when osd creation fails log the exception 22641/head
authorAndrew Schoen <aschoen@redhat.com>
Tue, 19 Jun 2018 19:34:57 +0000 (14:34 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 20 Jun 2018 12:03:50 +0000 (07:03 -0500)
Fixes: http://tracker.ceph.com/issues/24456
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit d622dadef09a53d24c6a7b9119051594f8da1cae)

src/ceph-volume/ceph_volume/devices/lvm/create.py
src/ceph-volume/ceph_volume/devices/lvm/prepare.py

index 18c80657ec8d20a92872586fb3ce85c467de7b34..0f972f9d83f1f3cc16b2aca58b87f081bb106995 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 17ac5e1b3942d6d77099a43b61b161fe00fad551..2369cb6f3a58d5d7e0a427e12cd8b7d136b88430 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