]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: dmcrypt activate must use the same cluster as prepare 13573/head
authorLoic Dachary <ldachary@redhat.com>
Wed, 22 Feb 2017 00:49:12 +0000 (01:49 +0100)
committerLoic Dachary <ldachary@redhat.com>
Wed, 22 Feb 2017 00:49:12 +0000 (01:49 +0100)
commit7f66672b675abbc0262769d32a38112c781fefac
treeee97d4a4898fd4863b1606da4102e037bbfc2e3c
parentd3409d456233f7bc1c0ed23dbc2db29627d33d5c
ceph-disk: dmcrypt activate must use the same cluster as prepare

When dmcrypt is used, the fsid cannot be retrieved from the data
partition because it is encrypted. Store the fsid in the lockbox to
enable dmcrypt activation using the same logic as regular activation.

The fsid is used to retrive the cluster name that was used during
prepare, reason why activation does not and must not have a --cluster
argument.

Fixes: http://tracker.ceph.com/issues/17821
Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/ceph-disk/ceph_disk/main.py