]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: Adding cluster name support for dmcrypt
authorErwan Velu <erwan@redhat.com>
Tue, 15 Nov 2016 13:15:18 +0000 (14:15 +0100)
committerSébastien Han <seb@redhat.com>
Tue, 31 Jan 2017 11:03:30 +0000 (12:03 +0100)
commitd98d4dbc2741295723f0a316b5bf81f07b140041
treed915e7f930e6313f4ea2b8bf9ddfd415ad29124c
parent6226aecef218708e8ab73b70f499064696392dae
ceph-disk: Adding cluster name support for dmcrypt

Prior to this commit we were not able to configure an OSD using dmcrypt
on a cluster with a different name than 'ceph'.

Wwe have to propagate the cluster name (args.cluster) to the get_dmcrypt_key()
fonction, which imply changing the prototype of it by adding a "cluster" argument.

This changes imply that dmcrypt_map(), mount_activate(),  main_activate_space()
functions prototypes are changing to get the cluster name for their respective
callers. It's usually a way just to make args.cluster available for the
functions they call. Note that we introduce the "cluster" argument of
mount_activate() _before_ the last argument (reactivate) as this one have a
default value : as we don't have any for "cluster", that would make a python
exception.

This patch has been tested with the following commands :
- deactivate
- destroy
- prepare

Fixes: http://tracker.ceph.com/issues/17821
Signed-off-by: Sébastien Han <seb@redhat.com>
Signed-off-by: Erwan Velu <erwan@redhat.com>
src/ceph-disk/ceph_disk/main.py