From 1a8561d38dd7363dc920ae82ec1343b2b75a1ca2 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Fri, 27 Oct 2017 11:29:50 -0500 Subject: [PATCH] ceph-volume: set journal_uuid and journal_device when using a partition This correctly sets the tags when a partition is used for a filestore journal. Signed-off-by: Andrew Schoen --- src/ceph-volume/ceph_volume/devices/lvm/prepare.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/ceph-volume/ceph_volume/devices/lvm/prepare.py b/src/ceph-volume/ceph_volume/devices/lvm/prepare.py index f1612503a97d5..2529be9a2c2bf 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/prepare.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/prepare.py @@ -120,9 +120,13 @@ class Prepare(object): tags['ceph.%s_uuid' % device_type] = uuid tags['ceph.%s_device' % device_type] = path lv.set_tags(tags) - return path, uuid, tags - # otherwise assume this is a regular disk partition - return device_name, self.get_ptuuid(device_name), tags + else: + # otherwise assume this is a regular disk partition + uuid = self.get_ptuuid(device_name) + path = device_name + tags['ceph.%s_uuid' % device_type] = uuid + tags['ceph.%s_device' % device_type] = path + return path, uuid, tags @decorators.needs_root def prepare(self, args): -- 2.39.5