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>
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(
finally:
if rawdev != dev:
dmcrypt_unmap(osd_uuid)
- if journal_dmcrypt is not None:
- dmcrypt_unmap(journal)
if not is_partition(data):
try: