]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: set journal_uuid and journal_device when using a partition 18513/head
authorAndrew Schoen <aschoen@redhat.com>
Fri, 27 Oct 2017 16:29:50 +0000 (11:29 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Fri, 27 Oct 2017 16:29:50 +0000 (11:29 -0500)
This correctly sets the tags when a partition is used for a filestore
journal.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
src/ceph-volume/ceph_volume/devices/lvm/prepare.py

index f1612503a97d582390d92c089714c6cd66422009..2529be9a2c2bf99f7918461651f16fe149999508 100644 (file)
@@ -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):