]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume lvm.batch.filestore capture SizeAllocationErrors
authorAlfredo Deza <adeza@redhat.com>
Fri, 7 Sep 2018 18:04:58 +0000 (14:04 -0400)
committerAlfredo Deza <adeza@redhat.com>
Thu, 13 Sep 2018 11:29:01 +0000 (07:29 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 71fcd35c3d44795f92b17e9aedb7ca868b3750d3)

src/ceph-volume/ceph_volume/devices/lvm/strategies/filestore.py

index 9e80c5cbb90672f8f950d3d91c20be7db1f7884e..6cf9fd9a14d914a833bea376ee2c6e3e4ef22f65 100644 (file)
@@ -5,6 +5,7 @@ from ceph_volume.api import lvm
 from . import validators
 from ceph_volume.devices.lvm.create import Create
 from ceph_volume.util import templates
+from ceph_volume.exceptions import SizeAllocationError
 
 
 class SingleType(object):
@@ -226,9 +227,7 @@ class MixedType(object):
             self.vg_extents = lvm.sizing(
                 self.total_available_journal_space.b, size=self.journal_size.b
             )
-        # FIXME with real exception catching from sizing that happens when the
-        # journal space is not enough
-        except Exception:
+        except SizeAllocationError:
             self.vg_extents = {'parts': 0, 'percentages': 0, 'sizes': 0}
 
         # validate that number of journals possible are enough for number of