]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "Fix for bug #6700"
authorSage Weil <sage@redhat.com>
Mon, 11 Aug 2014 22:58:15 +0000 (15:58 -0700)
committerSage Weil <sage@redhat.com>
Sat, 16 Aug 2014 00:15:37 +0000 (17:15 -0700)
This reverts commit 673394702b725ff3f26d13b54d909208daa56d89.

This appears to break things when the journal and data disk are *not* the same.
And I can't seem to reproduce the original failure...

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 2edf01ffa4a7425af2691b4e94bc5fd0bfab1e5b)

src/ceph-disk

index 219f37b26e7c79e54d0003d90635ae364e5243b6..8d805324d4d461fd50a00917323cd98ec60d818c 100755 (executable)
@@ -1224,9 +1224,6 @@ def prepare_dev(
         LOG.debug('OSD data device %s is a partition', data)
         rawdev = data
     else:
-        if journal_dmcrypt is not None:
-            dmcrypt_unmap(journal)
-
         LOG.debug('Creating osd partition on %s', data)
         try:
             command_check_call(
@@ -1308,8 +1305,6 @@ def prepare_dev(
     finally:
         if rawdev != dev:
             dmcrypt_unmap(osd_uuid)
-        if journal_dmcrypt is not None:
-            dmcrypt_unmap(journal)
 
     if not is_partition(data):
         try: