Skip to content

Commit

Permalink
Merge pull request #18625 from tchaikov/wip-ceph-disk-unlock-dmcrypte…
Browse files Browse the repository at this point in the history
…d-partitions-luminous

luminous: ceph-disk: unlocks dmcrypted partitions when activating them

Reviewed-by: Nathan Cutler <ncutler@suse.com>
  • Loading branch information
liewegas committed Nov 2, 2017
2 parents 24bd1de + 796e336 commit c23865f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/ceph-disk/ceph_disk/main.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -3751,6 +3751,20 @@ def main_activate(args):
)
osd_data = get_mount_point(cluster, osd_id)

args.cluster = cluster
if args.dmcrypt:
for name in Space.NAMES:
# Check if encrypted device in journal
dev_path = os.path.join(osd_data, name + '_dmcrypt')
if not os.path.exists(dev_path):
continue
partition = DevicePartition.factory(
path=None,
dev=dev_path,
args=args)
partition.rawdev = args.path
partition.map()

elif stat.S_ISDIR(mode):
(cluster, osd_id) = activate_dir(
path=args.path,
Expand Down

0 comments on commit c23865f

Please sign in to comment.