From 9409802b8e77a35e2b700034232cb0e1dca43cc6 Mon Sep 17 00:00:00 2001 From: Ryan Moe Date: Thu, 16 Apr 2015 17:33:07 -0700 Subject: [PATCH] Ensure ratio calculated for Ceph journals is an integer When creating journal paritions an osd-to-journal ratio is calculated. This ratio is later used to determine the size of each individual journal partition. The ratio was a floating point number which would result in floating point partition sizes causing dd commands to fail. Change-Id: Ide1311de3dd3c4a859b5d9b00f3e86912489d761 Closes-bug: #1444459 --- fuel_agent/drivers/nailgun.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuel_agent/drivers/nailgun.py b/fuel_agent/drivers/nailgun.py index 10d650a..3e9a03e 100644 --- a/fuel_agent/drivers/nailgun.py +++ b/fuel_agent/drivers/nailgun.py @@ -174,7 +174,7 @@ class Nailgun(object): # We need to allocate a journal partition for each ceph OSD # Determine the number of journal partitions we need on # each device - ratio = math.ceil(float(ceph_osds) / ceph_journals) + ratio = int(math.ceil(float(ceph_osds) / ceph_journals)) # No more than 10GB will be allocated to a single journal # partition