When preparing OSD disks with colocated journals, the intialization process
fails when using dmcrypt. The kernel fails to re-read the partition table after
the storage partition is created because the journal partition is already in use
by dmcrypt. This fix unmaps the journal partition from dmcrypt and allows the
partition table to be read.
Signed-off-by: Stephen F Taylor <steveftaylor@gmail.com>
(cherry picked from commit
673394702b725ff3f26d13b54d909208daa56d89)
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: