]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: deactivate must unmap dmcrypted journal
authorLoic Dachary <ldachary@redhat.com>
Tue, 5 Jan 2016 16:11:24 +0000 (17:11 +0100)
committerLoic Dachary <ldachary@redhat.com>
Wed, 6 Jan 2016 10:13:16 +0000 (11:13 +0100)
commit756b8e60152311cfc7229acf1715874f35f7f98e
treebb5fc95024d2eb816eb801da22d5a2953a9437c1
parent7aab4ed6f108ddc7bc90300f1999a38f30da3a57
ceph-disk: deactivate must unmap dmcrypted journal

If the journal is not unmapped, ceph-disk destroy will fail to zap the
corresponding devices because it is still held by devicemapper.

A consequence of this modification is that

   ceph-disk activate --dmcrypt --reactivate

no longer works from the command line, because it does not map the
dmcrypted journal. The --reactivate option is added to activate-journal
which will map both the journal and the data devices, if necessary.

http://tracker.ceph.com/issues/14233 Fixes: #14233

Signed-off-by: Loic Dachary <loic@dachary.org>
qa/workunits/ceph-disk/ceph-disk-test.py
src/ceph-disk